View Single Post
  #4  
Old 7th April 2009, 21:38
Doug_M Doug_M is offline
Junior Member
 
Join Date: Mar 2009
Posts: 5
Thanks: 1
Thanked 1 Time in 1 Post
Default

For those of you interested in modifying the apache plugin here you go:

Code:
vi /usr/local/ispconfig/server/plugins-enabled/apache2_plugin.inc.php
Around line 198 added groupname variable like so:
Code:
function update($event_name,$data) {
     global $app, $conf;
      $groupname = "apache";
Around line 403 commented out groupname and added my own like so:
Code:
 //$groupname = escapeshellcmd($data["new"]["system_group"]);
 $groupname = "apache";
Around line 430 added a chmod to make group writeable:
Code:
exec("chown -R $username:$groupname ".escapeshellcmd($data["new"]["document_root"]));
exec("chmod -R ug+w ".escapeshellcmd($data["new"]["document_root"]));
Reply With Quote