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> _____________________________________...
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...
-------------------------------------------------------------------------------- Step 1 -------------------------------------------------------------------------------- Create file in this location /etc/init.d/tomcat2 with following instructions and past below lines... #nano /etc/init.d/tomcat2 #!/bin/bash # description: Tomcat Start Stop Restart # processname: tomcat # chkconfig: 234 20 80 #Should be your java path location.... JAVA_HOME=/usr/lib/jvm/jre-openjdk export JAVA_HOME PATH=$JAVA_HOME/bin:$PATH export PATH #Should be your tomcat location CATALINA_HOME=/opt/tomcat2 case $1 in start) sh $CATALINA_HOME/bin/startup.sh ;; stop) sh $CATALINA_HOME/bin/shutdown.sh ;; restart) sh $CATALINA_HOME/bin/shutdown.sh sh $CATALINA_HOME/bin/startup.sh ;; esac exit 0