Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Carlos Gonzalez
ISPConfig 3
Commits
beefb85b
Commit
beefb85b
authored
Aug 17, 2018
by
Till Brehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed
#5065
Strict fcgi starter script permissions leads to a 500 server error on debian wheezy
parent
7a7ba27a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
server/plugins-available/apache2_plugin.inc.php
server/plugins-available/apache2_plugin.inc.php
+20
-4
No files found.
server/plugins-available/apache2_plugin.inc.php
View file @
beefb85b
...
...
@@ -1460,7 +1460,11 @@ class apache2_plugin {
//exec('chown -R '.$data['new']['system_user'].':'.$data['new']['system_group'].' '.escapeshellcmd($fastcgi_starter_path));
$app
->
system
->
chown
(
$fastcgi_starter_path
,
$data
[
'new'
][
'system_user'
]);
$app
->
system
->
chgrp
(
$fastcgi_starter_path
,
$data
[
'new'
][
'system_group'
]);
$app
->
system
->
chmod
(
$fastcgi_starter_path
,
0550
);
if
(
$web_config
[
'security_level'
]
==
10
)
{
$app
->
system
->
chmod
(
$fastcgi_starter_path
,
0755
);
}
else
{
$app
->
system
->
chmod
(
$fastcgi_starter_path
,
0550
);
}
$fcgi_tpl
=
new
tpl
();
$fcgi_tpl
->
newTemplate
(
'php-fcgi-starter.master'
);
...
...
@@ -1503,7 +1507,11 @@ class apache2_plugin {
$app
->
log
(
'Creating fastcgi starter script: '
.
$fcgi_starter_script
,
LOGLEVEL_DEBUG
);
$app
->
system
->
chmod
(
$fcgi_starter_script
,
0550
);
if
(
$web_config
[
'security_level'
]
==
10
)
{
$app
->
system
->
chmod
(
$fcgi_starter_script
,
0755
);
}
else
{
$app
->
system
->
chmod
(
$fcgi_starter_script
,
0550
);
}
$app
->
system
->
chown
(
$fcgi_starter_script
,
$data
[
'new'
][
'system_user'
]);
$app
->
system
->
chgrp
(
$fcgi_starter_script
,
$data
[
'new'
][
'system_group'
]);
...
...
@@ -1596,7 +1604,11 @@ class apache2_plugin {
$app
->
system
->
mkdirpath
(
$cgi_starter_path
);
$app
->
system
->
chown
(
$cgi_starter_path
,
$data
[
'new'
][
'system_user'
]);
$app
->
system
->
chgrp
(
$cgi_starter_path
,
$data
[
'new'
][
'system_group'
]);
$app
->
system
->
chmod
(
$cgi_starter_path
,
0550
);
if
(
$web_config
[
'security_level'
]
==
10
)
{
$app
->
system
->
chmod
(
$cgi_starter_path
,
0755
);
}
else
{
$app
->
system
->
chmod
(
$cgi_starter_path
,
0550
);
}
$app
->
log
(
'Creating cgi starter script directory: '
.
$cgi_starter_path
,
LOGLEVEL_DEBUG
);
}
...
...
@@ -1629,7 +1641,11 @@ class apache2_plugin {
$app
->
log
(
'Creating cgi starter script: '
.
$cgi_starter_script
,
LOGLEVEL_DEBUG
);
$app
->
system
->
chmod
(
$cgi_starter_script
,
0550
);
if
(
$web_config
[
'security_level'
]
==
10
)
{
$app
->
system
->
chmod
(
$cgi_starter_script
,
0755
);
}
else
{
$app
->
system
->
chmod
(
$cgi_starter_script
,
0550
);
}
$app
->
system
->
chown
(
$cgi_starter_script
,
$data
[
'new'
][
'system_user'
]);
$app
->
system
->
chgrp
(
$cgi_starter_script
,
$data
[
'new'
][
'system_group'
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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