Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
a4f044fe
Commit
a4f044fe
authored
Jul 13, 2009
by
tbrehm
Browse files
Fixed: FS#813 - umask in suphp.conf should be 0022
parent
3cebc3a5
Changes
3
Hide whitespace changes
Inline
Side-by-side
install/dist/lib/fedora.lib.php
View file @
a4f044fe
...
...
@@ -409,6 +409,7 @@ class installer_dist extends installer_base {
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
...
...
install/dist/lib/opensuse.lib.php
View file @
a4f044fe
...
...
@@ -432,6 +432,7 @@ class installer_dist extends installer_base {
//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
...
...
install/lib/installer_base.lib.php
View file @
a4f044fe
...
...
@@ -778,6 +778,7 @@ class installer_base {
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'
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment