Public bug reported:

The postinst maintainer script for libapache2-mod-php5 correctly enabled
the php5 apache module; however the reload_apache function does a force-
reload:

reload_apache()
{
    if apache2ctl configtest 2>/dev/null; then
        invoke-rc.d apache2 force-reload || true
    else
        echo "Your apache2 configuration is broken, so we're not restarting it 
for you."
    fi
}

I don't think this is sufficient to enable the php5 module; this can be
seen when installing lamp-server as follows:

sudo tasksel install lamp-server
sudo echo "<? $world=\"Hello World!\"; echo $world; ?>" > /var/www/test.php
wget http://localhost:80/test.php

test.php is returned unprocessed.

Restarting apache resolves this issue.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libapache2-mod-php5 5.3.10-1ubuntu2
ProcVersionSignature: Ubuntu 3.2.0-18.29-generic 3.2.9
Uname: Linux 3.2.0-18-generic x86_64
ApportVersion: 1.94.1-0ubuntu2
Architecture: amd64
Date: Mon Mar 12 14:53:18 2012
SourcePackage: php5
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: php5 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug precise

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/953081

Title:
  libapache2-mod-php5 postinst script does not enable module

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/953081/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to