Fixed: FS#813 - umask in suphp.conf should be 0022
| | |
| | | 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/www',0); |
| | | replaceLine('/etc/suphp.conf','umask=0077','umask=0022',0); |
| | | } |
| | | |
| | | //* Create the logging directory for the vhost logfiles |
| | |
| | | //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); |
| | | replaceLine('/etc/suphp.conf','umask=0077','umask=0022',0); |
| | | //} |
| | | |
| | | // Sites enabled and avaulable dirs |
| | |
| | | if(is_file('/etc/suphp/suphp.conf')) { |
| | | replaceLine('/etc/suphp/suphp.conf','php=php:/usr/bin','x-httpd-suphp=php:/usr/bin/php-cgi',0); |
| | | //replaceLine('/etc/suphp/suphp.conf','docroot=','docroot=/var/clients',0); |
| | | replaceLine('/etc/suphp/suphp.conf','umask=0077','umask=0022',0); |
| | | } |
| | | |
| | | if(is_file('/etc/apache2/sites-enabled/000-default')) { |