| | |
| | | replaceLine('/etc/suphp.conf','umask=0077','umask=0022',0); |
| | | //} |
| | | |
| | | if(!file_exists('/srv/www/cgi-bin/php5') && file_exists('/srv/www/cgi-bin/php')) { |
| | | symlink('/srv/www/cgi-bin/php','/srv/www/cgi-bin/php5'); |
| | | } |
| | | |
| | | // Sites enabled and available dirs |
| | | exec('mkdir -p '.$conf['apache']['vhost_conf_enabled_dir']); |
| | | exec('mkdir -p '.$conf['apache']['vhost_conf_dir']); |
| | |
| | | } |
| | | |
| | | if(is_dir($install_dir.'/interface/invoices')) { |
| | | chmod($install_dir.'/interface/invoices', 0770); |
| | | chown($install_dir.'/interface/invoices', 'ispconfig'); |
| | | chgrp($install_dir.'/interface/invoices', 'ispconfig'); |
| | | exec('chmod -R 770 '.escapeshellarg($install_dir.'/interface/invoices')); |
| | | exec('chown -R ispconfig:ispconfig '.escapeshellarg($install_dir.'/interface/invoices')); |
| | | } |
| | | |
| | | |