Update PHPInstaller.php

This commit is contained in:
Bozhidar 2024-09-10 15:49:00 +03:00
parent 64f47b7fe4
commit 02da12b234

View file

@ -25,6 +25,10 @@ class PHPInstaller
public function install()
{
// Clear log file
file_put_contents($this->logFilePath, '');
$commands = [];
$commands[] = 'echo "Starting PHP Installation..."';
$commands[] = 'export DEBIAN_FRONTEND=noninteractive';
@ -97,7 +101,7 @@ class PHPInstaller
$shellFileContent .= 'rm -f /tmp/php-installer.sh';
file_put_contents('/tmp/php-installer.sh', $shellFileContent);
dd('bash /tmp/php-installer.sh >> ' . $this->logFilePath . ' &');
shell_exec('bash /tmp/php-installer.sh >> ' . $this->logFilePath . ' &');
}