- Server operating system version
- CentOS Linux 7.9.2009 (Core)
- Plesk version and microupdate number
- Plesk Obsidian 18.0.53 Update #2
Hi all,
I have some PHP software that updates via a bash script.
As part of that script I want to update the PHP handler for a given domain, I'm attempting to do that like so:
That command runs ok and I can see in the PHP settings for mydomain.com that the PHP version is now 8.2.8, but the site now just displays a "503 Service Unavailable" error, and in the logs I see the following:
After Googling some more I tried running the following command:
...this fixes it but this takes a very long time as it's updating all domains on the system.
Is there a secondary command I should be calling after changing the handler?
Changing PHP from 7.4 to 8.2 and back again from the Plesk GUI works perfectly.
Thanks!
I have some PHP software that updates via a bash script.
As part of that script I want to update the PHP handler for a given domain, I'm attempting to do that like so:
Bash:
plesk bin site -u "mydomain.com" -php_handler_id plesk-php82-fpm
That command runs ok and I can see in the PHP settings for mydomain.com that the PHP version is now 8.2.8, but the site now just displays a "503 Service Unavailable" error, and in the logs I see the following:
2023-07-13 15:02:14 | Error | 111.222.333.444 | 503 | GET /cp/config/?mode=update&create_backup=false HTTP/1.0 |
| 697 | Apache SSL/TLS access | |
2023-07-13 15:02:14 | Error | (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/www/vhosts/system/mydomain.com/php-fpm.sock (*) failed | Apache error | |||||
2023-07-13 15:02:14 | Error | 111.222.333.444 | AH01079: failed to make connection to backend: httpd-UDS, referer: https://mydomain.com/cp/config/ | Apache error |
After Googling some more I tried running the following command:
Bash:
plesk bin php_settings -u
...this fixes it but this takes a very long time as it's updating all domains on the system.
Is there a secondary command I should be calling after changing the handler?
Changing PHP from 7.4 to 8.2 and back again from the Plesk GUI works perfectly.
Thanks!