Hi, On Wednesday 14 January 2009, Stefan Fritsch wrote: > On Tuesday 13 January 2009, Jan Wagner wrote: > > + if [ -f /usr/lib/$webserver/modules/mod_actions ]; then > > Here a ".so" is missing. But you can just drop that test. > When /usr/sbin/apache2 is there, mod_actions.so will be there, too. > > > Any objections? > > Go ahead.
I attached the actual diff. Please have a look into it and state if it's okay for lenny. Thanks and with kind regards, Jan.
Index: debian/ipplan/trunk/debian/postinst =================================================================== --- debian/ipplan/trunk/debian/postinst (revision 1197) +++ debian/ipplan/trunk/debian/postinst (revision 1649) @@ -24,7 +24,7 @@ modules-config $webserver enable mod_php4 fi - elif [ -f /usr/lib/apache/1.3/libphp3.so ]; then - if ! grep -qs "^LoadModule php3_module " /etc/$webserver/modules.conf; then - modules-config $webserver enable mod_php3 + elif [ -f /usr/lib/apache/1.3/libphp5.so ]; then + if ! grep -qs "^LoadModule php5_module " /etc/$webserver/modules.conf; then + modules-config $webserver enable mod_php5 fi else @@ -45,19 +45,13 @@ apache2) if [ -d /etc/$webserver/mods-enabled ]; then - if [ ! -f /etc/$webserver/mods-enabled/actions.load -a ! -h /etc/$webserver/mods-enabled/actions.load ]; then - ln -s /etc/$webserver/mods-available/actions.load /etc/$webserver/mods-enabled/actions.load - fi - if [ -f /etc/apache2/mods-available/php4.load ]; then - if [ ! -f /etc/$webserver/mods-enabled/php4.load -a ! -h /etc/$webserver/mods-enabled/php4.load ]; then - ln -s /etc/$webserver/mods-available/php4.load /etc/$webserver/mods-enabled/php4.load - fi - elif [ -f /etc/apache2/mods-available/php5.load ]; then - if [ ! -f /etc/$webserver/mods-enabled/php5.load -a ! -h /etc/$webserver/mods-enabled/php5.load ]; then - ln -s /etc/$webserver/mods-available/php5.load /etc/$webserver/mods-enabled/php5.load - fi + # enable actions module + a2enmod actions >/dev/null + # enable php or cgi module + if [ -f /usr/lib/$webserver/modules/libphp4.so ]; then + a2enmod php4 >/dev/null + elif [ -f /usr/lib/$webserver/modules/libphp5.so ]; then + a2enmod php5 >/dev/null else - if [ ! -f /etc/$webserver/mods-enabled/cgi.load -a ! -h /etc/$webserver/mods-enabled/cgi.load ]; then - ln -s /etc/$webserver/mods-available/cgi.load /etc/$webserver/mods-enabled/cgi.load - fi + a2enmod cgi >/dev/null fi fi Index: debian/ipplan/trunk/debian/apache.conf =================================================================== --- debian/ipplan/trunk/debian/apache.conf (revision 1276) +++ debian/ipplan/trunk/debian/apache.conf (revision 1646) @@ -1,4 +1,4 @@ +#Alias /ipplan/menus /usr/share/php/libphp-phplayersmenu #Alias /ipplan /usr/share/ipplan -#Alias /ipplan/menus /usr/share/php/libphp-phplayersmenu <Directory /usr/share/ipplan> Index: debian/ipplan/trunk/debian/changelog =================================================================== --- debian/ipplan/trunk/debian/changelog (revision 1569) +++ debian/ipplan/trunk/debian/changelog (revision 1647) @@ -1,2 +1,11 @@ +ipplan (4.86a-7) unstable; urgency=low + + * check in postinst if shared object exists, before activating php modules + (Closes: #511293) + * remove php3 part for apache in postinst and reused it for php5 + * reorder Aliases in apache.conf (Closes: #511327) + + -- Jan Wagner <w...@cyconet.org> Tue, 13 Jan 2009 13:10:28 +0100 + ipplan (4.86a-6) unstable; urgency=low
signature.asc
Description: This is a digitally signed message part.