libapache2-mod-php5 postinst script does not enable module
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Debian) |
Fix Released
|
Unknown
|
|||
php5 (Ubuntu) |
Fix Released
|
Medium
|
James Page | ||
Precise |
Fix Released
|
Medium
|
James Page |
Bug Description
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://
test.php is returned unprocessed.
Restarting apache resolves this issue.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libapache2-mod-php5 5.3.10-1ubuntu2
ProcVersionSign
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)
Related branches
tags: | added: iso-testing qa-daily-tesing |
tags: |
added: qa-daily-testing removed: qa-daily-tesing |
Changed in php5 (Debian): | |
status: | Unknown → New |
Changed in php5 (Debian): | |
status: | New → Fix Released |
Changed in php5 (Ubuntu): | |
milestone: | none → ubuntu-12.04 |
Changed in php5 (Ubuntu Precise): | |
assignee: | nobody → James Page (james-page) |
Looks like there is some open debate on the Debian side as to how best to handle it. The real problem is not that force-reload is insufficient.. its fine sometimes. But that it doesn't initialize php on a new install.