Linux-Noob Forums
Php5 & Apache2 on Ubuntu - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Distro Noob (https://www.linux-noob.com/forums/forum-10.html)
+--- Forum: Ubuntu (https://www.linux-noob.com/forums/forum-99.html)
+--- Thread: Php5 & Apache2 on Ubuntu (/thread-2369.html)



Php5 & Apache2 on Ubuntu - kZo - 2005-10-22


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.so
If 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.load
I manually created the files by adding the contents below.

 

php5.conf

Quote:<IfModule mod_php5.c>  AddType application/x-httpd-php .php .phtml .php3

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

</IfModule>
php5.load
Quote:LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
 

These files need to be in:

/etc/apache2/mods-enabled/

/etc/apache2/mods-allowed/




Php5 & Apache2 on Ubuntu - znx - 2005-10-22


ah the easy and joy of ubuntu.. ;)

 

nice one .. ty kzo




Php5 & Apache2 on Ubuntu - campisi_44 - 2006-02-02

I just used the package manager...but then again I dont think I installed .php5...ahhh well apache2 isnt running, I should check it out lol...