| | |
| | | //* Create the logging directory for the vhost logfiles
|
| | | exec('mkdir -p /var/log/ispconfig/httpd');
|
| | |
|
| | | if(is_file('/etc/suphp.conf')) {
|
| | | replaceLine('/etc/suphp.conf','php=php:/srv/www/cgi-bin/php5','x-httpd-suphp=php:/srv/www/cgi-bin/php5',0);
|
| | | replaceLine('/etc/suphp.conf','docroot=','docroot=/srv/www',0);
|
| | | }
|
| | | //if(is_file('/etc/suphp.conf')) {
|
| | | replaceLine('/etc/suphp.conf','php=php','x-httpd-suphp=php:/srv/www/cgi-bin/php5',0,0);
|
| | | replaceLine('/etc/suphp.conf','docroot=','docroot=/srv/www',0,0);
|
| | | //}
|
| | |
|
| | | // Sites enabled and avaulable dirs
|
| | | exec('mkdir -p '.$conf['apache']['vhost_conf_enabled_dir']);
|
| | |
| | | if(!is_dir('/var/log/ispconfig')) mkdir('/var/log/ispconfig');
|
| | | if(!is_file('/var/log/ispconfig/ispconfig.log')) exec('touch /var/log/ispconfig/ispconfig.log');
|
| | |
|
| | | exec('chown getmail /usr/local/ispconfig/server/scripts/run-getmail.sh');
|
| | | exec('chmod 744 /usr/local/ispconfig/server/scripts/run-getmail.sh');
|
| | | exec('mv /usr/local/ispconfig/server/scripts/run-getmail.sh /usr/local/bin/run-getmail.sh');
|
| | | exec('chown getmail /usr/local/bin/run-getmail.sh');
|
| | | exec('chmod 744 /usr/local/bin/run-getmail.sh');
|
| | |
|
| | |
|
| | | }
|
| | |
| | | $existing_cron_jobs = file('crontab.txt');
|
| | |
|
| | | $cron_jobs = array(
|
| | | '*/5 * * * * /usr/local/ispconfig/server/scripts/run-getmail.sh > /dev/null 2>> /var/log/ispconfig/cron.log'
|
| | | '*/5 * * * * /usr/local/bin/run-getmail.sh > /dev/null 2>> /var/log/ispconfig/cron.log'
|
| | | );
|
| | |
|
| | | // remove existing ispconfig cronjobs, in case the syntax has changed
|