Ubuntu users in Ontario, Canada?
geo
yaktur at yahoo.com
Thu Jun 26 02:09:42 UTC 2008
I was trying to implement your advice. I was creating the files "php5.conf" and "php5.load" and their respective contents and permissions by hand.....then I realized I don't have a modules directory!
This is the contents of my /etc/apache2/ directory:
(Directories)
conf.d
mods-available
mods-enabled
sites-available
sites-enabled
(Individual files)
apache2.conf
enwars
httpd.conf
ports.conf
And that's all that's in /etc/apache2/ !!!
There is no /etc/apache2/modules/ path!
YIKES! What has happened? Why isn't there one there?
geo
--- On Wed, 6/25/08, Andrew Mathenge <mathenge at gmail.com> wrote:
From: Andrew Mathenge <mathenge at gmail.com>
Subject: Re: Ubuntu users in Ontario, Canada?
To: yaktur at yahoo.com, "The Canadian Ubuntu Users Community" <ubuntu-ca at lists.ubuntu.com>
Date: Wednesday, June 25, 2008, 9:46 PM
The problem you have is that PHP modules aren't being loaded by
apache. You mentioned that when you wrote:
>> I don't have any such files named php5.conf and php5.load in
/etc/apache2/mods-enabled/. Nothing there even starts with php.
I have PHP working on my system. My /etc/apache2/mods-enabled/dir.conf
file looks like this:
<IfModule mod_dir.c>
DirectoryIndex index.html index.cgi index.pl index.php
index.xhtml index.htm
</IfModule>
Inside the folder /etc/apache2/mods-enabled folder, I also have the
following links:
lrwxrwxrwx 1 root root 27 2008-04-26 22:26 php5.conf ->
../mods-available/php5.conf
lrwxrwxrwx 1 root root 27 2008-04-26 22:26 php5.load ->
../mods-available/php5.load
Notice that these are links (or shortcuts) pointing to the following
files in /etc/apache2/mods-available
-rw-r--r-- 1 root root 133 2008-02-27 15:49 php5.conf
-rw-r--r-- 1 root root 59 2008-02-27 15:49 php5.load
Those files have the following contents:
php5.conf looks like this:
<IfModule mod_php5.c>
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
</IfModule>
And php5.load looks like this:
LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
Which means that the file in /usr/lib/apache2/modules/libphp5.so MUST
exist or PHP will not work.
One final comment. Removing "index.php" from
/etc/apache2/mods-enabled/dir.conf means that the file index.php won't
be loaded by default. PHP files will still be processed because of the
/etc/apache2/mods-enabled/php.conf file.
Hope this moves you a step closer!
Andrew.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-ca/attachments/20080625/a87df294/attachment.html>
More information about the ubuntu-ca
mailing list