We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f06816d commit cbda300Copy full SHA for cbda300
server/plugins-available/apache2_plugin.inc.php
@@ -379,9 +379,13 @@ function update($event_name,$data) {
379
}
380
381
382
+ if($this->action == 'insert') {
383
+ // Chown and chmod the directories below the document root
384
+ exec("chown -R $username:$groupname ".escapeshellcmd($data["new"]["document_root"]));
385
- // Chown and chmod the directories
- exec("chown -R $username:$groupname ".escapeshellcmd($data["new"]["document_root"]));
386
+ // The document root itself has to be owned by root
387
+ exec("chown root:root ".escapeshellcmd($data["new"]["document_root"]));
388
+ }
389
390
// make temp direcory writable for the apache user and the website user
391
exec("chmod 777 ".escapeshellcmd($data["new"]["document_root"]."/tmp"));
0 commit comments