apache modules manual install
This commit is contained in:
parent
65ce0863af
commit
73e1c87b0a
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 </dev/null || true
|
||||
apache-modconf apache enable `dpkg -l libapache-mod-php*|grep ii | cut -f 3 -d ' '|cut -b 11-18|sed -e 's/-/_/'` quiet </dev/null || true
|
||||
# well, apache-modconf works like crap in a shell script ...
|
||||
# apache-modconf apache enable mod_vhost_alias quiet </dev/null || true
|
||||
# apache-modconf apache enable `dpkg -l libapache-mod-php*|grep ii | cut -f 3 -d ' '|cut -b 11-18|sed -e 's/-/_/'` quiet </dev/null|| true
|
||||
if ! grep -q "vhost_alias_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 config_log_module/LoadModule vhost_alias_module \/usr\/lib\/apache\/1.3\/mod_vhost_alias.so\nLoadModule config_log_module/' > /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
|
||||
|
|
Loading…
Reference in New Issue