From 513583b6e9bf84c178688f02786b747b0aa66475 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Tue, 30 Apr 2024 16:57:08 +0300 Subject: [PATCH] Update Domain.php --- web/app/Models/Domain.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/app/Models/Domain.php b/web/app/Models/Domain.php index 17430b2..903446b 100644 --- a/web/app/Models/Domain.php +++ b/web/app/Models/Domain.php @@ -194,9 +194,8 @@ class Domain extends Model 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); - shell_exec('chmod -R 0755 /var/log/phyre/domains/'.$this->domain); + shell_exec('chown -R '.$findHostingSubscription->system_username.':'.$webUserGroup.' '.$this->domain_root.'/logs/apache2'); + shell_exec('chmod -R 775 '.$this->domain_root.'/logs/apache2'); $appType = 'php'; $appVersion = '8.3';