mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
Update MasterDomain.php
This commit is contained in:
parent
ee4587f81d
commit
a1359933e0
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue