diff --git a/app/Http/Controllers/ServerController.php b/app/Http/Controllers/ServerController.php index ffd66457..0a1b4c6d 100644 --- a/app/Http/Controllers/ServerController.php +++ b/app/Http/Controllers/ServerController.php @@ -1332,6 +1332,7 @@ public function servicerestart(string $server_id, string $service) $ssh->exec('sudo systemctl restart nginx.service'); break; case 'php': + $ssh->exec('sudo service php8.2-fpm restart'); $ssh->exec('sudo service php8.1-fpm restart'); $ssh->exec('sudo service php8.0-fpm restart'); $ssh->exec('sudo service php7.4-fpm restart'); diff --git a/config/cipi.php b/config/cipi.php index 79ec9b97..26e92abc 100644 --- a/config/cipi.php +++ b/config/cipi.php @@ -20,7 +20,7 @@ // Global Settings 'users_prefix' => env('CIPI_USERS_PREFIX', 'cp'), - 'phpvers' => ['8.1','8.0','7.4'], + 'phpvers' => ['8.2', '8.1','8.0','7.4'], 'services' => ['nginx','php','mysql','redis','supervisor'], 'default_php' => '8.0', diff --git a/go.sh b/go.sh index f60af52c..2d3eeffb 100644 --- a/go.sh +++ b/go.sh @@ -359,6 +359,38 @@ max_input_time = 180 EOF sudo service php8.1-fpm restart +sudo apt-get -y install php8.2-fpm +sudo apt-get -y install php8.2-common +sudo apt-get -y install php8.2-curl +sudo apt-get -y install php8.2-openssl +sudo apt-get -y install php8.2-bcmath +sudo apt-get -y install php8.2-mbstring +sudo apt-get -y install php8.2-tokenizer +sudo apt-get -y install php8.2-mysql +sudo apt-get -y install php8.2-sqlite3 +sudo apt-get -y install php8.2-pgsql +sudo apt-get -y install php8.2-redis +sudo apt-get -y install php8.2-memcached +sudo apt-get -y install php8.2-json +sudo apt-get -y install php8.2-zip +sudo apt-get -y install php8.2-xml +sudo apt-get -y install php8.2-soap +sudo apt-get -y install php8.2-gd +sudo apt-get -y install php8.2-imagick +sudo apt-get -y install php8.2-fileinfo +sudo apt-get -y install php8.2-imap +sudo apt-get -y install php8.2-cli +PHPINI=/etc/php/8.1/fpm/conf.d/cipi.ini +sudo touch $PHPINI +sudo cat > "$PHPINI" <{{ __('cipi.php_cli_version') }}:

+ diff --git a/storage/app/cipi/setup.sh b/storage/app/cipi/setup.sh index d462ced2..96a7910b 100644 --- a/storage/app/cipi/setup.sh +++ b/storage/app/cipi/setup.sh @@ -350,6 +350,38 @@ EOF sudo service php8.1-fpm restart +sudo apt-get -y install php8.2-fpm +sudo apt-get -y install php8.2-common +sudo apt-get -y install php8.2-curl +sudo apt-get -y install php8.2-openssl +sudo apt-get -y install php8.2-bcmath +sudo apt-get -y install php8.2-mbstring +sudo apt-get -y install php8.2-tokenizer +sudo apt-get -y install php8.2-mysql +sudo apt-get -y install php8.2-sqlite3 +sudo apt-get -y install php8.2-pgsql +sudo apt-get -y install php8.2-redis +sudo apt-get -y install php8.2-memcached +sudo apt-get -y install php8.2-json +sudo apt-get -y install php8.2-zip +sudo apt-get -y install php8.2-xml +sudo apt-get -y install php8.2-soap +sudo apt-get -y install php8.2-gd +sudo apt-get -y install php8.2-imagick +sudo apt-get -y install php8.2-fileinfo +sudo apt-get -y install php8.2-imap +sudo apt-get -y install php8.2-cli +PHPINI=/etc/php/8.1/fpm/conf.d/cipi.ini +sudo touch $PHPINI +sudo cat > "$PHPINI" <