Search This Blog

Thursday, June 24, 2010

Install Apache, PHP and MySQL(all in one shot), on Ubuntu server...

This will help you make setup an Ubuntu server and make it work as LAMP(L-Linux, A-Apache, M-MySQL and P-PHP). So, follow the steps:

1. For PHP5, install apache, mysql and php5 alongside the necessary modules with following single line command.

root@localhost:~# apt-get install apache2 php5 libapache2-mod-php5


root@localhost:~# apt-get install mysql-server mysql-client libapache2-mod-auth-mysql php5-mysql


2. For PHP4...

root@localhost:~# apt-get install apache2 php4 libapache2-mod-php4


root@localhost:~# apt-get install mysql-server mysql-client libapache2-mod-auth-mysql php4-mysql


..............Done!!!

1 comment: