Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-mw committed Nov 26, 2024
1 parent 169bfbb commit 3f60580
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/app/Installers/Server/Applications/PHPInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,14 @@ public function install()
foreach ($commands as $command) {
$shellFileContent .= $command . PHP_EOL;
}

$shellFileContent .= 'echo "All packages installed successfully!"' . PHP_EOL;
$shellFileContent .= 'echo "DONE!"' . PHP_EOL;
$shellFileContent .= 'rm -f /tmp/php-installer.sh';

file_put_contents('/tmp/php-installer.sh', $shellFileContent);

shell_exec('chmod +x /tmp/php-installer.sh');
shell_exec('bash /tmp/php-installer.sh >> ' . $this->logFilePath . ' &');

}
Expand Down
1 change: 1 addition & 0 deletions web/app/Models/Domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ public function configureVirtualHost($fixPermissions = false)
$apacheVirtualHostBuilder->setHomeRoot($this->home_root);
$apacheVirtualHostBuilder->setUser($findHostingSubscription->system_username);
$apacheVirtualHostBuilder->setUserGroup($webUserGroup);
$apacheVirtualHostBuilder->setEnableLogs(true);

if ($this->status == self::STATUS_SUSPENDED) {
$suspendedPath = '/var/www/html/suspended';
Expand Down

0 comments on commit 3f60580

Please sign in to comment.