Bug 155333 - /etc/sysconfig/apache2 APACHE_MODULES should be updated to php5
Summary: /etc/sysconfig/apache2 APACHE_MODULES should be updated to php5
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Network (show other bugs)
Version: Beta 6
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Peter Poeml
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-05 23:06 UTC by Christian Boltz
Modified: 2006-03-27 10:01 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Boltz 2006-03-05 23:06:03 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.
Comment 1 Michael Gross 2006-03-06 09:49:34 UTC
\
Comment 2 Petr Ostadal 2006-03-06 12:39:46 UTC
Peter, could you update it in apache2, please?
Comment 3 Peter Poeml 2006-03-07 09:27:10 UTC
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?
Comment 4 Petr Ostadal 2006-03-09 13:06:21 UTC
ok, and what I should add to php5 package?
Comment 5 Peter Poeml 2006-03-10 13:37:39 UTC
I would say, the above snippet in %post of apache2-mod_php5 would be all
that's needed.
Comment 6 Petr Ostadal 2006-03-14 14:37:27 UTC
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?
Comment 7 Peter Poeml 2006-03-17 12:41:21 UTC
If php5 is already in APACHE_MODULES, there is nothing to do. Am I
missing something?
Comment 8 Petr Ostadal 2006-03-20 10:57:57 UTC
done, close bug
Comment 9 Peter Poeml 2006-03-20 14:16:47 UTC
thanks!
Comment 10 Christian Boltz 2006-03-25 21:35:03 UTC
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?
Comment 11 Cristian Rodríguez 2006-03-25 22:16:41 UTC
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.
Comment 12 Peter Poeml 2006-03-27 10:01:54 UTC
/usr/share/apache2/apache-20-22-upgrade (as run from %post) takes care
about that, including the auth module renames.