NOte !!! Thursday 12 January 2017 03:36:52 PM IST You have to change you username !!! here above is user6 !!! You have to change your extrated folder location of JAVA !!! here above is /home/user6/software/jdk1.8.0_111 !!! Matarial Need.. Tar/zip file of Java and extract it on below location /home/user6/software/jdk1.8.0_111 Step 1 edite profile #sudo gedit /etc/profile type past bleow lines JAVA_HOME=/home/user6/software/jdk1.8.0_111 JRE_HOME=/home/user6/software/jdk1.8.0_111/jre PATH=$PATH:$JRE_HOME/bin:$JAVA_HOME/bin export JAVA_HOME export JRE_HOME export PATH Step 2 run below command after extrat your java /home/user12/software/ Note = Your java extrated location /home/user64/software/jdk1.8.0_111 Run blow command in sudo mode for say ubuntu where is your java installed/extrated file sudo update-alternatives --install "/usr/bin/java" "java" "/home/user6/software/jdk1.8.0_111/bin/java" 1 sudo update-alternatives --install...
Apache2 Installation and Configuration on Ubunut 14.04 and run two instant website on server. ____________________________________________ Step1 After install Ubunut 14.04 ____________________________________________ Goto Terminal $sudo apt-get update $sudo apt-get install apache2 by default all apache2 file install in /etc/apache2/ And location of where we put our website contain /var/www/ ____________________________________________ Step2 _____________________________________________ Goto /var/www/ and creat a folder name /arvweb and creat a demo file/page under /arv/arv.html by using below command $sudo mkdir -p /var/www/arv $sudo nano /var/www/arv/arv.html #(and past below text) <html> <head> <title>Welcome to arv.com!</title> </head> <body> <h1>Success! arvapache.blogspot.com</h1> </body> </html> _____________________________________...
We have to create new file (workers.properties) inside /etc/apache2/ $sudo nano workers.properties #past below lines # configure jk-status worker.list=jk-status worker.jk-status.type=status worker.jk-status.read_only=true # configure jk-manager worker.list=jk-manager worker.jk-manager.type=status worker.balance1.type=lb # Define 1 real worker using ajp13 worker.list=worker1 #Set properties for worker (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 8009=Current tomcat AJP Port Conclusion ---- By using workers.properties we can manage our particular tomcat with specific website. Example for other Tomcat we have to just put some changes in the same file $sudo nano workers.properties #past below lines # configure jk-status worker.list=jk-status worker.jk-status.type=status worker.jk-status.read_only=true # configure jk-manager worker.list=jk-manager worker.jk-manager.type=status worker.balance1.type=lb # Def...