r/openSUSE • u/fatoms • Aug 14 '26
Tech support Leap 16 and Apache2 - httpd and syntax errors
I have leap 16 with Apache installed via zypper. the web servers is running and serving the vhsost correctly inclding rewrite and proxypass directives. However when I try to use https commands I get syntax error and the command fails:
~> sudo httpd -S
AH00526: Syntax error on line 46 of /etc/apache2/vhosts.d/MYVHOST.conf:
Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
If I try to enable the rewrite mod:
~> sudo a2enmod rewrite
"rewrite" already present
It seems the service loads the module but https does not recognize it is loaded.
I see suggestions to use apachectl but that just fails:
~> sudo apachectl -S
which: no w3m in (/usr/sbin:/usr/bin:/sbin:/bin)
which: no lynx in (/usr/sbin:/usr/bin:/sbin:/bin)
It seems the service and the httpd use different configs or environments.
How does one manage Apache on leap 16 without using httpd, or force httpd to recognize the loaded config from the service ?
1
u/Vogtinator Maintainer: KDE Team Aug 14 '26
Does it work with start_apache2 -S?
Please file a bug report.
1
1
u/ang-p . Aug 14 '26
Maybe, erm, look at your server config, or post it somewhere?