Amazon Linux Invalid command SSLEngine

On Amazon Linux, when restarting Apache server, i get error

[root@ip-172-16-20-44 conf.d]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: AH00526: Syntax error on line 5 of /etc/httpd/conf.d/sendy.mayflower.com.my-le-ssl.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration
                                                           [FAILED]
[root@ip-172-16-20-44 conf.d]# 

This is because SSL module was not installed on the server. To fix, run

sudo yum install -y mod24_ssl

See ssl

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *