I installed 3 versions of PHP, 7.4, 8.0 and 8.1. By default I use 7.4 for compatibility issue. In Web Domain, I use 8.1 to run the website. See screenshot below: In server1, it uses the correct php version which is 8.1, but in server2, it uses 7.4. Since there is no way to edit web domain in server2 because ISPConfig is installed only in server1, I was thinking that ISPConfig will also follow the config under web domain. Or may be I'm missing something. If not, how do I force server2 to use the settings in server1?
Yes. This is how it looks like in both server: Code: root@server2:/etc/php# ls -l total 12 drwxr-xr-x 6 root root 4096 Jul 3 11:29 7.4 drwxr-xr-x 6 root root 4096 Jul 3 11:31 8.0 drwxr-xr-x 6 root root 4096 Jul 3 11:32 8.1 root@server2:/etc/php# ls -l 8.1 total 16 drwxr-xr-x 3 root root 4096 Jul 3 11:32 cgi drwxr-xr-x 3 root root 4096 Jul 3 11:28 cli drwxr-xr-x 4 root root 4096 Jul 26 08:44 fpm drwxr-xr-x 2 root root 4096 Aug 8 14:38 mods-available
I look at the pool.d directory and found out that on server1, web domain config were saved under php 8.1. But on server2, config file were saved under 7.4. Please see below: On server1: Code: root@server1:~# ls -l /etc/php/8.1/fpm/pool.d/ total 120 -rw-r--r-- 1 root root 1024 Jul 6 23:15 web10.conf -rw-r--r-- 1 root root 988 Jul 5 15:44 web11.conf -rw-r--r-- 1 root root 1030 Aug 11 14:45 web12.conf -rw-r--r-- 1 root root 1009 Jul 6 20:31 web15.conf -rw-r--r-- 1 root root 1009 Jul 6 20:32 web18.conf -rw-r--r-- 1 root root 994 Jul 6 20:32 web19.conf -rw-r--r-- 1 root root 1017 Jul 24 21:06 web1.conf -rw-r--r-- 1 root root 1024 Jul 5 17:01 web20.conf -rw-r--r-- 1 root root 1039 Jul 14 15:03 web21.conf -rw-r--r-- 1 root root 1006 Jul 5 11:22 web22.conf -rw-r--r-- 1 root root 1024 Jul 5 15:43 web23.conf -rw-r--r-- 1 root root 1018 Jul 13 10:49 web27.conf -rw-r--r-- 1 root root 997 Jul 6 22:38 web29.conf -rw-r--r-- 1 root root 1030 Jul 5 16:07 web2.conf -rw-r--r-- 1 root root 1042 Aug 7 20:47 web31.conf -rw-r--r-- 1 root root 1024 Jul 20 09:21 web33.conf -rw-r--r-- 1 root root 1036 Jul 21 11:17 web35.conf -rw-r--r-- 1 root root 961 Aug 1 20:25 web37.conf -rw-r--r-- 1 root root 1010 Jul 8 20:34 web3.conf -rw-r--r-- 1 root root 1014 Jul 6 13:28 web4.conf -rw-r--r-- 1 root root 1015 Jul 5 18:45 web5.conf -rw-r--r-- 1 root root 1022 Aug 7 21:01 web6.conf -rw-r--r-- 1 root root 1014 Jul 6 13:29 web8.conf -rw-r--r-- 1 root root 1008 Jul 5 18:45 web9.conf -rw-r--r-- 1 root root 20876 Feb 21 22:48 www.conf root@server1:~# On server2: Code: root@server2:~# ls -l /etc/php/7.4/fpm/pool.d/ total 148 -rw-r--r-- 1 root root 387 Aug 11 15:31 apps.conf -rw-r--r-- 1 root root 1024 Jul 6 23:15 web10.conf -rw-r--r-- 1 root root 988 Jul 5 15:44 web11.conf -rw-r--r-- 1 root root 1030 Aug 11 14:45 web12.conf -rw-r--r-- 1 root root 985 Jul 6 13:33 web13.conf -rw-r--r-- 1 root root 982 Jul 6 20:28 web14.conf -rw-r--r-- 1 root root 1009 Jul 6 20:31 web15.conf -rw-r--r-- 1 root root 1024 Jul 5 15:43 web16.conf -rw-r--r-- 1 root root 1033 Jul 4 10:05 web17.conf -rw-r--r-- 1 root root 1009 Jul 6 20:32 web18.conf -rw-r--r-- 1 root root 994 Jul 6 20:32 web19.conf -rw-r--r-- 1 root root 1017 Jul 24 21:06 web1.conf -rw-r--r-- 1 root root 1024 Jul 5 17:01 web20.conf -rw-r--r-- 1 root root 1039 Jul 14 15:03 web21.conf -rw-r--r-- 1 root root 1006 Jul 5 11:22 web22.conf -rw-r--r-- 1 root root 1024 Jul 5 15:43 web23.conf -rw-r--r-- 1 root root 1012 Jul 6 20:29 web24.conf -rw-r--r-- 1 root root 1015 Jul 6 20:30 web25.conf -rw-r--r-- 1 root root 1018 Jul 13 10:49 web27.conf -rw-r--r-- 1 root root 997 Jul 6 22:38 web29.conf -rw-r--r-- 1 root root 1030 Jul 5 16:07 web2.conf -rw-r--r-- 1 root root 1042 Aug 7 20:47 web31.conf -rw-r--r-- 1 root root 1024 Jul 20 09:21 web33.conf -rw-r--r-- 1 root root 1036 Jul 21 11:17 web35.conf -rw-r--r-- 1 root root 961 Aug 1 20:25 web37.conf -rw-r--r-- 1 root root 1010 Jul 8 20:34 web3.conf -rw-r--r-- 1 root root 1014 Jul 6 13:28 web4.conf -rw-r--r-- 1 root root 1015 Jul 5 18:45 web5.conf -rw-r--r-- 1 root root 1022 Aug 7 21:01 web6.conf -rw-r--r-- 1 root root 1014 Aug 2 10:53 web7.conf -rw-r--r-- 1 root root 1014 Jul 6 13:29 web8.conf -rw-r--r-- 1 root root 1008 Jul 5 18:45 web9.conf -rw-r--r-- 1 root root 19683 Jun 27 16:20 www.conf root@server2:~#
Please compare the records of the website in the web_domain table on both servers in the dbispconfig database, are they identical?
Yes, it was identical. Is this not because under Additional PHP Versions I can't specify versions on server2? See screenshot below: When I click Add new PHP version, there's no option to add under server2. Only server1 shows in the dropdown list:
@till I tested the configuration on my local computer running two virtual machines with master-master replication and it seems that the problem is the same. I setup the website under web domain to use php8.1. On server1, the web config was saved under /etc/php/8.1/fpm/pool.d/ while on server2, the web config was saved under /etc/php/7.4/fpm/pool.d/. So I think there's really some problem with ISPConfig. It doesn't know how to save the config on the right folder in server2 or on slave server. I hope this will be fix.
That#s because everything from server1 gets mirrored to server 2. I'll add an issue report as this doe snot seem to happen for PHP versions properly at the moment. https://git.ispconfig.org/ispconfig/ispconfig3/-/issues/6376
We work on ISPConfig in our free time as volunteers, so fixing such bugs can sometimes take quite some time. Some users look into the bug themself and propose a fix, or they hire a dev to resolve it.
I just found the bug. ISPConfig failed to insert the data under Code: server_php table on Code: dbispconfig2 when you add Additional PHP Versions.
I've approved your account now. We had to switch to manual account approval as there were so many spammers / seo's signing up.