| | |
| | | //* Create the logging directory for the vhost logfiles |
| | | exec('mkdir -p /var/log/ispconfig/httpd'); |
| | | |
| | | if(is_file('/etc/suphp/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=/var/clients',0); |
| | | } |
| | | |
| | | // Sites enabled and avaulable dirs |
| | | exec('mkdir -p '.$conf['apache']['vhost_conf_enabled_dir']); |
| | | exec('mkdir -p '.$conf['apache']['vhost_conf_dir']); |
| | | |
| | | $content = rf('/etc/apache2/httpd.conf'); |
| | | if(!stristr($content,'Include /etc/apache2/sites-enabled/')) { |
| | | af('/etc/apache2/httpd.conf',"\nInclude /etc/apache2/sites-enabled/\n\n"); |
| | | af('/etc/apache2/httpd.conf',"\n<Directory /srv/www>\n Options FollowSymlinks\n</Directory>\n\nInclude /etc/apache2/sites-enabled/\n\n"); |
| | | } |
| | | unset($content); |
| | | |