Simple step to install LAMP on Debian Lenny…
( Older post : https://panaharjuna.wordpress.com/2009/02/25/install-apache2-php5-mysql-ssl/)
Step 1 : install apache2
aptitude install apache2 apache2.2-common apache2-mpm-prefork apache2-utils libexpat1 ssl-cert
*****ServerName problem issued this command
echo “ServerName Casp3r” >> /etc/apache2/apache2.conf ##<— Change Casp3r to Your hostname
Restart Apache2
/etc/init.d/apache2 restart
or using this
apache2ctl graceful
Open http://localhost or http://YOUR.IP
Done Installing apache :p
Step 2 : install php5
Search php5 module using this command
aptitude search php5-
install several modules
aptitude install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd \php5-imagick php5-mcrypt php5-memcache php5-mhash php5-mysql php5-pspell php5-snmp \php5-sqlite php5-xmlrpc php5-xsl
Restart Apache2
/etc/init.d/apache2 restart
Test php5
touch /var/www/aku.php
nano /var/www/aku.php
############## PHP Page ################
<?php
phpinfo( );
?>
############## PHP Page ################
Open http://localhost/aku.php or http://YOUR.IP/aku.php
you should see a PHP generated page
Done Installing php5 :p
Step 3 : install MySQL
aptitude install mysql-server mysql-client
after install MySQL run this command
/usr/bin/mysql_secure_installation
*** this secure installations for MySQL
/etc/init.d/apache2 reload
Done Installing MySQL :p
*** Yg lain ko pandai2 lah sendiri!!!
*** For security reason read this post
https://panaharjuna.wordpress.com/2010/01/10/hidden-apache-name-and-os/
Great blog. I was checking constantly this blog and I’m impressed! Extremely useful information specially the first part. I care for such info a lot. I was looking for this particular information for a very long time. Thank you and best of luck.