Installing PHP doesn't restart Apache2 by default, needs manual restart
Bug #152410 reported by
hasan
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: php5
After installing the LAMP package, and I tried to test any php pages, my browser prompted me to download the php file rather than display it because the php module is not enabled. I think it should be enabled by default.
This requires apache2 to restart itself after installing libapache-mod-php5 (installed as a dependency for php5). As this is not done automatically, the module is not loaded by default and hence PHP scripts can be executed.
WORKAROUND:
on a terminal, issue "sudo invoke-rc.d apache2 restart" #if using Apache V2.x)
Changed in php5: | |
importance: | Undecided → Low |
To post a comment you must log in.
Thank you for taking the time to report this bug and helping to make Ubuntu better.
How did you install the LAMP package ?
Can you check that php5 is listed in /etc/apache2/ mods-enabled/ ?