Applicable to:
- Plesk Onyx for Linux
Symptoms
-
Nginx is currently disabled on Plesk server:
# /usr/local/psa/admin/sbin/nginxmng -s
Disabled -
Running Plesk repair web utility fails with following error message:
# plesk repair web
Checking the configuration of Apache modules ........................ [OK]
Repairing web server configuration
File not found: example.com.conf ...................... [ERROR] -
Errors such as the following appear at
/var/log/plesk/panel.log
CONFIG_TEXT: stderr:
httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 7 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Could not open configuration file /etc/httpd/conf/plesk.conf.d/vhosts/example.com.conf: No such file or directory -
Domain vhost configuration file exists on the server:
# ls -l /etc/httpd/conf/plesk.conf.d/vhosts/ | grep example.com
lrwxrwxrwx 1 root root 55 Sep 13 19:38 example.com.conf -> /var/www/vhosts/system/example.com/conf/httpd.conf# ls -l /var/www/vhosts/system/example.com/conf/ | grep httpd.conf
-rw------- 1 root apache 7646 Sep 13 20:13 httpd.conf
Cause
Product issue:
-
#PPPM-9335 "File not found: example.com.conf when executing plesk repair web with disabled nginx"
Fixed in:- Plesk Obsidian 25 September 2018 (fixed as PPP-38624)
Resolution
Workaround
If update is not possible for some reason you may try the following
Consider upgrading the server up to Plesk Obsidian.
As a temporary workaround apply the patch:
-
Connect to the server via SSH.
-
Create a backup of the existing file:
# cp -a /usr/local/psa/admin/plib/Repair/Web.php{,.bak}
-
Download the patch:
# wget https://support.plesk.com/hc/en-us/article_attachments/360043072754/Web.tar.gz
-
Unpack the archive:
# tar xvzf Web.tar.gz
-
Replace the original file with the patch:
# cp Web.php /usr/local/psa/admin/plib/Repair/Web.php
Comments
4 comments
Are there any resolutions for this error?
The error does not allow changing the PHP version of the domains. Is there any option to do it manually?
@Adrià Cutillas,
Hi! Seems like you've hit the known bug described in PHP support cannot be enabled for one domain in Plesk when nginx service is stopped
The workaround is also provided there.
Any other solutions for this problem in Plesk Obsidian?
Plesk can't find the .con. file
Roberto Ghiazza please check other articles as well because the error can happen due to other causes: https://support.plesk.com/hc/en-us/search?utf8=%E2%9C%93&query=File+not+found%3A+example.com.conf
You can also open a support request with us: https://support.plesk.com/hc/en-us/articles/213608509-How-to-submit-a-request-to-Plesk-support-
Please sign in to leave a comment.