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
Zvonimir
ISPConfig 3
Commits
cbda3005
Commit
cbda3005
authored
Jan 27, 2009
by
tbrehm
Browse files
Fixed: FS#431 - jailkit users cannot login
parent
f06816d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/apache2_plugin.inc.php
View file @
cbda3005
...
...
@@ -379,9 +379,13 @@ class apache2_plugin {
}
if
(
$this
->
action
==
'insert'
)
{
// Chown and chmod the directories below the document root
exec
(
"chown -R
$username
:
$groupname
"
.
escapeshellcmd
(
$data
[
"new"
][
"document_root"
]));
// Chown and chmod the directories
exec
(
"chown -R
$username
:
$groupname
"
.
escapeshellcmd
(
$data
[
"new"
][
"document_root"
]));
// The document root itself has to be owned by root
exec
(
"chown root:root "
.
escapeshellcmd
(
$data
[
"new"
][
"document_root"
]));
}
// 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