Saturday, April 16, 2011

Configuring a stubborn PHP server

Saved me tons of time today...

I followed the documentation on PHP5 - Scripting Language

As a quick start guide you should run the next commands

Code:
sudo apt-get install php5-common php5 libapache2-mod-php5
sudo apt-get install php5-cli
sudo apt-get install php5-cgi
sudo apt-get install php5-mysql
Later you should run this command and select php5
Code:
a2enmod
And finally restart the apache2 daemon via
Code:
sudo /etc/init.d/apache2 restart

No comments:

Post a Comment