Syntax error in httpd.conf after migration from old server.

hnf

New member
Joined
Dec 27, 2022
Messages
1
Hi,
After migration from DA on CenOS 5 server to DA on Debian 11 apache falls with syntax error in httpd config of two domains:

AH00526: Syntax error on line 21 of /usr/local/directadmin/data/users/user/httpd.conf:
Invalid command 'SecFilterEngine', perhaps misspelled or defined by a module not included in the server configuration

and the same about:
php_admin_value suhosin.executor.func.blacklist " "
php_admin_flag suhosin.executor.func.blacklist " "
Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration

commenting erroneous lines does not help because somehow it goes back.

Thanks a lot in advance for any advise.
 
Invalid command 'SecFilterEngine',
This is not something which is normally present in a default httpd.conf, unless it comes from that ancient version, Centos 5 is very very old.

Do you have any customizations, maybe in the /usr/local/directadmin/custombuild/custom directory or on of it's subdirectory's?

As for the other problem, maybe change some virtual host setting for the domain? This would explain that the setting would come back.
 
Back
Top