• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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