This is a short howto on setting up apache2 on Lenny, it will set up the basics on getting apache2 and php5 up and running on your Deian/Lenny box:
apt-get update
apt-get install apache2
apache2 should start now, you can check to make sure like so:
lsof -i:80
Now to install the php module for apache2:
apt-get install libapache2-mod-php5
apt should enable the module for you, you can always check to make sure:
a2enmod php5
Now, we have to restart our server:
/etc/init.d/apache2 stop
/etc/init.d/apache2 start
To verify, you can put a php file in /var/www , say /var/www/test.php
Now point your browser to http://your.server/test.php , and you should see the phpinfo page.
Thats it.
apt-get update
apt-get install apache2
apache2 should start now, you can check to make sure like so:
lsof -i:80
Now to install the php module for apache2:
apt-get install libapache2-mod-php5
apt should enable the module for you, you can always check to make sure:
a2enmod php5
Now, we have to restart our server:
/etc/init.d/apache2 stop
/etc/init.d/apache2 start
To verify, you can put a php file in /var/www , say /var/www/test.php
Now point your browser to http://your.server/test.php , and you should see the phpinfo page.
Thats it.




Calendar



