From 0022661fead605597b7d5f58f4caf7a6b10ee495 Mon Sep 17 00:00:00 2001 From: Master3395 Date: Sun, 28 Jan 2024 20:47:14 +0100 Subject: [PATCH] Update php versions This change adds php 80, 81 and 82 to the missing places. And removes .bak file from the read me. Updating the readme to add php 8.2 Add php limit extension for php 6, 7 and 8 --- README.md | 1 + README.md.bak | 52 ----------------------------------- install/php-configs/www.conf | 2 +- install/phpconfigs/php80.conf | 6 ++-- install/phpconfigs/php81.conf | 16 +++++++++++ install/phpconfigs/php82.conf | 16 +++++++++++ 6 files changed, 37 insertions(+), 56 deletions(-) delete mode 100644 README.md.bak create mode 100644 install/phpconfigs/php81.conf create mode 100644 install/phpconfigs/php82.conf diff --git a/README.md b/README.md index c18ea068a..5a41bb149 100755 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Web Hosting Control Panel that uses OpenLiteSpeed as the underlying Web Server. # Supported PHP Versions +* PHP 8.2 * PHP 8.1 * PHP 8.0 * PHP 7.4 diff --git a/README.md.bak b/README.md.bak deleted file mode 100644 index ff9c97e70..000000000 --- a/README.md.bak +++ /dev/null @@ -1,52 +0,0 @@ -# CyberPanel - -Webhosting control panel that uses OpenLiteSpeed as web server. - -## Features - -* Different Level Of users. -* Auto SSL. -* FTP Server. -* Light weight DNS Server (PowerDNS). -* PHPMYAdmin. -* Email Support (Rainloop). -* FileManager. -* PHP Managment. -* Firewall (FirewallD & ConfigServer Firewall Intregration). -* One click Backup and Restore. - -# Supported PHPs - -* PHP 5.3 -* PHP 5.4 -* PHP 5.5 -* PHP 5.6 -* PHP 7.0 -* PHP 7.1 -* PHP 7.2 -* PHP 7.3 -* PHP 7.4 -* PHP 8.0 - -# Installation Instructions - - -``` -sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh) -``` - -# Upgrading - - -``` -sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh) -``` - -# Resources - -* [Official Site.](https://cyberpanel.net) -* [Documentation.](https://docs.cyberpanel.net) -* [Forums.](https://forums.cyberpanel.net) -* [Discord.](https://discord.gg/g8k8Db3) -* [Facebook Group.](https://www.facebook.com/groups/cyberpanel) - diff --git a/install/php-configs/www.conf b/install/php-configs/www.conf index 29ef69b6a..b838e3f99 100755 --- a/install/php-configs/www.conf +++ b/install/php-configs/www.conf @@ -381,7 +381,7 @@ slowlog = /var/log/php-fpm/www-slow.log ; exectute php code. ; Note: set an empty value to allow all extensions. ; Default Value: .php -;security.limit_extensions = .php .php3 .php4 .php5 +;security.limit_extensions = .php .php3 .php4 .php5 .php7 .php8 ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from ; the current environment. diff --git a/install/phpconfigs/php80.conf b/install/phpconfigs/php80.conf index d60ccd0d7..fb034fbdd 100755 --- a/install/phpconfigs/php80.conf +++ b/install/phpconfigs/php80.conf @@ -1,13 +1,13 @@ -php74.confextprocessor php74 { +php74.confextprocessor php80 { type lsapi - address uds://tmp/lshttpd/lsphp74.sock + address uds://tmp/lshttpd/lsphp80.sock maxConns 50 initTimeout 60 retryTimeout 0 persistConn 1 respBuffer 0 autoStart 1 - path /usr/local/lsws/lsphp74/bin/lsphp + path /usr/local/lsws/lsphp80/bin/lsphp memSoftLimit 2047M memHardLimit 2047M procSoftLimit 400 diff --git a/install/phpconfigs/php81.conf b/install/phpconfigs/php81.conf new file mode 100644 index 000000000..d43f5abe4 --- /dev/null +++ b/install/phpconfigs/php81.conf @@ -0,0 +1,16 @@ +php74.confextprocessor php81 { + type lsapi + address uds://tmp/lshttpd/lsphp81.sock + maxConns 50 + initTimeout 60 + retryTimeout 0 + persistConn 1 + respBuffer 0 + autoStart 1 + path /usr/local/lsws/lsphp81/bin/lsphp + memSoftLimit 2047M + memHardLimit 2047M + procSoftLimit 400 + procHardLimit 500 +} + diff --git a/install/phpconfigs/php82.conf b/install/phpconfigs/php82.conf new file mode 100644 index 000000000..df4bd1d08 --- /dev/null +++ b/install/phpconfigs/php82.conf @@ -0,0 +1,16 @@ +php74.confextprocessor php82 { + type lsapi + address uds://tmp/lshttpd/lsphp82.sock + maxConns 50 + initTimeout 60 + retryTimeout 0 + persistConn 1 + respBuffer 0 + autoStart 1 + path /usr/local/lsws/lsphp82/bin/lsphp + memSoftLimit 2047M + memHardLimit 2047M + procSoftLimit 400 + procHardLimit 500 +} +