Skip to content

Commit

Permalink
Add php8.2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
andp97 committed Feb 6, 2023
1 parent 1d71c87 commit 401b36d
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/Http/Controllers/ServerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion config/cipi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',

Expand Down
32 changes: 32 additions & 0 deletions go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" <<EOF
memory_limit = 256M
upload_max_filesize = 256M
post_max_size = 256M
max_execution_time = 180
max_input_time = 180
EOF
sudo service php8.2-fpm restart

# PHP EXTRA
sudo apt-get -y install php-dev php-pear

Expand Down
1 change: 1 addition & 0 deletions resources/views/server.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
<p>{{ __('cipi.php_cli_version') }}:</p>
<div class="input-group">
<select class="form-control" id="phpver">
<option value="8.2" id="php82">8.2</option>
<option value="8.1" id="php81">8.1</option>
<option value="8.0" id="php80">8.0</option>
<option value="7.4" id="php74">7.4</option>
Expand Down
1 change: 1 addition & 0 deletions resources/views/site.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
<p>{{ __('cipi.php_fpm_version') }}:</p>
<div class="input-group">
<select class="form-control" id="sitephpver">
<option value="8.2" id="php82">8.2</option>
<option value="8.1" id="php81">8.1</option>
<option value="8.0" id="php80">8.0</option>
<option value="7.4" id="php74">7.4</option>
Expand Down
32 changes: 32 additions & 0 deletions storage/app/cipi/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" <<EOF
memory_limit = 256M
upload_max_filesize = 256M
post_max_size = 256M
max_execution_time = 180
max_input_time = 180
EOF
sudo service php8.2-fpm restart

# PHP EXTRA
sudo apt-get -y install php-dev php-pear

Expand Down

0 comments on commit 401b36d

Please sign in to comment.