Installing Apache, PHP, MySQL and phpMyAdmin on Ubuntu 9.04
May 17, 2011 at 12:00 am Leave a comment
Installing Apache
1. Type as following command:
sudo apt-get install apache2
Installing php5
1. Inside Terminal, execute the following command:
sudo apt-get install php5 libapache2-mod-php5
2. When setup is complete, you have to restart Apache so that php5 will work on Apache. Execute the following command in Terminal:
sudo /etc/init.d/apache2 restart
Installing MySQL
1. Inside Terminal, execute the following command:
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
2. Towards the end of the installation you will be prompted to set your root or admin password (see pic below)
Installing phpMyAdmin
1. Inside Terminal, execute the following command:
sudo apt-get install phpmyadmin
2 During the installation you will be asked to select the webserver that would be used to run phpMyAdmin. Select Apache2 (see pic below).
3. After the installation is over execute the following command to copy the phpmyadmin folder into the /var/www/ directory. (By default it is installed in /usr/share/phpmyadmin/ directory.)
sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin
4. Now you can go to the phpMyAdmin login page by pointing your browser to: http://localhost/phpmyadmin/index.php
The username for MySQL and phpMyAdmin is “root”. The password will be what you set in step 2 (under installing MySQL).
That’s it! Now you’ve successfully installed Apache 2 webserver, php5, MySQL and phpMyAdmin on Ubuntu.
Entry filed under: Uncategorized. Tags: .


Trackback this post | Subscribe to the comments via RSS Feed