Commit a4f044fe authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#813 - umask in suphp.conf should be 0022

parent 3cebc3a5
...@@ -409,6 +409,7 @@ class installer_dist extends installer_base { ...@@ -409,6 +409,7 @@ class installer_dist extends installer_base {
if(is_file('/etc/suphp.conf')) { 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','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','docroot=','docroot=/var/www',0);
replaceLine('/etc/suphp.conf','umask=0077','umask=0022',0);
} }
//* Create the logging directory for the vhost logfiles //* Create the logging directory for the vhost logfiles
......
...@@ -432,6 +432,7 @@ class installer_dist extends installer_base { ...@@ -432,6 +432,7 @@ class installer_dist extends installer_base {
//if(is_file('/etc/suphp.conf')) { //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','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','docroot=','docroot=/srv/www',0,0);
replaceLine('/etc/suphp.conf','umask=0077','umask=0022',0);
//} //}
// Sites enabled and avaulable dirs // Sites enabled and avaulable dirs
......
...@@ -778,6 +778,7 @@ class installer_base { ...@@ -778,6 +778,7 @@ class installer_base {
if(is_file('/etc/suphp/suphp.conf')) { 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','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','docroot=','docroot=/var/clients',0);
replaceLine('/etc/suphp/suphp.conf','umask=0077','umask=0022',0);
} }
if(is_file('/etc/apache2/sites-enabled/000-default')) { if(is_file('/etc/apache2/sites-enabled/000-default')) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment