Home | Bio | My Life | Archive | Writings | Talks | Toons | Photos | Site | About | Contact | Feed

Saturday, February 21, 2009

LAMP on debian etch

Many of my friends have recently discussed with about difficulty of installing LAMP .(Linux Apache PHP Mysql ).But I dont think it is that difficult... neither do experts in this field ;) . But they have a reason to see it difficult .Most of the sites which come when you google about LAMP on debian is explaining the old ./configure make install thing ... and also about configuring stuffs...Also there is a chance to miss php-mysql module . So I would like to put these things in 3 simple steps here.


Just do this in debian ..1,2,3 ..

1. apt-get install apache php5 mysql-server php5-mysql

2. Edit the following files :
a. /etc/default/apache2 -- Set NO_START=0
b. /etc/apache2/httpd.conf -- Save the following .

servername localhost
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps

AddType application/x-httpd-php .php .html
AddType application/x-httpd-php-source .phps

c. /etc/php5/apache2/php.ini -- search for mysql .. First hit ..remove ; comment for extension=mysql.so

3. Thats it now restart and use

sh /etc/init.d/apache2 start
sh /etc/init.d/mysql start

Enjoyy!!

No comments: