2005-10-22, 04:03 AM
PHP5 & Apache2 Installation (For Ubuntu - Breezy)
Note: This is pretty simple. Just follow these commands and it should work very easily.
Run
Quote:apt-get updateapt-get install -t breezy apache2-common apache2-mpm-prefork libapache2-mod-php5LoadModule php5_module /usr/lib/apache2/modules/libphp5.soIf you are like me and tried to install apache2 before hand run this:
Quote: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
Quote:root@ubuntu-server:/etc/apache2/mods-enabled# lscgi.load php5.conf php5.load userdir.conf userdir.loadI manually created the files by adding the contents below.
php5.conf
Quote:<IfModule mod_php5.c> AddType application/x-httpd-php .php .phtml .php3php5.load
AddType application/x-httpd-php-source .phps
</IfModule>
Quote:LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
These files need to be in:
/etc/apache2/mods-enabled/
/etc/apache2/mods-allowed/