Jump to content
Sign in to follow this  

Php5 & Apache2 on Ubuntu

Recommended Posts

PHP5 & Apache2 Installation (For Ubuntu - Breezy)


Note: This is pretty simple. Just follow these commands and it should work very easily.




apt-get update

apt-get install -t breezy apache2-common apache2-mpm-prefork libapache2-mod-php5LoadModule php5_module /usr/lib/apache2/modules/libphp5.so

If you are like me and tried to install apache2 before hand run this:


apt-get remove apache2 apache2-{common,utils}


If you still have problems, which I did on my laptop, but not my server. Odd, but here is what I found:


During the PHP5 installation it did not create the files in under the /etc/apache2/mods-enabled/ directory... See Below


root@ubuntu-server:/etc/apache2/mods-enabled# ls

cgi.load  php5.conf  php5.load  userdir.conf  userdir.load

I manually created the files by adding the contents below.



<IfModule mod_php5.c>

  AddType application/x-httpd-php .php .phtml .php3

  AddType application/x-httpd-php-source .phps


LoadModule php5_module /usr/lib/apache2/modules/libphp5.so


These files need to be in:



Share this post

Link to post
Share on other sites

ah the easy and joy of ubuntu.. ;)


nice one .. ty kzo

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...