• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Problem with Apache / Plesk

NielsD

New Pleskian
That is my errorcode:

New configuration files for the Apache web server were not created due to the errors in configuration templates: Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainVhost.php, error = Template_Exception: [Template_Variable_Domain_PhysicalHosting] Wrong variable to subsitute: maintenanceMode file: /usr/local/psa/admin/plib/Template/Processor.php line: 27 code: 0 Previous error: Template_Exception: [Template_Variable_Domain_PhysicalHosting] Wrong variable to subsitute: maintenanceMode file: /usr/local/psa/admin/plib/Template/Processor.php line: 27 code: 0 Previous error: Template_Exception: [Template_Variable_Domain_PhysicalHosting] Wrong variable to subsitute: maintenanceMode file: /usr/local/psa/admin/plib/Template/Variable/Abstract.php line: 67 code: 0. The error message containing the detailed error descriptions was sent to you by e-mail. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files.

But I have no idea how to fix it. Please assist me.
 
Last edited:
Run:
Code:
 /usr/local/psa/admin/sbin/httpdmng --reconfigure-all

That should give you a more detailed error and possibly with the domains causing problems ..
 
I tried that and it's going through without any further problem.

For me it looks like a problem caused by the new place, where the conf files are stored, since the last update to 11.5 I made yesterday. It seems, that "something" is still trying to find the php.ini i.e and the other conf files at the old location. No idea why.
 
Hands-on investigation could be required ...Create a ticket seeking support from the Plesk team, it's FREE if you have unlimited domains licence ..otherwise, see my signature!
 
Hi,

i have the same Error since as i upgade to 11.5, and a unlimited Licence 11x, but i dont know my Licence Key, i dont have a Support Code.... where i find the Licence Key on my Server ?


Greetings

Moondust


*** ok, i found : grep 'key-number' /etc/sw/keys/keys/key*

Now i need to open a Ticket :)
 
Last edited:
For the record we have resolved Niels's issue and for the rest of the community, the cause and problem was:

Plesk was not properly upgraded and as such the file
Code:
/usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php
was corrupted. We therefore had it replaced with one of our working versions and that resolved it all.
 
For the record we have resolved Niels's issue and for the rest of the community, the cause and problem was:

Plesk was not properly upgraded and as such the file
Code:
/usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php
was corrupted. We therefore had it replaced with one of our working versions and that resolved it all.

It was done quickly and smoothly. Thx for that.
 
errors in configuration templates:

I had a similar error and upgraded from 11.09 to 11.5. and at first it seemed it did not fix the problem,

I got the error "Unable to generate the web server configuration file on the host <zole-hosting.net> because of the following errors:

Template_Exception: nginx: [emerg] listen() to 000.000.000.000:80, backlog 511 failed (98: Address already in use)
nginx: configuration file /etc/nginx/nginx.conf test failed

file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 68
code: 0

Please resolve the errors in web server configuration templates and generate the file again."

But an hour later I am no longer getting the error messages.

I had to stop then restart nginx after the upgrade -- all my clients sites went to a 404!





For the record we have resolved Niels's issue and for the rest of the community, the cause and problem was:

Plesk was not properly upgraded and as such the file
Code:
/usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php
was corrupted. We therefore had it replaced with one of our working versions and that resolved it all.
 
Last edited:
Back
Top