| | |
| | | $app->system->chmod($data['new']['document_root'].'/tmp',0777); |
| | | |
| | | // Set Log directory to 755 to make the logs accessible by the FTP user |
| | | if(realpath($data['new']['document_root'].'/'.$log_folder) == '/var/log/ispconfig/httpd/'.$data['new']['domain'].'/error.log') { |
| | | if(realpath($data['new']['document_root'].'/'.$log_folder . '/error.log') == '/var/log/ispconfig/httpd/'.$data['new']['domain'].'/error.log') { |
| | | $app->system->chmod($data['new']['document_root'].'/'.$log_folder,0755); |
| | | } |
| | | |
| | |
| | | $app->system->chgrp($data['new']['document_root'],'root'); |
| | | $app->system->chown($data['new']['document_root'].'/cgi-bin',$username); |
| | | $app->system->chgrp($data['new']['document_root'].'/cgi-bin',$groupname); |
| | | if(realpath($data['new']['document_root'].'/'.$log_folder) == '/var/log/ispconfig/httpd/'.$data['new']['domain'].'/error.log') { |
| | | if(realpath($data['new']['document_root'].'/'.$log_folder . '/error.log') == '/var/log/ispconfig/httpd/'.$data['new']['domain'].'/error.log') { |
| | | $app->system->chown($data['new']['document_root'].'/'.$log_folder,'root',false); |
| | | $app->system->chgrp($data['new']['document_root'].'/'.$log_folder,$groupname,false); |
| | | } |
| | |
| | | $app->system->chmod($data['new']['document_root'].'/tmp',0777); |
| | | |
| | | // Set Log directory to 755 to make the logs accessible by the FTP user |
| | | if(realpath($data['new']['document_root'].'/'.$log_folder) == '/var/log/ispconfig/httpd/'.$data['new']['domain'].'/error.log') { |
| | | if(realpath($data['new']['document_root'].'/'.$log_folder . '/error.log') == '/var/log/ispconfig/httpd/'.$data['new']['domain'].'/error.log') { |
| | | $app->system->chmod($data['new']['document_root'].'/'.$log_folder,0755); |
| | | } |
| | | |
| | |
| | | $app->system->chgrp($data['new']['document_root'],'root'); |
| | | $app->system->chown($data['new']['document_root'].'/cgi-bin',$username); |
| | | $app->system->chgrp($data['new']['document_root'].'/cgi-bin',$groupname); |
| | | if(realpath($data['new']['document_root'].'/'.$log_folder) == '/var/log/ispconfig/httpd/'.$data['new']['domain'].'/error.log') { |
| | | if(realpath($data['new']['document_root'].'/'.$log_folder . '/error.log') == '/var/log/ispconfig/httpd/'.$data['new']['domain'].'/error.log') { |
| | | $app->system->chown($data['new']['document_root'].'/'.$log_folder,'root',false); |
| | | $app->system->chgrp($data['new']['document_root'].'/'.$log_folder,$groupname,false); |
| | | } |