New configuration files were not created: Could not open configuration file : No such file or directory

Created:

2016-11-16 12:51:11 UTC

Modified:

2017-08-16 16:25:02 UTC

0

Was this article helpful?


Have more questions?

Submit a request

New configuration files were not created: Could not open configuration file : No such file or directory

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux
  • Plesk 11.x for Linux
  • Plesk 12.0 for Linux

Symptoms

New configuration files for the Apache web server are not created due to the errors in configuration templates:

Could not open configuration file `/etc/apache2/plesk.conf.d/vhosts/example.com.conf`: No such file or directory

The file exists, but it's link is missing:

# ls -l /etc/apache2/plesk.conf.d/vhosts/example.com.conf
lrwxrwxrwx 1 root root 55 Aug 7 13:36 /etc/apache2/plesk.conf.d/vhosts/example.com -> /var/www/vhosts/system/example.com/conf/httpd.conf

# ls -l /var/www/vhosts/system/example.com/conf/httpd.conf
ls: cannot access /var/www/vhosts/system/example.com/conf/httpd.conf: No such file or directory

The same error appears when removing domains that were migrated from another Plesk server.

The issue is intermittent.

Cause

Domain was not deleted completely. This is Plesk bug with ID #PPP-28010 that is fixed in Plesk Onyx 17.5.

Resolution

Upgrade to the latest Plesk version or apply the following workaround:

  1. Connect to the server using SSH .
  2. Remove broken link

    # rm /etc/apache2/plesk.conf.d/vhosts/example.com.conf

  3. Reconfigure the server

    # /usr/local/psa/admin/sbin/httpdmng --reconfigure-all

Have more questions? Submit a request
Please sign in to leave a comment.