• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Template_Exception after Upgrade to Debian 9

StephanN

New Pleskian
Hi,

after upgrade Debian 8 to Debian 9 and after I did everything like described here How to perform dist-upgrade procedure on server with Plesk?
Apache not works correct.
The error message in Plesk under Websites & Domains:
"Aufgrund folgender Fehler in den Konfigurations-Templates konnten keine neuen Konfigurationsdateien für den Apache Webserver erstellt werden: AH00526: Syntax error on line 25 of /etc/apache2/plesk.conf.d/server.conf: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration . Ausführliche Fehlerbeschreibungen wurden Ihnen per E-Mail zugesendet. Bitte lösen Sie das Problem und klicken Sie hier, um die beschädigten Konfigurationsdateien erneut zu erstellen, oder hier, um alle Konfigurationsdateien zu erstellen. Einzelheiten im Configuration Troubleshooter ansehen
"
plesk repair web issues this error:
Repairing server-wide configuration parameters for web servers .. [2019-02-1 1 21:44:18.692] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/httpdmn g' '--reconfigure-server'] with exit code [1]
[FAILED]
- httpdmng failed: [2019-02-11 21:44:17.612] ERR [util_exec]
proc_close() failed ['/opt/psa/admin/bin/apache-config' '-t']
with exit code [1]
[2019-02-11 21:44:18.382] ERR [panel] Apache config
(15499178570.04015500) generation failed: Template_Exception:
AH00526: Syntax error on line 25 of
/etc/apache2/plesk.conf.d/server.conf:
Invalid command 'Order', perhaps misspelled or defined by a
module not included in the server configuration

file:
/opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
AH00526: Syntax error on line 25 of
/etc/apache2/plesk.conf.d/server.conf:
Invalid command 'Order', perhaps misspelled or defined by a
module not included in the server configuration


I guess, the file /opt/psa/admin/conf/templates/default/server.php has errors.
For example in line 35 ff this code mabye is buggy:

35 <Directory "<?php echo $VAR->server->webserver->vhostsDir ?>">
36 AllowOverride "<?php echo $VAR->server->webserver->apache->allowOverrideDefault ?>"
37 Options SymLinksIfOwnerMatch
38 <?php if ($VAR->server->webserver->apache->useRequireOption): ?>
39 Require all granted
40 <?php endif; ?>
41 Order allow,deny
42 Allow from all

Why is there no else?
Because there is no else, line 41 and 42 will be written in server.conf.
But the "Order" command is not allowed in apache >= 2.4.

BR
Stephan
 
Just a quick dirty fix.
This is the error:
Template_Exception: AH00526: Syntax error on line 25 of /etc/apache2/plesk.conf.d/server.conf: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 75 code: 0 AH00526: Syntax error on line 25 of /etc/apache2/plesk.conf.d/server.conf: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
Here is the solution:

1. change line 39 <?php endif; ?> in /opt/psa/admin/conf/templates/default/server.php to
<?php else: ?>
2. paste after line 42
<?php endif; ?>
 
Can you please help me too? I have a quite similar problem:

Error: Can not reconfigure web server configurations: Unable to execute httpdmng: [2020-09-02 19:49:09.767] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/apache-config' '-t'] with exit code [1]
[2020-09-02 19:49:10.312] ERR [panel] Apache config (15990689480.41716500) generation failed: Template_Exception: AH00526: Syntax error on line 2 of /var/www/vhosts/system/aeecloud.szervizkod.hu/conf/vhost.conf:
Invalid command 'add_header', perhaps misspelled or defined by a module not included in the server configuration

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
AH00526: Syntax error on line 2 of /var/www/vhosts/system/aeecloud.szervizkod.hu/conf/vhost.conf:
Invalid command 'add_header', perhaps misspelled or defined by a module not included in the server configuration
 
Back
Top