Page 1 of 1

Invalid command 'SSLRequireSSL'

Posted: Thu Dec 31, 2020 5:35 pm
by neuronetv
I installed zoneminder-1.34.22-1.el8.x86_64 on centos 8.
httpd was running fine and I was able to get the default apache page at http://<ip-address>
I tried to open zoneminder in a browser with http://<ip-address>/zm but it failed. https://<ip-address>/zm also failed.
so I ran:
# ln -s /etc/zm/www/zoneminder.httpd.conf /etc/httpd/conf.d/zoneminder.conf and restarted httpd but it gave an error. this is the output from systemctl status httpd.service:
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/httpd.service.d
└─php-fpm.conf
Active: failed (Result: exit-code) since Thu 2020-12-31 17:23:49 GMT; 8s ago
Docs: man:httpd.service(8)
Process: 9150 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 9150 (code=exited, status=1/FAILURE)
Status: "Reading configuration..."

Dec 31 17:23:49 centos8.svr systemd[1]: Starting The Apache HTTP Server...
Dec 31 17:23:49 centos8.svr httpd[9150]: AH00526: Syntax error on line 15 of /etc/httpd/conf.d/zoneminder.conf:
Dec 31 17:23:49 centos8.svr httpd[9150]: Invalid command 'SSLRequireSSL', perhaps misspelled or defined by a module not included in the server configuration
Dec 31 17:23:49 centos8.svr systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
Dec 31 17:23:49 centos8.svr systemd[1]: httpd.service: Failed with result 'exit-code'.
Dec 31 17:23:49 centos8.svr systemd[1]: Failed to start The Apache HTTP Server.
how do I solve this? I did do a trawl of google but couldn't find anything. thanks for any help.

Re: Invalid command 'SSLRequireSSL'

Posted: Thu Dec 31, 2020 8:56 pm
by Magic919
It says you have SSL problems. Look at line 15 of the config.

Check for the module

Code: Select all

apachectl -M | grep ssl

Re: Invalid command 'SSLRequireSSL'

Posted: Fri Jan 01, 2021 1:16 pm
by knight-of-ni
You will get that error if you fail to complete step 6 of the README:
https://github.com/ZoneMinder/zoneminde ... .httpd#L60

Re: Invalid command 'SSLRequireSSL'

Posted: Fri Jan 01, 2021 6:49 pm
by neuronetv
thankyou very much, both these replies helped. the solution was:
dnf install mod_ssl