[Apache] Invalid command 'SSLCertificateFile', perhaps misspelled or defined by a module not included in the server configuration

Tadashi Shigeoka ·  Wed, June 20, 2012

When I configured SSL settings in Apache and ran httpd configtest, I got an error.

Error Content

Invalid command 'SSLCertificateFile', perhaps misspelled or defined by a module not included in the server configuration

Apache wasn’t compatible with mod_ssl, so I resolved the error by adding mod_ssl.

The method for adding mod_ssl differs depending on whether you installed from source or using yum.

When Installed from Source

・Reference: apxsでapacheにモジュールを追加する

When Installed with yum

Install mod_ssl

# yum -y install mod_ssl

Install openssl

# yum -y install openssl

That’s all.


Reference Information

apache+mod_sslでSSL — server-memo.net

かぴぶろぐ

That’s all from the Gemba.