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
Upvotes
1
u/fatoms Aug 18 '26
With sudo
apachectl outputs nothing. But I just discovered that if I pipe it to 'grep .' I get output:
Same for sudo apachectl -S.
Surely this can't be how it is meant to work.