Error AH00526, what to do?

My domain is: perryser.com

I ran this command: certbot --apache

It produced this output:

Obtaining a new certificate
Performing the following challenges:
http-01 challenge for perryser.com
http-01 challenge for www.perryser.com
Error while running apachectl configtest.

AH00526: Syntax error on line 1 of /etc/httpd/conf/le_http_01_challenge_pre.conf:
Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration

Cleaning up challenges
Error while running apachectl configtest.

AH00526: Syntax error on line 1 of /etc/httpd/conf/le_http_01_challenge_pre.conf:
Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration

My web server is (include version): apache-2.4.33-3

The operating system my web server runs on is (include version): Arch Linux 4.17.2-1

I can login to a root shell on my machine (yes or no, or I don’t know): yes

What can I do to deal with that “AH00526” error?

" SSLEngine on
SSLCertificateFile “/etc/httpd/conf/server.crt”
SSLCertificateKeyFile “/etc/httpd/conf/server.key” " in the config file of a virtual host also gives an error:

Error while running apachectl configtest.

AH00526: Syntax error on line 19 of /etc/httpd/conf/vhosts/perryser.com:
Invalid command ‘SSLEngine’, perhaps misspelled or defined by a module not included in the server configuration

Thanks for reading

Hi @perry_mok,

Take a look to this page https://wiki.archlinux.org/index.php/Apache_HTTP_Server#TLS.2FSSL because you need to activate 3 modules (ssl_module, socache_shmcb_module and rewrite_module) and include one more conf file (httpd-ssl.conf)

Cheers,
sahsanu

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.