Plesk

Various actions fail in Plesk: The prefix ‘/var/www/vhosts/system/example.com’ does not exist or is not a directory, FPM initialization failed

Symptoms

Cause

The domain was removed incompletely.

Resolution

Click on a section to expand

To find and remove redundant files for the affected domain:

  1. Connect to the server via SSH

    Note: in case of the migration, connect to the destination server.

  2. Check if the domain web content files and configuration file exist on the server, if the domain is registered in Plesk database:

    # ls -al /var/www/vhosts/system/example.com

    # httpd -D DUMP_VHOSTS | grep example.com

    # plesk db "select * from domains where name like '%example%'"

  3. If domain web content files do not exist on the server and the domain is not registered in Plesk database, remove its configuration file and restart the affected PHP service:

    # rm /opt/plesk/php/X.X/etc/php-fpm.d/example.com.conf
    # service plesk-phpXX-fpm restart

  4. If the files exist on the server and the domain…

Exit mobile version