Article ID: 124643, created on Feb 27, 2015, last review on Feb 27, 2015

  • Applies to:
  • Plesk 11.5 for Linux


Domain reconfiguration fails with error:

# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
Execution failed.
Command: httpdmng
Arguments: Array
    [0] => --reconfigure-server
    [1] => -no-restart

Details: PHP Fatal error:  Class 'Template_Writer_Apache' not found in /opt/psa/admin/plib/Template/Processor.php(19) : eval()'d code on line 4
Releasing semaphore 4 in request cleanup

The following error can be found in the /usr/local/psa/admin/logs/panel.log:

Fatal error: Class 'Template_Writer_Apache' not found in /opt/psa/admin/conf/templates/custom/server.php


Custom templates were corrupted.

By the design Plesk Panel uses configuration templates from /opt/psa/admin/conf/templates/custom/ if this directory exists, otherwise the /opt/psa/admin/conf/templates/default/ is used.


To fix the issue the move /opt/psa/admin/conf/templates/custom/ and re-run the httpdmng utility:

# mv /opt/psa/admin/conf/templates/custom/ /opt/psa/admin/conf/templates/custom_mvd

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

If you would like to introduce your changes to the configuration, copy the templates you need to the /usr/local/psa/admin/conf/templates/custom/ directory and modify them, preserving the directory structure, and then modify these copies. Please refer to the documentation to get the additional information.

Search Words

Fatal error: Class 'Template_Writer_Apache' not found

nginx 404 Error

nginx default site

01bc4c8cf5b7f01f815a7ada004154a2 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f

Email subscription for changes to this article
Save as PDF