Invalid command 'SSLRequireSSL'

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
neuronetv
Posts: 86
Joined: Mon Dec 17, 2012 10:01 pm

Invalid command 'SSLRequireSSL'

Post 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.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Invalid command 'SSLRequireSSL'

Post 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
-
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Invalid command 'SSLRequireSSL'

Post 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
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
neuronetv
Posts: 86
Joined: Mon Dec 17, 2012 10:01 pm

Re: Invalid command 'SSLRequireSSL'

Post by neuronetv »

thankyou very much, both these replies helped. the solution was:
dnf install mod_ssl
Post Reply