re-establish apache-modconf as means of enabling vhost_alias and php modules, don't talk to ucf
Closes: #1062
This commit is contained in:
parent
556cf1c5bb
commit
dc8c4de66b
|
@ -180,25 +180,9 @@ touch /var/run/alternc/refresh_slave
|
||||||
touch /var/alternc/apacheconf/override_php.conf
|
touch /var/alternc/apacheconf/override_php.conf
|
||||||
# Enable vhost_alias apache module at the right place (ie: BEFORE mod_alias, but apache knows this ... )
|
# Enable vhost_alias apache module at the right place (ie: BEFORE mod_alias, but apache knows this ... )
|
||||||
# well, apache-modconf works like crap in a shell script ...
|
# 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 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
|
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
|
apache-modconf apache-ssl enable `dpkg -l libapache-mod-php*|grep ii | cut -f 3 -d ' '|cut -b 11-18|sed -e 's/-/_/'` quiet </dev/null|| true
|
||||||
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
|
|
||||||
echo "LoadModule php5_module /usr/lib/apache/1.3/libphp5.so" >>/etc/apache/modules.conf
|
|
||||||
fi
|
|
||||||
if ! grep -q "php5_module" /etc/apache-ssl/modules.conf
|
|
||||||
then
|
|
||||||
echo "LoadModule php5_module /usr/lib/apache/1.3/libphp5.so" >>/etc/apache-ssl/modules.conf
|
|
||||||
fi
|
|
||||||
# We update ucf, that's bad isn't it ? ;)
|
|
||||||
ucf /etc/apache/modules.conf /etc/apache/modules.conf
|
|
||||||
ucf /etc/apache-ssl/modules.conf /etc/apache-ssl/modules.conf
|
|
||||||
|
|
||||||
# Copy postfix *_checks if they do not exist
|
# Copy postfix *_checks if they do not exist
|
||||||
for file in body_checks header_checks; do
|
for file in body_checks header_checks; do
|
||||||
|
|
Loading…
Reference in New Issue