Bug#380651: apache2: can't open php files
On Mon, Jul 31, 2006 at 05:52:45PM +0200, Uwe Brauer wrote:
> Package: apache2
> Version: 2.0.55-4
> Severity: normal
>
> the file install.php is of type application/x-php (php script)
> and mozilla does not know what to do about it....
>
> So it seems that the php4 module is not loaded, but I don't understand
> why
> libapache2-mod-php4
> and all the php4 package are installed.
>
> The php4.load file in
> /etc/apache2/mods-available contains
>
> LoadModule php4_module /usr/lib/apache2/modules/libphp4.so
>
>
> And this lib exists. So I don't know.
Did you install libapache2-mod-php4 fully, and do you have the
/etc/apache2/apache2.conf file? Because the module package's postinst
script has this:
if [ -e /etc/apache2/apache2.conf ]; then
# Enable the module, but hide a2enmod's misleading message about apachectl
# and force-reload the thing ourselves.
a2enmod php4 >/dev/null || true
reload_apache
fi
In any case, can you run manually as root:
a2enmod php4
and then verify that you get something like this:
% ls -l /etc/apache2/mods-enabled/php4.*
lrwxrwxrwx 1 root root 37 2005-10-24 14:46 /etc/apache2/mods-enabled/php4.conf -> /etc/apache2/mods-available/php4.conf
lrwxrwxrwx 1 root root 37 2005-10-24 14:46 /etc/apache2/mods-enabled/php4.load -> /etc/apache2/mods-available/php4.load
--
2. That which causes joy or happiness.
Reply to: