Article ID: 111605, created on May 23, 2012, last review on Jun 20, 2016

  • Applies to:
  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 10.4 for Linux/Unix
  • Plesk 10.3 for Linux/Unix

问题

订阅中会显示以下错误:

Error: New configuration files for the Apache web server were not created due to the errors in configuration templates: Destination directory '/etc/nginx/plesk.conf.d/vhosts' not exist. 

以下错误可能会在 Plesk 首页上显示:

New files of configuration for Apache web server were not built due to errors in configuration templates. The detailed error message was e-mailed to you, so please check the e-mail, fix the errors, and click here to retry generating configuration

psa 数据库中的配置表格中有很多项处于“错误”状态:

mysql> select id,objectId,status,description from Configurations where status="error";
+------+----------+--------+-------------------------------------------------------------------+
| id   | objectId | status | description                                                       |
+------+----------+--------+-------------------------------------------------------------------+
|    9 |        1 | error  | Destination directory '/etc/nginx/plesk.conf.d/vhosts' not exist
|
|   13 |        2 | error  | Destination directory '/etc/nginx/plesk.conf.d/vhosts' not exist
|
|   17 |        3 | error  | Destination directory '/etc/nginx/plesk.conf.d/vhosts' not exist
|
|   25 |        5 | error  | Destination directory '/etc/nginx/plesk.conf.d/vhosts' not exist

原因

域名的配置已损坏

解决方案

登录 Plesk 数据库 检查哪个域名的配置已损坏:

mysql> select id,objectId,status,description from Configurations where status="error";

根据输出中域名的数量,请相应应用以下方案:

I. 修复少量域名的方案

一个一个地重新配置域名

    # /usr/local/psa/admin/sbin/httpdmng  --reconfigure-domain example.com

II. 批量修复所有域名的方案

  1. 从 'psa' 数据库的'配置' 表格中移除所有项:

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa -e"delete from Configurations"
    
  2. 使用 'httpdmng' 工具重新配置 Apache:

    ~# /usr/local/psa/admin/bin/httpdmng --reconfigure-all
    
  3. 如果在 扩展 菜单中有安装的 Webserver Configurations Troubleshooter 扩展,请移除该扩展,因为 Plesk 12.5 不再支持该扩展

56797cefb1efc9130f7c48a7d1db0f0c dd0611b6086474193d9bf78e2b293040 a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 f4ce8084cb23619ef5fe9428ecc388ea 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 01bc4c8cf5b7f01f815a7ada004154a2 0a53c5a9ca65a74d37ef5c5eaeb55d7f aea4cd7bfd353ad7a1341a257ad4724a e8756e9388aeca36710ac39e739b2b37 742559b1631652fadd74764ae8be475e

Email subscription for changes to this article