Pages

Rabu, 04 Juli 2012

How to Install Tomcat Apache and Activing Mysql Database


Hiii.... what's up? I hope u're all right..
At this time i want to share with you about my newest science and one of my experience using Linux Ubuntu.
I got this new science of yesterday when i was obliged for using Tomcat Apache and this program must be installed after the computer is turned off .
Such situations force us to memorize the syntax.
So.. in here, i want to take you and tell you about the syntax where it's used to install Tomcat Apache at once Activing Mysql Database, we want to install this program in Linux ubuntu 11.04 .

Before we're starting the installation, we have to install xampp.
after you have the installation,you must to run that also,
How to check activate xampp :
-> open your terminal, You need to start XAMPP as root!
     so you must create this syntax at first :
                    sudo su
->to start the xampp create :
                   /opt/lampp/lampp start
    if your xampp success and no errors ,will show :
                   Starting XAMPP for Linux 1.7.3a...
                   XAMPP: XAMPP-Apache is already running.
                   XAMPP: XAMPP-MySQL is already running.
                   XAMPP: XAMPP-ProFTPD is already running.
                   XAMPP for Linux started.
    that means your xampp success running and you can install Tomcat Apache.
->One more , for stoped the xampp, you can create :
                   /opt/lampp/lampp stop
            and /opt/lampp/lampp restart to restart


After that,you can check in the browser with create :
                  localhost/xampp

And now we're starting to install Tomcat Apache and Activate MySQL Database.
->Open your Terminal again..
   we don't need to log in as root,so just type :
                sudo /etc/init.d/mysql status
                sudo /etc/init.d/mysql stop
                sudo apt-get remove mysql
                apt-get remove mysql-server 
                sudo /etc/init.d/mysql stop
                cd /opt/lampp
                sudo ./lampp restart
                cd /opt/Tomcat
                cd bin
                cd ..
                cd ..
                sudo chmod 777 Tomcat/
                sudo chmod 777 Tomcat/*/*
                cd Tomcat/bin
                ./catalina.sh start
->If your syntax success,  will showed :
Using CATALINA_BASE:   /opt/Tomcat
Using CATALINA_HOME:   /opt/Tomcat
Using CATALINA_TMPDIR: /opt/Tomcat/temp
Using JRE_HOME:        /opt/Java
Using CLASSPATH:       /opt/Tomcat/bin/bootstrap.jar:/opt/Tomcat/bin/tomcat-juli.jar 


    ex: 
axioo@axioo-Axioo-zetta:~$ sudo /etc/init.d/mysql status
[sudo] password for axioo:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql status

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the status(8) utility, e.g. status mysql
mysql start/running, process 785
axioo@axioo-Axioo-zetta:~$ sudo /etc/init.d/mysql stop
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql stop

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) utility, e.g. stop mysql
mysql stop/waiting
axioo@axioo-Axioo-zetta:~$ sudo apt-get remove mysql
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
axioo@axioo-Axioo-zetta:~$ apt-get remove mysql-server
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
axioo@axioo-Axioo-zetta:~$ sudo /etc/init.d/mysql stop
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql stop

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) utility, e.g. stop mysql
axioo@axioo-Axioo-zetta:~$ cd /opt/lampp
axioo@axioo-Axioo-zetta:/opt/lampp$ sudo ./lampp restart
Stopping XAMPP for Linux 1.7.3a...
XAMPP: XAMPP-Apache is not running.
XAMPP: XAMPP-MySQL is not running.
XAMPP: XAMPP-ProFTPD is not running.
XAMPP stopped.
Starting XAMPP for Linux 1.7.3a...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.
axioo@axioo-Axioo-zetta:/opt/lampp$ cd /opt/Tomcat
axioo@axioo-Axioo-zetta:/opt/Tomcat$ cd bin
axioo@axioo-Axioo-zetta:/opt/Tomcat/bin$ cd ..
axioo@axioo-Axioo-zetta:/opt/Tomcat$ cd ..
axioo@axioo-Axioo-zetta:/opt$ cd Tomcat/bin
axioo@axioo-Axioo-zetta:/opt/Tomcat/bin$ ./catalina.sh start
Using CATALINA_BASE:   /opt/Tomcat
Using CATALINA_HOME:   /opt/Tomcat
Using CATALINA_TMPDIR: /opt/Tomcat/temp
Using JRE_HOME:        /opt/Java
Using CLASSPATH:       /opt/Tomcat/bin/bootstrap.jar:/opt/Tomcat/bin/tomcat-juli.jar
axioo@axioo-Axioo-zetta:/opt/Tomcat/bin$
  

           
The Process having finish....^^
In here web address you can site and check your Tomcat Apache + Mysql Database.If your page have same picture with this picture in below, that means your Apache tomcat is complete and success.
http://localhost:8080

http://localhost/xampp --> click Status

http://localhost/phpmyadmin


Note : *you must put the jdk-6u23-linux-i586.bin , xampp.tar.gz , 
           apache-tomcat-7.0.14.zip in  opt folder.
           *extrack in there. 
           *always follow the instruction

Okeiii....is enough for today...,see u at the other my Blog.
I will share to you if i've new science. you must try it,and don't give up if your syntax is failed....

^^ ....GOOD LUCK and GOD BLESS U.... ^^

0 komentar:

Posting Komentar