Bobcares

Apache config file cannot generate in Plesk

by | Dec 25, 2021

Wondering why Apache config file cannot generate in Plesk?We can help you.

At Bobcares, we offer solutions for every query, big and small, as a part of our Server Management Service.

Let’s take a look at how our Support Team help a customer  deal with this plesk error.

How to resolve Apache config file cannot generate in Plesk?

Plesk is a commercial web hosting and server data center automation software with a control panel developed for Linux and Windows-based retail hosting service providers.

It automates various tasks and processes on a single or multiple servers.

Typically, Apache configuration generation fails with the following or similar error:

New configuration files for the Apache web server were not created due to the errors in configuration templates:
Template processing failed: file = /opt/psa/admin/conf/templates/default/domainVhost.php, error = Template_Exception: [Template_Variable_Domain_PhysicalHosting] Wrong variable to subsitute: maintenanceMode file: /opt/psa/admin/plib/Template/Processor.php line: 27 code: 0 Previous error: Template_Exception: [Template_Variable_Domain_PhysicalHosting] Wrong variable to subsitute: maintenanceMode file: /opt/psa/admin/plib/Template/Processor.php line: 27 code: 0 Previous error: Template_Exception: [Template_Variable_Domain_PhysicalHosting] Wrong variable to subsitute: maintenanceMode file: /opt/psa/admin/plib/Template/Variable/Abstract.php line: 67 code: 0.

Generally, In plesk Custom Apache virtual host templates are used

Usually, custom Apache virtual host templates contain a syntax error or reference to a nonexistent variable.

Today, let us see the steps followed by our Support techs to resolve it:

1. Firstly, connect to the server using SSH.

2. Then, move the custom templates folder to another location:

mv -f /usr/local/psa/admin/conf/templates/custom /root/custom_templates/

3. Then, rebuild web server configuration files:

For RHEL-based Linux distributions (CentOS, RedHat, CloudLinux):

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

Then, for Debian-based Linux distributions (Ubuntu, Debian):

/opt/psa/admin/sbin/httpdmng –reconfigure-all

Note: Check Plesk Advanced Administration Guide to see the full list of allowed variables for custom virtual host templates.

[Need a solution to another query? We are just a click away.]

 

Conclusion

Today, we saw steps followed by our Support Engineers to resolve Apache config file error in Plesk.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.