Archive for the ‘Apache’ Category

Apache: Configure PHP for Apache in Ubuntu

Thursday, October 29th, 2009

You want to run a web server and your choice is a great one: Apache. You are using a Linux desktop, Ubuntu, because Linux can still support both desktop and server applications like a pro. Once you have configured Apache, which in Ubuntu it is nothing more than downloading the package using Ubuntu’s Synaptic Package Manager, you need to configure the support for PHP.

With Ubuntu you will need to download and install the php5 and MySQL packages. If you install Apache, MySQL and PHP at the same time you will only need to perform one more step:

  1. Restart Apache.

If you already have Apache up and running and want to add PHP support you will need to perform the following steps:

  1. Install the PHP package.
  2. Create a link from /etc/apache2/mods-enabled/php5.load to /etc/apache2/mods-available/php5.load and also /etc/apache2/mods-enabled/php5.conf to /etc/apache2/mods-available/php5.conf.
  3. Restart apache and you should now have PHP support.

Any have an easier method or was this helpful?

Mike Kniaziewicz