Skip to content

Commit a4f044f

Browse files
committed
Fixed: FS#813 - umask in suphp.conf should be 0022
1 parent 3cebc3a commit a4f044f

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

install/dist/lib/fedora.lib.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ public function configure_apache()
409409
if(is_file('/etc/suphp.conf')) {
410410
//replaceLine('/etc/suphp.conf','php=php:/usr/bin','x-httpd-suphp=php:/usr/bin/php-cgi',0);
411411
replaceLine('/etc/suphp.conf','docroot=','docroot=/var/www',0);
412+
replaceLine('/etc/suphp.conf','umask=0077','umask=0022',0);
412413
}
413414

414415
//* Create the logging directory for the vhost logfiles

install/dist/lib/opensuse.lib.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ public function configure_apache()
432432
//if(is_file('/etc/suphp.conf')) {
433433
replaceLine('/etc/suphp.conf','php=php','x-httpd-suphp=php:/srv/www/cgi-bin/php5',0,0);
434434
replaceLine('/etc/suphp.conf','docroot=','docroot=/srv/www',0,0);
435+
replaceLine('/etc/suphp.conf','umask=0077','umask=0022',0);
435436
//}
436437

437438
// Sites enabled and avaulable dirs

install/lib/installer_base.lib.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,7 @@ public function configure_apache()
778778
if(is_file('/etc/suphp/suphp.conf')) {
779779
replaceLine('/etc/suphp/suphp.conf','php=php:/usr/bin','x-httpd-suphp=php:/usr/bin/php-cgi',0);
780780
//replaceLine('/etc/suphp/suphp.conf','docroot=','docroot=/var/clients',0);
781+
replaceLine('/etc/suphp/suphp.conf','umask=0077','umask=0022',0);
781782
}
782783

783784
if(is_file('/etc/apache2/sites-enabled/000-default')) {

0 commit comments

Comments
 (0)