Article ID: 112815, created on Apr 1, 2013, last review on May 4, 2014

  • 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

问题

问题体现不同:

1. 以下警告由 Parallels Plesk Panel 升级前检查器显示:

WARNING: Reference between several subscriptions and APS applications has been broken.


2. 在对负责 Apache web  服务器配置文件重新创建的  Parallels Plesk Panel 对象进行更改时会显示以下错误:

错误:因配置模板中的错误而导致未创建 Apache web 服务器的新配置文件。详细的错误信息已通过邮件发送给您,因此请查看邮件,修复此错误,并点击此处重试生成配置(Error: 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.)

解决方案

该方案可修复损坏的数据库参考:

1. 列举 Parallels Plesk Panel 数据库中的配置错误:
mysql> select id,objectId,status,description from Configurations where status="error";
+------+-------------+--------+-------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| id   | objectId    | status | description | +------+-------------+--------+-------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 3539 | 340         | error  | Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainVhost.php, error = SQLSTATE[HY093]: Invalid parameter number: no parameters were bound | +------+-------------+--------+-------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.01 sec)

2. 列举 APS 应用程序的损坏的上下文:
mysql> select * from apsContexts where (pleskType='hosting' OR pleskType='subdomain') AND subscriptionId=0;
+----+-----------+---------+-------+----------------+
| id | pleskType | pleskId | ssl   | subscriptionId |
+----+-----------+---------+-------+----------------+
| 7  | hosting   | 347     | false | 0              |
+----+-----------+---------+-------+----------------+
1 rows in set (0.00 sec)

3. 按 object_id 查找订阅
mysql> select * from Subscriptions where object_id=347;
+----+------------+
| id | object_id  |
+----+------------+
| 89 | 347        |
+----+------------+
1 row in set (0.01 sec)

4. 从 #2 修改 APS 应用程序损坏的上下文:
mysql> update apsContexts set subscriptionId=89 where id=7;
Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0

5. 强制重新创建所有 Apache web 服务器配置文件:
# httpdmng --reconfigure-all

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

Email subscription for changes to this article