尽管配置正常,但我无法加载模块。
我已经重新启动了httpd服务。我也尝试过删除并安装 ssl 模块,但仍然遇到同样的问题。
工作正常。我已经重新启动了服务器以处理其他事情,但重新启动时,模块未加载。
之前:
myacine@/etc/httpd/modules$ apachectl -M | grep ssl
ssl_module (shared)
我检查了版本,看起来是一样的:
myacine@/etc/httpd$ rpm -q mod_ssl httpd
mod_ssl-2.4.6-99.el7.centos.1.x86_64
httpd-2.4.6-99.el7.centos.1.x86_64
myacine@/etc/httpd/conf$ apachectl -M
myacine@/etc/httpd/conf$ cd ../
myacine@/etc/httpd$ ls -lrt
total 0
lrwxrwxrwx. 1 root root 29 14 juil. 18:15 modules -> ../../usr/lib64/httpd/modules
lrwxrwxrwx. 1 root root 19 14 juil. 18:15 logs -> ../../var/log/httpd
lrwxrwxrwx. 1 root root 10 14 juil. 18:15 run -> /run/httpd
drwxr-xr-x. 2 root root 32 4 août 09:31 sites-enabled
drwxr-xr-x. 2 root root 82 4 août 09:48 sites-available
drwxr-xr-x. 2 root root 98 4 août 11:36 conf.d
drwxr-xr-x. 2 root root 165 4 août 11:36 conf.modules.d
drwxr-xr-x. 2 root root 59 4 août 11:45 conf
myacine@/etc/httpd$ ls -lrt conf.modules.d
total 32
-rw-r--r--. 1 root root 451 30 mai 15:49 01-cgi.conf
-rw-r--r--. 1 root root 88 30 mai 15:49 00-systemd.conf
-rw-r--r--. 1 root root 41 30 mai 15:49 00-ssl.conf
-rw-r--r--. 1 root root 41 30 mai 15:49 00-lua.conf
-rw-r--r--. 1 root root 139 30 mai 15:49 00-dav.conf
-rw-r--r--. 1 root root 957 30 mai 15:49 00-proxy.conf
-rw-r--r--. 1 root root 742 30 mai 15:49 00-mpm.conf
-rw-r--r--. 1 root root 3739 30 mai 15:49 00-base.conf
myacine@/etc/httpd$ cat conf.modules.d/00-ssl.conf
LoadModule ssl_module modules/mod_ssl.so
myacine@/etc/httpd$```