From 90dabbb31f0f70300ad81a2d55845d84b9525991 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Tue, 14 May 2024 20:25:55 +0300 Subject: [PATCH] Update PHPInstaller.php --- .../Server/Applications/PHPInstaller.php | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/web/app/Installers/Server/Applications/PHPInstaller.php b/web/app/Installers/Server/Applications/PHPInstaller.php index 4bbd183..72162a3 100644 --- a/web/app/Installers/Server/Applications/PHPInstaller.php +++ b/web/app/Installers/Server/Applications/PHPInstaller.php @@ -56,29 +56,29 @@ class PHPInstaller $lastItem = end($this->phpVersions); foreach ($this->phpVersions as $phpVersion) { if ($phpVersion == $lastItem) { - $commands[] = 'sudo a2enmod php' . $phpVersion; + $commands[] = 'a2enmod php' . $phpVersion; } else { - $commands[] = 'sudo a2dismod php' . $phpVersion; + $commands[] = 'a2dismod php' . $phpVersion; } } - $commands[] = 'sudo a2enmod cgi'; - $commands[] = 'sudo a2enmod mime'; - $commands[] = 'sudo a2enmod rewrite'; - $commands[] = 'sudo a2enmod env'; - $commands[] = 'sudo a2enmod ssl'; - $commands[] = 'sudo a2enmod actions'; - $commands[] = 'sudo a2enmod headers'; - $commands[] = 'sudo a2enmod suexec'; - $commands[] = 'sudo a2enmod ruid2'; - $commands[] = 'sudo a2enmod proxy'; - $commands[] = 'sudo a2enmod proxy_http'; + $commands[] = 'a2enmod cgi'; + $commands[] = 'a2enmod mime'; + $commands[] = 'a2enmod rewrite'; + $commands[] = 'a2enmod env'; + $commands[] = 'a2enmod ssl'; + $commands[] = 'a2enmod actions'; + $commands[] = 'a2enmod headers'; + $commands[] = 'a2enmod suexec'; + $commands[] = 'a2enmod ruid2'; + $commands[] = 'a2enmod proxy'; + $commands[] = 'a2enmod proxy_http'; // For Fast CGI -// $commands[] = 'sudo a2enmod fcgid'; -// $commands[] = 'sudo a2enmod alias'; -// $commands[] = 'sudo a2enmod proxy_fcgi'; -// $commands[] = 'sudo a2enmod setenvif'; +// $commands[] = 'a2enmod fcgid'; +// $commands[] = 'a2enmod alias'; +// $commands[] = 'a2enmod proxy_fcgi'; +// $commands[] = 'a2enmod setenvif'; // $commands[] = 'ufw allow in "Apache Full"'; $commands[] = 'systemctl restart apache2';