<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Here, try these commands geo and send the output please. Apache2 has
two tools that let you enable and disable modules without worry about
linking etc.<br>
<br>
a2enmod<br>
<br>
This will then ask you what module you want to enable. You should see
php5 in the list (this list btw is all the modules you have installed
on your machine, as far as apache knows - installed but not necessarily
activated/enabled). Type php5 (assuming it is in the list) and hit
Enter. If will tell you if it is already enabled, or will tell you it
was successfully enabled, or will throw an error. Please send the
output and interactions you have.<br>
<br>
Note you can also use<br>
<br>
a2dismod<br>
<br>
to disable modules. You could use this to see what is already enabled
- hopefully php5 is listed. If not then use a2enmod as above. If you
want to quit either tool without making any changes type "CTRL-C" to
return to the command line.<br>
<br>
Once the php5 module is enabled in apache, restart it (apache2ctl
restart) and then see if the PHP file works properly in Firefox.<br>
<br>
Kirk<br>
<br>
<br>
<br>
geo wrote:
<blockquote cite="mid:351646.20291.qm@web30102.mail.mud.yahoo.com"
type="cite">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td
style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;"
valign="top">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!<br>
<br>
This is the contents of my /etc/<span>apache</span>2/ directory:<br>
<br>
(Directories)<br>
conf.d<br>
mods-available<br>
mods-enabled<br>
sites-available<br>
sites-enabled<br>
<br>
(Individual files)<br>
apache2.conf<br>
enwars<br>
httpd.conf<br>
ports.conf<br>
<br>
And that's all that's in /etc/apache2/ !!!<br>
<br>
There is no /etc/apache2/modules/ path!<br>
<br>
YIKES! What has happened? Why isn't there one there?<br>
<br>
geo<br>
<br>
--- On <b>Wed, 6/25/08, Andrew Mathenge <i><a class="moz-txt-link-rfc2396E" href="mailto:mathenge@gmail.com"><mathenge@gmail.com></a></i></b>
wrote:<br>
<blockquote
style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From:
Andrew Mathenge <a class="moz-txt-link-rfc2396E" href="mailto:mathenge@gmail.com"><mathenge@gmail.com></a><br>
Subject: Re: Ubuntu users in Ontario, Canada?<br>
To: <a class="moz-txt-link-abbreviated" href="mailto:yaktur@yahoo.com">yaktur@yahoo.com</a>, "The Canadian Ubuntu Users Community"
<a class="moz-txt-link-rfc2396E" href="mailto:ubuntu-ca@lists.ubuntu.com"><ubuntu-ca@lists.ubuntu.com></a><br>
Date: Wednesday, June 25, 2008, 9:46 PM<br>
<br>
<pre>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.</pre>
</blockquote>
</td>
</tr>
</tbody>
</table>
<br>
</blockquote>
</body>
</html>