| | |
| | | |
| | | if(is_file('/etc/suphp.conf')) { |
| | | replaceLine('/etc/suphp.conf','php=php:/usr/bin','x-httpd-suphp=php:/usr/bin/php-cgi',0); |
| | | replaceLine('/etc/suphp.conf','docroot=','docroot=/var/clients',0); |
| | | replaceLine('/etc/suphp.conf','docroot=','docroot=/var/www',0); |
| | | } |
| | | |
| | | //* Create the logging directory for the vhost logfiles |
| | |
| | | |
| | | $content = rf('/etc/httpd/conf/httpd.conf'); |
| | | if(!stristr($content,'Include /etc/httpd/conf/sites-enabled/')) { |
| | | af('/etc/httpd/conf/httpd.conf',"\nInclude /etc/httpd/conf/sites-enabled/\n\n"); |
| | | af('/etc/httpd/conf/httpd.conf',"\nNameVirtualHost *:80\nNameVirtualHost *:443\nInclude /etc/httpd/conf/sites-enabled/\n\n"); |
| | | } |
| | | unset($content); |
| | | |