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

  1. Check the vhosts: ls -al /var/www/vhosts/system/example.com
  2. See if httpd has the website in its cache: httpd -D DUMP_VHOSTS | grep example.com
  3. See if the site still exists on pleskdb: plesk db "select * from domains where name like '%example%'"

Remove the ghost file from php-fpm:

  1. 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
  2. Restart php-fpm from Plesk GUI under System Services or via cli using systemctl.

Done. This issue should be solved now. Refrence

0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9