Changeset 1915

Show
Ignore:
Timestamp:
09/07/07 21:38:02 (11 months ago)
Author:
anarcat
Message:

re-establish apache-modconf as means of enabling vhost_alias and php modules, don't talk to ucf
Closes: #1062

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/install/alternc.install

    r1899 r1915  
    181181# Enable vhost_alias apache module at the right place (ie: BEFORE mod_alias, but apache knows this ... ) 
    182182# well, apache-modconf works like crap in a shell script ... 
    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 
     183apache-modconf apache enable mod_vhost_alias quiet </dev/null || true 
     184apache-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 
     185apache-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 
    202186 
    203187# Copy postfix *_checks if they do not exist