Looks like some kind of PHP problem.
https://courses.goperl.com → 503 Service Unavailable
Restart httpd did not resolve.
Disable / Re-enable FPM did not resolve either.
[root@ns40 ~]# php -v
PHP Warning: PHP Startup: Unable to load dynamic library 'pecl-imagick.so' (tried: /usr/lib64/php/modules/pecl-imagick.so (/usr/lib64/php/modules/pecl-imagick.so: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/pecl-imagick.so.so (/usr/lib64/php/modules/pecl-imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 7.4.19 (cli) (built: May 4 2021 11:06:37) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.19, Copyright (c), by Zend Technologies
with Xdebug v2.9.5, Copyright (c) 2002-2020, by Derick Rethans
[root@ns40 ~]#
SYSTEM INFORMATION
OS type and version
Rocky Linux 8
Webmin version
REQUIRED
Virtualmin version
REQUIRED
Related packages
SUGGESTED
Update 1:
Restarting php-fpm did not resolve either.
[root@ns40 ~]# systemctl restart php-fpm
[root@ns40 ~]#
Update 2 :
php-fpm status:
[root@ns40 ~]# systemctl status php-fpm
● php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor preset: disabled)
Active: active (running) since Wed 2022-03-02 19:43:52 CST; 1min 17s ago
Process: 4055193 ExecReload=/bin/kill -USR2 $MAINPID (code=exited, status=0/SUCCESS)
Main PID: 4086192 (php-fpm)
Status: "Processes active: 0, idle: 52, Requests: 0, slow: 0, Traffic: 0req/sec"
Tasks: 53 (limit: 74267)
Memory: 81.8M
CGroup: /system.slice/php-fpm.service
├─4086192 php-fpm: master process (/etc/php-fpm.conf)
------REDACTED--------
├─4086240 php-fpm: pool www
├─4086241 php-fpm: pool www
├─4086242 php-fpm: pool www
├─4086243 php-fpm: pool www
└─4086244 php-fpm: pool www
Mar 02 19:43:52 ns40.byzland.com php-fpm[4086192]: [02-Mar-2022 19:43:52] WARNING: Found multiple addresses for localhost, 127.0.0.1 ignored
Mar 02 19:43:52 ns40.byzland.com php-fpm[4086192]: [02-Mar-2022 19:43:52] WARNING: Found multiple addresses for localhost, 127.0.0.1 ignored
Mar 02 19:43:52 ns40.byzland.com php-fpm[4086192]: [02-Mar-2022 19:43:52] WARNING: Found multiple addresses for localhost, 127.0.0.1 ignored
Mar 02 19:43:52 ns40.byzland.com php-fpm[4086192]: [02-Mar-2022 19:43:52] WARNING: Found multiple addresses for localhost, 127.0.0.1 ignored
Mar 02 19:43:52 ns40.byzland.com php-fpm[4086192]: [02-Mar-2022 19:43:52] WARNING: Found multiple addresses for localhost, 127.0.0.1 ignored
Mar 02 19:43:52 ns40.byzland.com php-fpm[4086192]: [02-Mar-2022 19:43:52] WARNING: Found multiple addresses for localhost, 127.0.0.1 ignored
Mar 02 19:43:52 ns40.byzland.com php-fpm[4086192]: [02-Mar-2022 19:43:52] WARNING: Found multiple addresses for localhost, 127.0.0.1 ignored
Mar 02 19:43:52 ns40.byzland.com php-fpm[4086192]: [02-Mar-2022 19:43:52] WARNING: Found multiple addresses for localhost, 127.0.0.1 ignored
Mar 02 19:43:52 ns40.byzland.com php-fpm[4086192]: [02-Mar-2022 19:43:52] WARNING: Found multiple addresses for localhost, 127.0.0.1 ignored
Mar 02 19:43:52 ns40.byzland.com systemd[1]: Started The PHP FastCGI Process Manager.
[root@ns40 ~]#
Update 3:
check config shows this error:
Virtualmin could not work out the default IPv6 address for virtual servers on your system. You will need to update either the Network interface for virtual addresses or Default virtual server IP address fields on the module configuration page.
That is because I completely disabled IP6 on the modem. But, not sure if that is causing the PHP problem!
Update 4:
Reboot fixed it!
But how could I have resolved it without rebooting?
Cannot afford to reboot a production server; Though this one is particular is in transition-to-production mode!
Update 5:
Well, that was short lived.
Error slightly changed …
Unable to upgrade Moodle (PHP) on courses.goperl.com . Additionally, I am getting that SSL error…
Upgrading Moodle to version 3.11.5 ..
.. failed dependencies : PHP version 7.2 or later is required, but this virtual server is using version 7.3
Machine / virtual server has PHP FPM 7.5 installed/enabled.
This Update 5: is it an error generated by Moodle or by the Virtualmin update script process?
Virtualmin update scripts
Change to version 7.4 and run the update script again. If successful and you still need 7.5 then change again from 7.4 to 7.5
OS is Rocky Linux and there is no other PHP (FPM) version than 7.4.19.
Yes, I have already tried disabling/re-enabling multiple times.
Joe
March 3, 2022, 5:07pm
11
That seems like a bug. I don’t understand where the 7.3 PHP version is coming from.
I’ll ask @Jamie or @Ilia to have a look, as I don’t understand what the version comparison in the moodle script installer is supposed to be doing (I’m looking at the code and what you’re seeing doesn’t make sense to me!).
Jamie
March 4, 2022, 5:36am
12
If you SSH in and run virtualmin check-config
, what PHP versions does it report?
The following PHP versions are available : 7.4.19 (/bin/php-cgi)
The following PHP-FPM versions are available on this system : 7.4.19 (php-fpm)
Jamie
March 5, 2022, 6:41am
14
Surprising that it would report an issue with PHP 7.3 then.
Did you perhaps recently upgrade the PHP version?
system
Closed
May 4, 2022, 6:41am
15
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.