| 183 | | # apache-modconf apache enable mod_vhost_alias quiet </dev/null || true |
|---|
| 184 | | # 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 |
|---|
| 185 | | if ! grep -q "vhost_alias_module" /etc/apache/modules.conf |
|---|
| 186 | | then |
|---|
| 187 | | mv /etc/apache/modules.conf /etc/apache/modules.conf.alternc-dist |
|---|
| 188 | | 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 |
|---|
| 189 | | rm /etc/apache/modules.conf.alternc-dist |
|---|
| 190 | | fi |
|---|
| 191 | | if ! grep -q "php5_module" /etc/apache/modules.conf |
|---|
| 192 | | then |
|---|
| 193 | | echo "LoadModule php5_module /usr/lib/apache/1.3/libphp5.so" >>/etc/apache/modules.conf |
|---|
| 194 | | fi |
|---|
| 195 | | if ! grep -q "php5_module" /etc/apache-ssl/modules.conf |
|---|
| 196 | | then |
|---|
| 197 | | echo "LoadModule php5_module /usr/lib/apache/1.3/libphp5.so" >>/etc/apache-ssl/modules.conf |
|---|
| 198 | | fi |
|---|
| 199 | | # We update ucf, that's bad isn't it ? ;) |
|---|
| 200 | | ucf /etc/apache/modules.conf /etc/apache/modules.conf |
|---|
| 201 | | ucf /etc/apache-ssl/modules.conf /etc/apache-ssl/modules.conf |
|---|
| | 183 | apache-modconf apache enable mod_vhost_alias quiet </dev/null || true |
|---|
| | 184 | 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 |
|---|
| | 185 | 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 |
|---|