From 73e1c87b0a147c6a8aa464476be7e8df37b2ab30 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Thu, 23 Aug 2007 17:14:17 +0000 Subject: [PATCH] apache modules manual install --- debian/changelog | 3 ++- debian/control | 2 +- install/alternc.install | 24 ++++++++++++++++++++++-- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index d6784d9e..23767d61 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,6 @@ -alternc (0.9.6.4) stable; urgency=low +alternc (0.9.6.4-1) stable; urgency=low + * Patch to install properly apache and apache-ssl modules * We copy /etc/squirrelmail/default_pref content for new accounts in _createpop (#1015) * we configure postfix even if main.cf don't currently exist (#1009) * Fixed the 'view' link issues (no urlencode) (#690) diff --git a/debian/control b/debian/control index 3e66f9f1..c496b979 100644 --- a/debian/control +++ b/debian/control @@ -8,7 +8,7 @@ Standards-Version: 3.7.2.1 Package: alternc Architecture: all -Depends: debianutils (>= 1.13.1), debconf (>= 0.5.00) | debconf-2.0, libapache-mod-php4 | libapache-mod-php5, apache, apache-ssl, courier-ssl, courier-imap-ssl, courier-pop-ssl, mysql-server, php4-mysql | php5-mysql, phpmyadmin, postfix, proftpd-mysql, squirrelmail, postfix-tls, bind9, wget, rsync, quota, courier-authmysql | courier-authlib-mysql, ca-certificates, locales, perl-suid, perl, postfix-mysql, wwwconfig-common, sasl2-bin, libsasl2-modules, php4-cli | php5-cli, lockfile-progs (>= 0.1.9), gettext (>= 0.10.40-5), pdksh (>= 5.2.14-6), adduser +Depends: debianutils (>= 1.13.1), debconf (>= 0.5.00) | debconf-2.0, libapache-mod-php5 | libapache-mod-php4, apache, apache-ssl, courier-ssl, courier-imap-ssl, courier-pop-ssl, mysql-server, php5-mysql | php4-mysql, phpmyadmin, postfix, proftpd-mysql, squirrelmail, postfix-tls, bind9, wget, rsync, quota, courier-authmysql | courier-authlib-mysql, ca-certificates, locales, perl-suid, perl, postfix-mysql, wwwconfig-common, sasl2-bin, libsasl2-modules, php5-cli | php4-cli, lockfile-progs (>= 0.1.9), gettext (>= 0.10.40-5), pdksh (>= 5.2.14-6), adduser Recommends: libapache-mod-gzip Conflicts: alternc-admintools, alternc-awstats (<= 0.3.2), alternc-webalizer (<= 0.9.4) Provides: alternc-admintools diff --git a/install/alternc.install b/install/alternc.install index db8b1a36..07b77e26 100644 --- a/install/alternc.install +++ b/install/alternc.install @@ -179,8 +179,28 @@ touch /var/run/alternc/refresh_slave # Apache will not start without this file touch /var/alternc/apacheconf/override_php.conf # Enable vhost_alias apache module at the right place (ie: BEFORE mod_alias, but apache knows this ... ) -apache-modconf apache enable mod_vhost_alias quiet /etc/apache/modules.conf + rm /etc/apache/modules.conf.alternc-dist +fi +if ! grep -q "php5_module" /etc/apache/modules.conf +then + mv /etc/apache/modules.conf /etc/apache/modules.conf.alternc-dist + cat /etc/apache/modules.conf.alternc-dist | sed -e 's/LoadModule gzip_module/LoadModule php5_module \/usr\/lib\/apache\/1.3\/libphp5.so\nLoadModule gzip_module/' + rm /etc/apache/modules.conf.alternc-dist +fi +if ! grep -q "php5_module" /etc/apache-ssl/modules.conf +then + mv /etc/apache-ssl/modules.conf /etc/apache-ssl/modules.conf.alternc-dist + cat /etc/apache-ssl/modules.conf.alternc-dist | sed -e 's/LoadModule gzip_module/LoadModule php5_module \/usr\/lib\/apache\/1.3\/libphp5.so\nLoadModule gzip_module/' >/etc/apache-ssl/modules.conf + rm /etc/apache-ssl/modules.conf.alternc-dist +fi + # Copy postfix *_checks if they do not exist for file in body_checks header_checks; do