Bugzilla – Bug 155333
/etc/sysconfig/apache2 APACHE_MODULES should be updated to php5
Last modified: 2006-03-27 10:01:54 UTC
After updating from 10.0 to 10.1 beta, I noticed that PHP pages didn't work in Apache. The reason is quite simple: /etc/sysconfig/apache2 still contains "php4" in APACHE_MODULES, but php4 is no longer included in 10.1. The APACHE_MODULES value should be updated to "php5" when updating to 10.1. Also, the "image_map" module was renamed AFAIK - it should also be changed in APACHE_MODULES on update.
\
Peter, could you update it in apache2, please?
sysconfig.apache2 does contain "php4 php5" at the moment. I am removing the "php4" now. So much for the default. For system updates (where there is only "php4" in APACHE_MODULES from former times) we can do: if a2enmod -q php4 && ! a2enmod -q php5; then a2dismod php4 a2enmod php5 fi I am wondering whether we should do it in %post of the php5 package, or in the %post of apache2. In fact, I would prefer to do it in php5 because this would allow to use the apache2 package to update installations where php4 is used before and after apache2 upgrade. What do you think?
ok, and what I should add to php5 package?
I would say, the above snippet in %post of apache2-mod_php5 would be all that's needed.
I added it to php5, but it doesn't work, when update it from 10.0 because APACHE_MODULES contain both php4 and php5 and the condition in post% failed every time. How we should fix these condition?
If php5 is already in APACHE_MODULES, there is nothing to do. Am I missing something?
done, close bug
thanks!
What about mod_imap? It was renamed to mod_imagemap and should be updated also. (Sorry for the slightly wrong name in my initial comment!) Should I open a separate bugreport for that or do you prefer reopening this one?
cboltz: good point, however I don't know if anybody is using that thing :-) anyway should be fixed or removed from the default module list.
/usr/share/apache2/apache-20-22-upgrade (as run from %post) takes care about that, including the auth module renames.