Cuando reinicio httpd, aparece el siguiente error. ¿Qué me estoy perdiendo?
[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
He instalado mod_ssl usando 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
Mi sites.conf se ve así
<VirtualHost *:80>
#    ServerName shop.itmanx.com
    ServerAdmin [email protected]
    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 [email protected]
    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
                                
                    
                    
                        cristiano
fuente
                
                
            fuente

mod_ssl. En RHEL y CentOS, esto se hace conyum install mod_ssl.sudo a2enmod sslEn muchos sistemas (Ubuntu, Suse, Debian, ...) ejecute el siguiente comando para habilitar el mod SSL de Apache:
Página del manual de a2enmod
fuente
a2enmodes específico de Debian Administra los enlaces simbólicos por la forma en que Debian divide las configuraciones de apache. Su comando es el equivalente deln -s /etc/apache2/mods-{available,enabled}/ssl.load; ln -s /etc/apache2/mods-{available,enabled}/ssl.confa2enmodtambién se usa en suse.En CentOS 7, instalar el paquete "mod_ssl" y reiniciar el servidor apache funcionó para mí:
fuente
Solución httpd24:
fuente
En Ubntu 18.04 biónico.
sudo a2enmod ssl; servicio sudo apache2 reiniciar
fuente
sudo a2enmod ssl;Tal vez debería agregar un comentario allí para reiniciar el servidor después del cambio.