Commit ca8191e9 authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#896 - Error.log of website must be accessible by ftp user

parent 4ad810b7
......@@ -538,6 +538,10 @@ class apache2_plugin {
$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
$app->load('tpl');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment