apache2 Invalid command 'SSLEngine'
Clash Royale CLAN TAG#URR8PPP
up vote
87
down vote
favorite
When I restart httpd, I get the following error. What am I missing?
[root@localhost ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: Syntax error on line 22 of /etc/httpd/conf.d/sites.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration
I have installed mod_ssl using yum install mod_ssl openssh
Package 1:mod_ssl-2.2.15-15.el6.centos.x86_64 already installed and latest version
Package openssh-5.3p1-70.el6_2.2.x86_64 already installed and latest version
My sites.conf looks like this
<VirtualHost *:80>
# ServerName shop.itmanx.com
ServerAdmin webmaster@itmanx.com
DocumentRoot /var/www/html/magento
<Directory /var/www/html>
Options -Indexes
AllowOverride All
</Directory>
ErrorLog logs/shop-error.log
CustomLog logs/shop-access.log
</VirtualHost>
<VirtualHost *:443>
ServerName secure.itmanx.com
ServerAdmin webmaster@itmanx.com
SSLEngine on
SSLCertificateFile /etc/httpd/ssl/secure.itmanx.com/server.crt
SSLCertificateKeyFile /etc/httpd/ssl/secure.itmanx.com/server.key
SSLCertificateChainFile /etc/httpd/ssl/secure.itmanx.com/chain.crt
DocumentRoot /var/www/html/magento
<Directory /var/www/html>
Options -Indexes
AllowOverride All
</Directory>
ErrorLog logs/shop-ssl-error.log
CustomLog logs/shop-ssl-access.log
</VirtualHost>
ssl apache-httpd
add a comment |Â
up vote
87
down vote
favorite
When I restart httpd, I get the following error. What am I missing?
[root@localhost ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: Syntax error on line 22 of /etc/httpd/conf.d/sites.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration
I have installed mod_ssl using yum install mod_ssl openssh
Package 1:mod_ssl-2.2.15-15.el6.centos.x86_64 already installed and latest version
Package openssh-5.3p1-70.el6_2.2.x86_64 already installed and latest version
My sites.conf looks like this
<VirtualHost *:80>
# ServerName shop.itmanx.com
ServerAdmin webmaster@itmanx.com
DocumentRoot /var/www/html/magento
<Directory /var/www/html>
Options -Indexes
AllowOverride All
</Directory>
ErrorLog logs/shop-error.log
CustomLog logs/shop-access.log
</VirtualHost>
<VirtualHost *:443>
ServerName secure.itmanx.com
ServerAdmin webmaster@itmanx.com
SSLEngine on
SSLCertificateFile /etc/httpd/ssl/secure.itmanx.com/server.crt
SSLCertificateKeyFile /etc/httpd/ssl/secure.itmanx.com/server.key
SSLCertificateChainFile /etc/httpd/ssl/secure.itmanx.com/chain.crt
DocumentRoot /var/www/html/magento
<Directory /var/www/html>
Options -Indexes
AllowOverride All
</Directory>
ErrorLog logs/shop-ssl-error.log
CustomLog logs/shop-ssl-access.log
</VirtualHost>
ssl apache-httpd
add a comment |Â
up vote
87
down vote
favorite
up vote
87
down vote
favorite
When I restart httpd, I get the following error. What am I missing?
[root@localhost ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: Syntax error on line 22 of /etc/httpd/conf.d/sites.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration
I have installed mod_ssl using yum install mod_ssl openssh
Package 1:mod_ssl-2.2.15-15.el6.centos.x86_64 already installed and latest version
Package openssh-5.3p1-70.el6_2.2.x86_64 already installed and latest version
My sites.conf looks like this
<VirtualHost *:80>
# ServerName shop.itmanx.com
ServerAdmin webmaster@itmanx.com
DocumentRoot /var/www/html/magento
<Directory /var/www/html>
Options -Indexes
AllowOverride All
</Directory>
ErrorLog logs/shop-error.log
CustomLog logs/shop-access.log
</VirtualHost>
<VirtualHost *:443>
ServerName secure.itmanx.com
ServerAdmin webmaster@itmanx.com
SSLEngine on
SSLCertificateFile /etc/httpd/ssl/secure.itmanx.com/server.crt
SSLCertificateKeyFile /etc/httpd/ssl/secure.itmanx.com/server.key
SSLCertificateChainFile /etc/httpd/ssl/secure.itmanx.com/chain.crt
DocumentRoot /var/www/html/magento
<Directory /var/www/html>
Options -Indexes
AllowOverride All
</Directory>
ErrorLog logs/shop-ssl-error.log
CustomLog logs/shop-ssl-access.log
</VirtualHost>
ssl apache-httpd
When I restart httpd, I get the following error. What am I missing?
[root@localhost ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: Syntax error on line 22 of /etc/httpd/conf.d/sites.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration
I have installed mod_ssl using yum install mod_ssl openssh
Package 1:mod_ssl-2.2.15-15.el6.centos.x86_64 already installed and latest version
Package openssh-5.3p1-70.el6_2.2.x86_64 already installed and latest version
My sites.conf looks like this
<VirtualHost *:80>
# ServerName shop.itmanx.com
ServerAdmin webmaster@itmanx.com
DocumentRoot /var/www/html/magento
<Directory /var/www/html>
Options -Indexes
AllowOverride All
</Directory>
ErrorLog logs/shop-error.log
CustomLog logs/shop-access.log
</VirtualHost>
<VirtualHost *:443>
ServerName secure.itmanx.com
ServerAdmin webmaster@itmanx.com
SSLEngine on
SSLCertificateFile /etc/httpd/ssl/secure.itmanx.com/server.crt
SSLCertificateKeyFile /etc/httpd/ssl/secure.itmanx.com/server.key
SSLCertificateChainFile /etc/httpd/ssl/secure.itmanx.com/chain.crt
DocumentRoot /var/www/html/magento
<Directory /var/www/html>
Options -Indexes
AllowOverride All
</Directory>
ErrorLog logs/shop-ssl-error.log
CustomLog logs/shop-ssl-access.log
</VirtualHost>
ssl apache-httpd
ssl apache-httpd
edited May 13 '16 at 2:44
Jeff Schaller
32.6k849110
32.6k849110
asked Feb 10 '12 at 14:25
Christian
7002713
7002713
add a comment |Â
add a comment |Â
5 Answers
5
active
oldest
votes
up vote
43
down vote
accepted
Probably you do not load the ssl module. You should have a LoadModule directive somewhere in your apache configuration files.
Something like:
LoadModule ssl_module /usr/lib64/apache2-prefork/mod_ssl.so
Usually apache configuration template has (on any distribution) a file called (something like) loadmodule.conf
in which you should find a LoadModule
directive for each module you load into apache at server start.
2
Also, it's necessary to installmod_ssl
. On RHEL and CentOS, this is done withyum install mod_ssl
.
â Benedikt Köppel
Apr 18 at 18:13
add a comment |Â
up vote
105
down vote
On many systems (Ubuntu, Suse, Debian, ...) run the following command to enable Apache's SSL mod:
sudo a2enmod ssl
a2enmod man page
1
This is Debian-specific but the question is not tagged Debian.
â jordanm
Feb 18 '15 at 1:32
1
is a2enmod really Debian specific? Or are you complaining about the use of sudo?
â Stéphane
Feb 18 '15 at 2:08
4
a2enmod
is Debian specific. It manages symlinks for the way Debian splits apache configurations. Your command is the equivalent ofln -s /etc/apache2/mods-available,enabled/ssl.load; ln -s /etc/apache2/mods-available,enabled/ssl.conf
â jordanm
Feb 18 '15 at 3:43
1
a2enmod
is also used on suse.
â dr0i
Feb 24 '16 at 16:01
worked for me on Ubuntu. thanks.
â grooveplex
Jun 28 '16 at 18:55
add a comment |Â
up vote
13
down vote
httpd24 solution:
yum install mod24_ssl
1
That presumably works for (some) RPM-based distributions only. Which one? Why does it fix the problem?
â vonbrand
Feb 17 '16 at 0:07
Worked on Amazon Linux and Centos for me. It's specifically for Apache 2.4.
â dtbarne
Feb 23 '16 at 16:39
add a comment |Â
up vote
11
down vote
On CentOS 7 installing the package "mod_ssl" and restarting the apache server worked for me:
yum install mod_ssl
systemctl restart httpd
add a comment |Â
up vote
1
down vote
On Ubntu 18.04 bionic.
sudo a2enmod ssl; sudo service apache2 restart
The second answer already recomendssudo a2enmod ssl;
Maybe you should add a comment there to restart the server after the change.
â Isaac
Aug 15 at 8:13
add a comment |Â
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
43
down vote
accepted
Probably you do not load the ssl module. You should have a LoadModule directive somewhere in your apache configuration files.
Something like:
LoadModule ssl_module /usr/lib64/apache2-prefork/mod_ssl.so
Usually apache configuration template has (on any distribution) a file called (something like) loadmodule.conf
in which you should find a LoadModule
directive for each module you load into apache at server start.
2
Also, it's necessary to installmod_ssl
. On RHEL and CentOS, this is done withyum install mod_ssl
.
â Benedikt Köppel
Apr 18 at 18:13
add a comment |Â
up vote
43
down vote
accepted
Probably you do not load the ssl module. You should have a LoadModule directive somewhere in your apache configuration files.
Something like:
LoadModule ssl_module /usr/lib64/apache2-prefork/mod_ssl.so
Usually apache configuration template has (on any distribution) a file called (something like) loadmodule.conf
in which you should find a LoadModule
directive for each module you load into apache at server start.
2
Also, it's necessary to installmod_ssl
. On RHEL and CentOS, this is done withyum install mod_ssl
.
â Benedikt Köppel
Apr 18 at 18:13
add a comment |Â
up vote
43
down vote
accepted
up vote
43
down vote
accepted
Probably you do not load the ssl module. You should have a LoadModule directive somewhere in your apache configuration files.
Something like:
LoadModule ssl_module /usr/lib64/apache2-prefork/mod_ssl.so
Usually apache configuration template has (on any distribution) a file called (something like) loadmodule.conf
in which you should find a LoadModule
directive for each module you load into apache at server start.
Probably you do not load the ssl module. You should have a LoadModule directive somewhere in your apache configuration files.
Something like:
LoadModule ssl_module /usr/lib64/apache2-prefork/mod_ssl.so
Usually apache configuration template has (on any distribution) a file called (something like) loadmodule.conf
in which you should find a LoadModule
directive for each module you load into apache at server start.
answered Feb 10 '12 at 15:11
andcoz
11.9k32938
11.9k32938
2
Also, it's necessary to installmod_ssl
. On RHEL and CentOS, this is done withyum install mod_ssl
.
â Benedikt Köppel
Apr 18 at 18:13
add a comment |Â
2
Also, it's necessary to installmod_ssl
. On RHEL and CentOS, this is done withyum install mod_ssl
.
â Benedikt Köppel
Apr 18 at 18:13
2
2
Also, it's necessary to install
mod_ssl
. On RHEL and CentOS, this is done with yum install mod_ssl
.â Benedikt Köppel
Apr 18 at 18:13
Also, it's necessary to install
mod_ssl
. On RHEL and CentOS, this is done with yum install mod_ssl
.â Benedikt Köppel
Apr 18 at 18:13
add a comment |Â
up vote
105
down vote
On many systems (Ubuntu, Suse, Debian, ...) run the following command to enable Apache's SSL mod:
sudo a2enmod ssl
a2enmod man page
1
This is Debian-specific but the question is not tagged Debian.
â jordanm
Feb 18 '15 at 1:32
1
is a2enmod really Debian specific? Or are you complaining about the use of sudo?
â Stéphane
Feb 18 '15 at 2:08
4
a2enmod
is Debian specific. It manages symlinks for the way Debian splits apache configurations. Your command is the equivalent ofln -s /etc/apache2/mods-available,enabled/ssl.load; ln -s /etc/apache2/mods-available,enabled/ssl.conf
â jordanm
Feb 18 '15 at 3:43
1
a2enmod
is also used on suse.
â dr0i
Feb 24 '16 at 16:01
worked for me on Ubuntu. thanks.
â grooveplex
Jun 28 '16 at 18:55
add a comment |Â
up vote
105
down vote
On many systems (Ubuntu, Suse, Debian, ...) run the following command to enable Apache's SSL mod:
sudo a2enmod ssl
a2enmod man page
1
This is Debian-specific but the question is not tagged Debian.
â jordanm
Feb 18 '15 at 1:32
1
is a2enmod really Debian specific? Or are you complaining about the use of sudo?
â Stéphane
Feb 18 '15 at 2:08
4
a2enmod
is Debian specific. It manages symlinks for the way Debian splits apache configurations. Your command is the equivalent ofln -s /etc/apache2/mods-available,enabled/ssl.load; ln -s /etc/apache2/mods-available,enabled/ssl.conf
â jordanm
Feb 18 '15 at 3:43
1
a2enmod
is also used on suse.
â dr0i
Feb 24 '16 at 16:01
worked for me on Ubuntu. thanks.
â grooveplex
Jun 28 '16 at 18:55
add a comment |Â
up vote
105
down vote
up vote
105
down vote
On many systems (Ubuntu, Suse, Debian, ...) run the following command to enable Apache's SSL mod:
sudo a2enmod ssl
a2enmod man page
On many systems (Ubuntu, Suse, Debian, ...) run the following command to enable Apache's SSL mod:
sudo a2enmod ssl
a2enmod man page
edited Aug 22 '17 at 8:53
robsch
121110
121110
answered Feb 18 '15 at 0:02
Stéphane
1,155267
1,155267
1
This is Debian-specific but the question is not tagged Debian.
â jordanm
Feb 18 '15 at 1:32
1
is a2enmod really Debian specific? Or are you complaining about the use of sudo?
â Stéphane
Feb 18 '15 at 2:08
4
a2enmod
is Debian specific. It manages symlinks for the way Debian splits apache configurations. Your command is the equivalent ofln -s /etc/apache2/mods-available,enabled/ssl.load; ln -s /etc/apache2/mods-available,enabled/ssl.conf
â jordanm
Feb 18 '15 at 3:43
1
a2enmod
is also used on suse.
â dr0i
Feb 24 '16 at 16:01
worked for me on Ubuntu. thanks.
â grooveplex
Jun 28 '16 at 18:55
add a comment |Â
1
This is Debian-specific but the question is not tagged Debian.
â jordanm
Feb 18 '15 at 1:32
1
is a2enmod really Debian specific? Or are you complaining about the use of sudo?
â Stéphane
Feb 18 '15 at 2:08
4
a2enmod
is Debian specific. It manages symlinks for the way Debian splits apache configurations. Your command is the equivalent ofln -s /etc/apache2/mods-available,enabled/ssl.load; ln -s /etc/apache2/mods-available,enabled/ssl.conf
â jordanm
Feb 18 '15 at 3:43
1
a2enmod
is also used on suse.
â dr0i
Feb 24 '16 at 16:01
worked for me on Ubuntu. thanks.
â grooveplex
Jun 28 '16 at 18:55
1
1
This is Debian-specific but the question is not tagged Debian.
â jordanm
Feb 18 '15 at 1:32
This is Debian-specific but the question is not tagged Debian.
â jordanm
Feb 18 '15 at 1:32
1
1
is a2enmod really Debian specific? Or are you complaining about the use of sudo?
â Stéphane
Feb 18 '15 at 2:08
is a2enmod really Debian specific? Or are you complaining about the use of sudo?
â Stéphane
Feb 18 '15 at 2:08
4
4
a2enmod
is Debian specific. It manages symlinks for the way Debian splits apache configurations. Your command is the equivalent of ln -s /etc/apache2/mods-available,enabled/ssl.load; ln -s /etc/apache2/mods-available,enabled/ssl.conf
â jordanm
Feb 18 '15 at 3:43
a2enmod
is Debian specific. It manages symlinks for the way Debian splits apache configurations. Your command is the equivalent of ln -s /etc/apache2/mods-available,enabled/ssl.load; ln -s /etc/apache2/mods-available,enabled/ssl.conf
â jordanm
Feb 18 '15 at 3:43
1
1
a2enmod
is also used on suse.â dr0i
Feb 24 '16 at 16:01
a2enmod
is also used on suse.â dr0i
Feb 24 '16 at 16:01
worked for me on Ubuntu. thanks.
â grooveplex
Jun 28 '16 at 18:55
worked for me on Ubuntu. thanks.
â grooveplex
Jun 28 '16 at 18:55
add a comment |Â
up vote
13
down vote
httpd24 solution:
yum install mod24_ssl
1
That presumably works for (some) RPM-based distributions only. Which one? Why does it fix the problem?
â vonbrand
Feb 17 '16 at 0:07
Worked on Amazon Linux and Centos for me. It's specifically for Apache 2.4.
â dtbarne
Feb 23 '16 at 16:39
add a comment |Â
up vote
13
down vote
httpd24 solution:
yum install mod24_ssl
1
That presumably works for (some) RPM-based distributions only. Which one? Why does it fix the problem?
â vonbrand
Feb 17 '16 at 0:07
Worked on Amazon Linux and Centos for me. It's specifically for Apache 2.4.
â dtbarne
Feb 23 '16 at 16:39
add a comment |Â
up vote
13
down vote
up vote
13
down vote
httpd24 solution:
yum install mod24_ssl
httpd24 solution:
yum install mod24_ssl
answered Feb 16 '16 at 23:27
dtbarne
23126
23126
1
That presumably works for (some) RPM-based distributions only. Which one? Why does it fix the problem?
â vonbrand
Feb 17 '16 at 0:07
Worked on Amazon Linux and Centos for me. It's specifically for Apache 2.4.
â dtbarne
Feb 23 '16 at 16:39
add a comment |Â
1
That presumably works for (some) RPM-based distributions only. Which one? Why does it fix the problem?
â vonbrand
Feb 17 '16 at 0:07
Worked on Amazon Linux and Centos for me. It's specifically for Apache 2.4.
â dtbarne
Feb 23 '16 at 16:39
1
1
That presumably works for (some) RPM-based distributions only. Which one? Why does it fix the problem?
â vonbrand
Feb 17 '16 at 0:07
That presumably works for (some) RPM-based distributions only. Which one? Why does it fix the problem?
â vonbrand
Feb 17 '16 at 0:07
Worked on Amazon Linux and Centos for me. It's specifically for Apache 2.4.
â dtbarne
Feb 23 '16 at 16:39
Worked on Amazon Linux and Centos for me. It's specifically for Apache 2.4.
â dtbarne
Feb 23 '16 at 16:39
add a comment |Â
up vote
11
down vote
On CentOS 7 installing the package "mod_ssl" and restarting the apache server worked for me:
yum install mod_ssl
systemctl restart httpd
add a comment |Â
up vote
11
down vote
On CentOS 7 installing the package "mod_ssl" and restarting the apache server worked for me:
yum install mod_ssl
systemctl restart httpd
add a comment |Â
up vote
11
down vote
up vote
11
down vote
On CentOS 7 installing the package "mod_ssl" and restarting the apache server worked for me:
yum install mod_ssl
systemctl restart httpd
On CentOS 7 installing the package "mod_ssl" and restarting the apache server worked for me:
yum install mod_ssl
systemctl restart httpd
edited Apr 9 '17 at 9:37
answered Apr 9 '17 at 9:24
Falco Preiseni
11113
11113
add a comment |Â
add a comment |Â
up vote
1
down vote
On Ubntu 18.04 bionic.
sudo a2enmod ssl; sudo service apache2 restart
The second answer already recomendssudo a2enmod ssl;
Maybe you should add a comment there to restart the server after the change.
â Isaac
Aug 15 at 8:13
add a comment |Â
up vote
1
down vote
On Ubntu 18.04 bionic.
sudo a2enmod ssl; sudo service apache2 restart
The second answer already recomendssudo a2enmod ssl;
Maybe you should add a comment there to restart the server after the change.
â Isaac
Aug 15 at 8:13
add a comment |Â
up vote
1
down vote
up vote
1
down vote
On Ubntu 18.04 bionic.
sudo a2enmod ssl; sudo service apache2 restart
On Ubntu 18.04 bionic.
sudo a2enmod ssl; sudo service apache2 restart
edited Aug 15 at 8:14
Isaac
7,1061834
7,1061834
answered Aug 15 at 8:01
pumpkin_cat
1111
1111
The second answer already recomendssudo a2enmod ssl;
Maybe you should add a comment there to restart the server after the change.
â Isaac
Aug 15 at 8:13
add a comment |Â
The second answer already recomendssudo a2enmod ssl;
Maybe you should add a comment there to restart the server after the change.
â Isaac
Aug 15 at 8:13
The second answer already recomends
sudo a2enmod ssl;
Maybe you should add a comment there to restart the server after the change.â Isaac
Aug 15 at 8:13
The second answer already recomends
sudo a2enmod ssl;
Maybe you should add a comment there to restart the server after the change.â Isaac
Aug 15 at 8:13
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f31378%2fapache2-invalid-command-sslengine%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password