Installing Apache and PHP5

From Cosmin's Wiki

Jump to: navigation, search

Home > Linux how to's > Installing Apache and PHP5


Install Apache

sudo aptitude install apache2

Install PHP5 and the Apache PHP5 module

sudo aptitude install php5 libapache2-mod-php5

Restart Apache

sudo /etc/init.d/apache2 restart

Go to http://localhost to verify the installation. If you want to change the port, edit the file /etc/apache/ports.conf and change where it says "Listen 80" to say "Listen" + the desired port number, e.g. "Listen 8080"