This commit is contained in:
Bozhidar 2024-04-30 15:55:18 +03:00
parent f61f77c0f8
commit d3684c7b3f
2 changed files with 11 additions and 8 deletions

View file

@ -191,10 +191,13 @@ class Domain extends Model
shell_exec('chmod -R 0711 '.$this->domain_root);
shell_exec('chmod -R 775 '.$this->domain_public);
if (!is_dir('/var/log/phyre/domains/')) {
shell_exec('mkdir -p /var/log/phyre/domains/');
if (!is_dir('/var/log/phyre/domains/'.$this->domain)) {
shell_exec('mkdir -p /var/log/phyre/domains/'.$this->domain);
}
shell_exec('chown -R '.$findHostingSubscription->system_username.':'.$webUserGroup.' /var/log/phyre/domains/'.$this->domain);
shell_exec('chmod -R 0755 /var/log/phyre/domains/'.$this->domain);
$appType = 'php';
$appVersion = '8.3';

View file

@ -33,12 +33,12 @@
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog /var/log/phyre/domains/{{$domain}}.bytes bytes
CustomLog /var/log/phyre/domains/{{$domain}}.log combined
CustomLog /var/log/phyre/domains/{{$domain}}.access.log common
CustomLog /var/log/phyre/domains/{{$domain}}.referer.log "%{Referer}i -> %U"
CustomLog /var/log/phyre/domains/{{$domain}}.agent.log "%{User-agent}i"
ErrorLog /var/log/phyre/domains/{{$domain}}.error.log
CustomLog /var/log/phyre/domains/{{$domain}}/bytes.log bytes
CustomLog /var/log/phyre/domains/{{$domain}}/combined.log combined
CustomLog /var/log/phyre/domains/{{$domain}}/access.log common
CustomLog /var/log/phyre/domains/{{$domain}}/referer.log "%{Referer}i -> %U"
CustomLog /var/log/phyre/domains/{{$domain}}/agent.log "%{User-agent}i"
ErrorLog /var/log/phyre/domains/{{$domain}}/error.log
@if($appType == 'php')