Hi everyone, I'm currently trying to update php version, and i didn't find a solution concerning update php pool automatically. php7.3 was installed during ispconfig installation. I've install 7.4 and 8.1 version (with sury). I'm trying to uninstall php 7.3 and then ispconfig doesn't work anymore. i've update php version in server config : but nothing change for my pool conf. Is there a tool that can done that, or have i to done it manually? there is not config store somewhere that would override my update during the next ispconfig update? Thanks in advance
ISPConfig uses the PHP version that belongs to the OS that you installed. Did you upgrade the OS, so you have a new default OS PHP version? If yes, change the settings to the new PHP version which belongs to the OS after you ran an ISPConfig update with reconfigure services. See perfect server upgrade guides here at Howtoforge. If you did not upgrade your OS to get a newer PHP version, then do not alter main PHP settings. New main PHP versions come only with an upgrade of the OS.
i've update all my server (debian 10), uninstall php7.3*, update-alternative php was set to 7.4, then run ispconfig_update.sh. there is an update available, so have proceded to update, and answer yes to reconfigure services. Still in php7.3 in /etc/php/7.3/fpm/pool.d/ispconfig.conf Code: # apt remove php7.3* ... Do you want to continue? [Y/n] (Reading database ... 168976 files and directories currently installed.) Removing php7.3 (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Removing php7.3-memcache (8.0+4.0.5.2+3.0.9~20170802.e702b5f9+-8+0~20221209.29+debian10~1.gbp59de0d) ... Removing php7.3-gnupg (1.5.1-3+0~20221209.11+debian10~1.gbp3fda77) ... Removing php7.3-cgi (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Removing php7.3-fpm (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Removing php7.3-cli (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Removing php7.3-zip (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Removing php7.3-xsl (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Removing php7.3-curl (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Removing php7.3-gd (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Removing php7.3-imap (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Removing php7.3-intl (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Removing php7.3-json (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Removing php7.3-mbstring (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Removing php7.3-mysql (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Removing php7.3-opcache (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Removing php7.3-pspell (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Removing php7.3-readline (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Removing php7.3-recode (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Removing php7.3-soap (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Removing php7.3-sqlite3 (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Removing php7.3-tidy (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Removing php7.3-xml (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Removing php7.3-xmlrpc (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Removing php7.3-common (7.3.33-9+0~20230106.102+debian10~1.gbpc4e85f) ... Processing triggers for man-db (2.8.5-2) ... Code: # ispconfig_update.sh --force -------------------------------------------------------------------------------- _____ ___________ _____ __ _ |_ _/ ___| ___ \ / __ \ / _(_) | | \ `--.| |_/ / | / \/ ___ _ __ | |_ _ __ _ | | `--. \ __/ | | / _ \| '_ \| _| |/ _` | _| |_/\__/ / | | \__/\ (_) | | | | | | | (_| | \___/\____/\_| \____/\___/|_| |_|_| |_|\__, | __/ | |___/ -------------------------------------------------------------------------------- >> Update Please choose the update method. For production systems select 'stable'. WARNING: The update from GIT is only for development systems and may break your current setup. Do not use the GIT version on servers that host any live websites! Note: On Multiserver systems, enable maintenance mode and update your master server first. Then update all slave servers, and disable maintenance mode when all servers are updated. Select update method (stable,nightly,git-develop) [stable]: Downloading ISPConfig update. Unpacking ISPConfig update. -------------------------------------------------------------------------------- _____ ___________ _____ __ _ ____ |_ _/ ___| ___ \ / __ \ / _(_) /__ \ | | \ `--.| |_/ / | / \/ ___ _ __ | |_ _ __ _ _/ / | | `--. \ __/ | | / _ \| '_ \| _| |/ _` | |_ | _| |_/\__/ / | | \__/\ (_) | | | | | | | (_| | ___\ \ \___/\____/\_| \____/\___/|_| |_|_| |_|\__, | \____/ __/ | |___/ -------------------------------------------------------------------------------- >> Update Operating System: Debian 10.0 (Buster) or compatible This application will update ISPConfig 3 on your server. Shall the script create a ISPConfig backup in /var/backup/ now? (yes,no) [yes]: Creating backup of "/usr/local/ispconfig" directory... Creating backup of "/etc" directory... Creating backup of "/etc/letsencrypt" directory... Checking ISPConfig database .. OK Starting incremental database update. Loading SQL patch file: /tmp/update_runner.sh.RQfH1mG26L/install/sql/incremental/upd_dev_collection.sql Reconfigure Permissions in master database? (yes,no) [no]: Service 'dns_server' has been detected (currently disabled) do you want to enable and configure it? (yes,no) [no]: Reconfigure Services? (yes,no,selected) [yes]: yes Configuring Postfix Configuring Dovecot Configuring Spamassassin Configuring Amavisd Configuring Getmail Configuring Pureftpd Configuring nginx Configuring Apps vhost Configuring Jailkit Configuring AppArmor Configuring Ubuntu Firewall Configuring Database Updating ISPConfig Certificate exists. Not creating a new one. Reconfigure Crontab? (yes,no) [yes]: yes Updating Crontab Restarting services ... Failed to reload php7.3-fpm.service: Unit php7.3-fpm.service is masked. Update finished. Code: # ls 7.*/fpm/pool.d/ispconfig.conf 7.3/fpm/pool.d/ispconfig.conf Did i miss something
The default PHP version of Debian 10 is PHP 7.3, so you can not remove PHP 7.3. If you want to have PHP 7.4 as default, then you must upgrade Debian to Debian 11. Please reread my answer above. I explained it there in detail.
All right, so you fix the version of php with the OS. so debian 10 is php 7.3. Sorry, I misunderstand your answer, English is not my native language. (i understood 'up-to-date' instead of 'upgrade') Thank for the enlightenment, and sorry for your time.