@@ -407,7 +407,10 @@ public function configure_saslauthd() {
407407 if (is_file ($ configfile .'~ ' )) exec ('chmod 400 ' .$ configfile .'~ ' );
408408 $ content = rf ($ configfile );
409409 $ content = str_replace ('START=no ' ,'START=yes ' ,$ content );
410+ // Debian
410411 $ content = str_replace ('OPTIONS="-c" ' ,'OPTIONS="-m /var/spool/postfix/var/run/saslauthd -r" ' ,$ content );
412+ // Ubuntu
413+ $ content = str_replace ('OPTIONS="-c -m /var/run/saslauthd" ' ,'OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r" ' ,$ content );
411414 wf ($ configfile ,$ content );
412415
413416 // Edit the file /etc/init.d/saslauthd
@@ -416,6 +419,9 @@ public function configure_saslauthd() {
416419 $ content = str_replace ('PIDFILE=$RUN_DIR/saslauthd.pid ' ,'PIDFILE="/var/spool/postfix/var/run/${NAME}/saslauthd.pid" ' ,$ content );
417420 wf ($ configfile ,$ content );
418421
422+ // add the postfix user to the sasl group (at least nescessary for ubuntu 8.04 and most likely debian lenny too.
423+ exec ('adduser postfix sasl ' );
424+
419425
420426 }
421427
@@ -611,7 +617,7 @@ public function configure_apache()
611617 exec ('mkdir -p /var/log/ispconfig/httpd ' );
612618
613619 if (is_file ('/etc/suphp/suphp.conf ' )) {
614- replaceLine ('/etc/suphp/suphp.conf ' ,'php=php:/usr/bin/php-cgi ' ,'x-httpd-suphp=php:/usr/bin/php-cgi ' ,0 );
620+ replaceLine ('/etc/suphp/suphp.conf ' ,'php=php:/usr/bin ' ,'x-httpd-suphp=php:/usr/bin/php-cgi ' ,0 );
615621 replaceLine ('/etc/suphp/suphp.conf ' ,'docroot= ' ,'docroot=/var/clients ' ,0 );
616622 }
617623
0 commit comments