Changeset 1882

Show
Ignore:
Timestamp:
08/23/07 19:14:17 (1 year ago)
Author:
benjamin
Message:

apache modules manual install

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/debian/changelog

    r1879 r1882  
    1 alternc (0.9.6.4) stable; urgency=low 
    2  
     1alternc (0.9.6.4-1) stable; urgency=low 
     2 
     3  * Patch to install properly apache and apache-ssl modules 
    34  * We copy /etc/squirrelmail/default_pref content for new accounts in _createpop (#1015) 
    45  * we configure postfix even if main.cf don't currently exist (#1009) 
  • alternc/trunk/debian/control

    r1836 r1882  
    99Package: alternc 
    1010Architecture: all 
    11 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 
     11Depends: 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 
    1212Recommends: libapache-mod-gzip 
    1313Conflicts: alternc-admintools, alternc-awstats (<= 0.3.2), alternc-webalizer (<= 0.9.4) 
  • alternc/trunk/install/alternc.install

    r1881 r1882  
    180180touch /var/alternc/apacheconf/override_php.conf 
    181181# Enable vhost_alias apache module at the right place (ie: BEFORE mod_alias, but apache knows this ... ) 
    182 apache-modconf apache enable mod_vhost_alias quiet </dev/null || true 
    183 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 
     182# 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 
     185if ! grep -q "vhost_alias_module" /etc/apache/modules.conf  
     186then 
     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 
     190fi 
     191if ! grep -q "php5_module" /etc/apache/modules.conf  
     192then 
     193    mv /etc/apache/modules.conf /etc/apache/modules.conf.alternc-dist 
     194    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/'    
     195    rm /etc/apache/modules.conf.alternc-dist 
     196fi 
     197if ! grep -q "php5_module" /etc/apache-ssl/modules.conf  
     198then 
     199    mv /etc/apache-ssl/modules.conf /etc/apache-ssl/modules.conf.alternc-dist 
     200    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 
     201    rm /etc/apache-ssl/modules.conf.alternc-dist 
     202fi 
     203 
    184204 
    185205# Copy postfix *_checks if they do not exist