This commit is contained in:
Bozhidar 2024-04-30 16:24:16 +03:00
parent d3684c7b3f
commit 85a330fd22
2 changed files with 8 additions and 8 deletions

View file

@ -191,8 +191,8 @@ 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/'.$this->domain)) {
shell_exec('mkdir -p /var/log/phyre/domains/'.$this->domain);
if (!is_dir($this->domain_root.'/logs/apache2')) {
shell_exec('mkdir -p '.$this->domain_root.'/logs/apache2');
}
shell_exec('chown -R '.$findHostingSubscription->system_username.':'.$webUserGroup.' /var/log/phyre/domains/'.$this->domain);

View file

@ -33,12 +33,12 @@
LogFormat "%h %l %u %t \"%r\" %>s %b" common
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
CustomLog {{$domainRoot}}/logs/apache2/bytes.log bytes
CustomLog {{$domainRoot}}/logs/apache2/combined.log combined
CustomLog {{$domainRoot}}/logs/apache2/access.log common
CustomLog {{$domainRoot}}/logs/apache2/referer.log "%{Referer}i -> %U"
CustomLog {{$domainRoot}}/logs/apache2/agent.log "%{User-agent}i"
ErrorLog {{$domainRoot}}/logs/apache2/error.log
@if($appType == 'php')