Update MasterDomain.php

This commit is contained in:
Bozhidar 2024-05-02 21:11:57 +03:00
parent ee4587f81d
commit a1359933e0

View file

@ -46,12 +46,16 @@ class MasterDomain
$apacheBaseConfig = $apacheVirtualHostBuilder->buildConfig();
shell_exec('mkdir -p /var/www/logs/apache2');
shell_exec('touch /var/www/logs/apache2/bytes.log');
shell_exec('touch /var/www/logs/apache2/access.log');
shell_exec('touch /var/www/logs/apache2/error.log');
if (!empty($apacheBaseConfig)) {
file_put_contents('/etc/apache2/sites-available/'.$this->domain.'.conf', $apacheBaseConfig);
shell_exec('ln -s /etc/apache2/sites-available/'.$this->domain.'-default.conf /etc/apache2/sites-enabled/'.$this->domain.'-default.conf');
}
// install SSL
$findDomainSSLCertificate = null;