Update ApacheWebsiteCreate.php
This commit is contained in:
parent
7ff58a3983
commit
7645b2899b
1 changed files with 9 additions and 7 deletions
|
@ -55,13 +55,15 @@ class ApacheWebsiteCreate
|
|||
|
||||
public function handle()
|
||||
{
|
||||
$getLinuxUser = new GetLinuxUser();
|
||||
$getLinuxUser->setUsername($this->user);
|
||||
$linuxUser = $getLinuxUser->handle();
|
||||
// $getLinuxUser = new GetLinuxUser();
|
||||
// $getLinuxUser->setUsername($this->user);
|
||||
// $linuxUser = $getLinuxUser->handle();
|
||||
//
|
||||
// if (empty($linuxUser)) {
|
||||
// return false;
|
||||
// }
|
||||
|
||||
if (empty($linuxUser)) {
|
||||
return false;
|
||||
}
|
||||
$linuxUser = $this->user;
|
||||
|
||||
if ($this->isMainDomain) {
|
||||
$allDomainsRoot = '/home/'.$this->user.'/public_html';
|
||||
|
@ -104,7 +106,7 @@ class ApacheWebsiteCreate
|
|||
mkdir($domainPublic);
|
||||
}
|
||||
|
||||
shell_exec('chmod -R 775 /etc/apache2/sites-available/');
|
||||
// shell_exec('chmod -R 775 /etc/apache2/sites-available/');
|
||||
|
||||
file_put_contents('/etc/apache2/sites-available/'.$settings['domain'].'.conf', $apache2Sample);
|
||||
|
||||
|
|
Loading…
Reference in a new issue