Monday, July 20, 2009

Install Apache2, Mysql-Server, PHP5, Phpmyadmin on ubuntu 9.04

1) First start the Applications > Accessories > Terminal
2) First Apache 2 Install your Computer/Laptop
Type Command -:-
sudo apt-get install apache2
Press Enter
And start the apache2 server in command line -:-
sudo /etc/init.d/apache2 start
Press Enter(apache2 server is start)
3) Next command -:-
sudo apt-get install php5
press enter and after installtion is complete restart the apache2 server.
sudo /etc/init.d/apache2 start
and test the php5. Type the following command in your Terminal
"sudo gedit /var/www/phpinfo.php" open the gedit text editor which you will type in



save and close the file and open the firefox browser.
type the address bar http://localhost/phpinfo.php your PHP installation listed on the page.
see following image :


4) Install Mysql Server -:-
sudo apt-get install mysql-server
As MySQL is installing, it will ask you to configure your root password. Type your root
password and press OK button.
and start the mysql server "sudo /etc/init.d/mysql start"
5) Start the last process Install Phpmyadmin
sudo apt-get install phpmyadmin
Now open up http://localhost/phpmyadmin your web browser.

Enjoy.............................