1 ssl模块
# ./apachectl stop
httpd: Syntax error on line 135 of /usr/local/httpd/conf/httpd.conf: Cannot load modules/mod_ssl.so into server: libssl.so.1.1: cannot open shared object file: No such file or directory
没有相关ssl模块;
解决方法:
# wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb
# dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.deb
Selecting previously unselected package libssl1.1:amd64.
(Reading database ... 81688 files and directories currently installed.)
Preparing to unpack libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1-1ubuntu2.1~18.04.23) ...
Setting up libssl1.1:amd64 (1.1.1-1ubuntu2.1~18.04.23) ...
Processing triggers for libc-bin (2.35-0ubuntu3.3) ..
2 导入模块
# ./apachectl stop
AH00526: Syntax error on line 92 of /usr/local/httpd/conf/extra/httpd-ssl.conf:
SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?).
修改配置文件:httpd.conf
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
3
相关配置参考:
Apache安装部署https SSL证书
解决"SSLSessionCache: 'shmcb' session cache not supported"问题