server/plugins-available/apache2_plugin.inc.php | ●●●●● patch | view | raw | blame | history |
server/plugins-available/apache2_plugin.inc.php
@@ -379,10 +379,14 @@ } // Chown and chmod the directories if($this->action == 'insert') { // Chown and chmod the directories below the document root 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"));