Invalid Command SSLEngine - Apache (httpd)

Apache httpd Web Server Apache httpd Web Server

I’ve been configuring Apache web server recently, it’s been a VPS installed from scratch that needed SSL certificate added.

My primary webserver of choice is nginx, and so Apache skills are getting rusty.

Invalid command ‘SSLEngine’

When I made the necessary changes in virtual hosts config file, I ran the syntax check and received an error:

[[email protected] conf.d]# httpd -t
AH00526: Syntax error on line 50 of /etc/httpd/conf.d/superdomain.com.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

After double-checking the syntax, I realised my mistake: the SSL module was missing.

In order to fix the error above, we need to install the mod_ssl:

[[email protected] conf.d]# yum install mod_ssl

Once this was completed, I re-run the syntax check for Apache configuration and could see it was now ready for service SSL traffic:

[[email protected] conf.d]# httpd -t
Syntax OK

pS: WOW! I completely forgotten that there’s practically nothing written here on Unix Tutorial blog about either nginx or Apache web severs. Will address that in the nearest future!

See Also




Keep Learning

Follow me on Facebook, Twitter or Telegram:
Recommended
I learn with Educative: Educative I'm also a fan of SetApp for macOS: SetApp for macOS
IT Consultancy
I'm a principal consultant with Tech Stack Solutions. I help with cloud architectrure, AWS deployments and automated management of Unix/Linux infrastructure. Get in touch!
Recent Articles
31 Jan 2023

Homelab: MacBook Pro M2

17 Nov 2022

Video: awk delimiters

25 Oct 2022

macOS Ventura 13.0

Recent Tweets