This forum provides solutions for aws developers for their issues.It provides solutions for aws elastic ip, ec2 instance, public ip,route53 pricing, load balancers in aws,Orchestration, ebs,, lambda, installing mongodb on ubuntu etc.

Friday 27 September 2019

Installing Wordpress in Redhat/Centos

sudo yum update -y
sudo amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2
sudo yum install -y httpd
sudo systemctl start httpd
sudo systemctl enable httpd
wget https://wordpress.org/latest.tar.gz
tar -xzf latest.tar.gz
cp wordpress/wp-config-sample.php wordpress/wp-config.php
nano wordpress/wp-config.php
sudo cp -r wordpress/* /var/www/html/

sudo chown -R apache /var/www
sudo chgrp -R apache /var/www
sudo chmod 2775 /var/www
sudo find /var/www -type d -exec sudo chmod 2775 {} \;
sudo find /var/www -type f -exec sudo chmod 0664 {} \;
sudo systemctl restart httpd

Friday 1 June 2018

Best Practices to run Nodejs

The safe user does not have permissions to use default http port 80.
Do not run your applications as a root.

To use http port for non root user,
use the below

sudo apt-get install libcap2-bin

 sudo setcap cap_net_bind_service=+ep `readlink -f \`which node\``


Now you can able access default http port.

 

for nodejs

node app.js

production:

pm2 start app.js

forever start app.js

 

 

instead of sudo node app.js

sudo pm2 app.js

etc.

Saturday 21 April 2018

sudo -u keycloak ./jboss-cli.sh 'embed-server,/subsystem=undertow/server=default-server/http-listener=default:write-attribute(name=proxy-address-forwarding,value=true)'
Cannot start embedded server: Failed to instantiate class "org.jboss.logmanager.handlers.PeriodicRotatingFileHandler" for handler "FILE": java.lang.reflect.InvocationTargetException: /opt/keycloak-3.4.3.Final/standalone/log/server.log (Permission denied)




solution:



https required keycloak

Keycloak admin login page not showing without https .
Disable https in the dashboard, but without logging in, we cannot disable.
So use the below commands
go to bin folder of keycloak.
./kcadm.sh config credentials --server http://localhost:8080/auth --realm master --user admin
./kcadm.sh update realms/realmname -s sslRequired=NONE

Saturday 14 April 2018

https: Address already in use /0.0.0.0:8443

18:02:14,277 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service org.wildfly.undertow.listener.https: org.jboss.msc.service.StartException in service org.wildfly.undertow.listener.https: Address already in use /0.0.0.0:8443
    at org.wildfly.extension.undertow//org.wildfly.extension.undertow.ListenerService.start(ListenerService.java:179)
    at org.jboss.msc//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
    at org.jboss.msc//org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    at java.base/java.lang.Thread.run(Thread.java:844)

PPK to Pem Conversion in Mac

PPK to PEM conversion in MAC
puttygen privatekey.ppk -O private-openssh -o privatekey.pem

Wednesday 11 April 2018

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 47.995 s
[INFO] Finished at: 2018-04-11T12:51:26+00:00
[INFO] Final Memory: 210M/483M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project keycloak-common: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :keycloak-common 
Solution:
sudo apt-get install openjdk-8-jdk

Labels

Online Training

Your Name :
Your Email: (required)
Your Message: (required)

Powered by Blogger.

Recent Posts

Find Us On Facebook

Popular Posts