Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
c6f5f009
Commit
c6f5f009
authored
Jul 05, 2009
by
tbrehm
Browse files
No commit message
No commit message
parent
046eff22
Changes
1
Show whitespace changes
Inline
Side-by-side
server/plugins-available/apache2_plugin.inc.php
View file @
c6f5f009
...
...
@@ -476,28 +476,15 @@ class apache2_plugin {
exec
(
"chmod 711 "
.
escapeshellcmd
(
$data
[
"new"
][
"document_root"
]
.
"/*"
));
exec
(
"chmod 710 "
.
escapeshellcmd
(
$data
[
"new"
][
"document_root"
]
.
"/web"
));
//* Change the home directory and group of the website user
$command
=
'usermod'
;
$command
.
=
' --groups sshusers,'
.
escapeshellcmd
(
$web_config
[
'group'
]);
$command
.
=
' '
.
escapeshellcmd
(
$data
[
"new"
][
"system_user"
]);
exec
(
$command
);
$app
->
log
(
"Modifying user:
$command
"
,
LOGLEVEL_DEBUG
);
//* add the apache user to the client group
$app
->
system
->
add_user_to_group
(
$groupname
,
escapeshellcmd
(
$web_config
[
'user'
]));
// make temp direcory writable for the apache user and the website user
// exec("chmod 777 ".escapeshellcmd($data["new"]["document_root"]."/tmp"));
// If the security Level is set to medium
}
else
{
exec
(
"chmod 755 "
.
escapeshellcmd
(
$data
[
"new"
][
"document_root"
]
.
"/"
));
exec
(
"chmod 755 "
.
escapeshellcmd
(
$data
[
"new"
][
"document_root"
]
.
"/*"
));
//* Change the home directory and group of the website user
$command
=
'usermod'
;
$command
.
=
' --groups sshusers '
;
$command
.
=
' '
.
escapeshellcmd
(
$data
[
"new"
][
"system_user"
]);
exec
(
$command
);
$app
->
log
(
"Modifying user:
$command
"
,
LOGLEVEL_DEBUG
);
// make temp direcory writable for the apache user and the website user
exec
(
"chmod 777 "
.
escapeshellcmd
(
$data
[
"new"
][
"document_root"
]
.
"/tmp"
));
}
...
...
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