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