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
ISPConfig
ISPConfig 3
Commits
ca8191e9
Commit
ca8191e9
authored
Oct 05, 2009
by
tbrehm
Browse files
Fixed: FS#896 - Error.log of website must be accessible by ftp user
parent
4ad810b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/apache2_plugin.inc.php
View file @
ca8191e9
...
@@ -538,6 +538,10 @@ class apache2_plugin {
...
@@ -538,6 +538,10 @@ class apache2_plugin {
$this
->
_exec
(
"chmod 777 "
.
escapeshellcmd
(
$data
[
"new"
][
"document_root"
]
.
"/tmp"
));
$this
->
_exec
(
"chmod 777 "
.
escapeshellcmd
(
$data
[
"new"
][
"document_root"
]
.
"/tmp"
));
}
}
// Change the owner of the error log to the owner of the website
if
(
!@
is_file
(
$data
[
"new"
][
"document_root"
]
.
"/log/error.log"
))
exec
(
'touch '
.
escapeshellcmd
(
$data
[
"new"
][
"document_root"
])
.
"/log/error.log"
);
$this
->
_exec
(
"chown
$username
:
$groupname
"
.
escapeshellcmd
(
$data
[
"new"
][
"document_root"
])
.
"/log/error.log"
);
// Create the vhost config file
// Create the vhost config file
$app
->
load
(
'tpl'
);
$app
->
load
(
'tpl'
);
...
...
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