Plesk
503 on Websites
When a site throws 50X errors, most times its the backend application that is causing issues.
PHP Realted:
Plesk incomplete domain removal: This happens when a domain was removed improperly on plesk. Syntomps are
- 503 Error On websites
- Stopped php-fpm service
- Unable to restart php-fpm
- Following error in journalctl:
ERROR: [pool example.com] the prefix '/var/www/vhosts/system/example.com' does not exist or is not a directory
To solve this issue, we can take the following steps:
Confirm if the website still exists on plesk
- Check the vhosts:
ls -al /var/www/vhosts/system/example.com
- See if httpd has the website in its cache:
httpd -D DUMP_VHOSTS | grep example.com
- See if the site still exists on pleskdb:
plesk db "select * from domains where name like '%example%'"
Note: All these commands should return a negative or incomplete value else do needful removal from whatever throws a positive output
Remove the ghost file from php-fpm:
- Change the X.X to the php version and set the right conf file in the path to remove the config:
rm /opt/plesk/php/X.X/etc/php-fpm.d/example.com.conf
- Restart php-fpm from Plesk GUI under System Services or via cli using systemctl.
Done. This issue should be solved now. Refrence