restart apache... AH00526: Syntax error on line 92 of /usr/local/apache/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?). failed[root@localhost logs]# /etc/init.d/httpd restartrestart apache... AH00526: Syntax error on line 92 of /usr/local/apache/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?). failed作者: licess 时间: 2017-6-11 19:56
编辑httpd.conf,找到 LoadModule socache_shmcb_module modules/mod_socache_shmcb.so,把前面的注释去掉
重启Apache作者: 810656823 时间: 2017-6-12 17:01 标题: 去掉之后还是不行的。 用你说的方法去掉之后。报错:
restart apache... AH00526: Syntax error on line 144 of /usr/local/apache/conf/extra/httpd-ssl.conf:
SSLCertificateFile: file '/usr/local/apache/conf/server.crt' does not exist or is empty
failed
我去把144行和155行这2个证书加了注释就可以。但是这样反而不能打开https了吧?作者: licess 时间: 2017-6-12 21:15 标题: 回复 3# 的帖子 apache 2.2的话 在 lnmp1.4目录下
执行:cp conf/httpd22-ssl.conf /usr/local/apache/conf/extra/httpd-ssl.conf 如果提示覆盖,y 同意
apache 2.4的话 执行:cp conf/httpd24-ssl.conf /usr/local/apache/conf/extra/httpd-ssl.conf
再重启一下apache作者: 810656823 时间: 2017-6-13 08:38 标题: 我是2.2的。按照你的说法操作了。有提示错误: restart apache... AH00526: Syntax error on line 17 of /usr/local/apache/conf/extra/httpd-ssl.conf:
Invalid command 'SSLMutex', perhaps misspelled or defined by a module not included in the server configuration
failed作者: licess 时间: 2017-6-13 10:47 标题: 回复 5# 的帖子 按前面你发的信息里你apache里面都有 socache_shmcb_module 这个模块了,你apache肯定是2.4,你用2.2的配置文件肯定不行,重新按4楼cp文件作者: 810656823 时间: 2017-6-13 11:56 标题: 已解决 已解决!谢谢军哥!
已解决!谢谢军哥!作者: 810656823 时间: 2017-6-13 13:35 标题: 执行Lnmp ssl ,添加Let's Encrypt。报错: It will be processed automatically.
/bin/certbot [found]
Starting create SSL Certificate use Let's Encrypt...
Bootstrapping dependencies for RedHat-based OSes... (you can skip this with --no-bootstrap)
yum is /usr/bin/yum
To use Certbot, packages from the EPEL repository need to be installed.
Enabling the EPEL repository in 1 seconds...
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.web-ster.com
* extras: repos-lax.psychz.net
* updates: centos-distro.1gservers.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:6-8 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
epel-release noarch 6-8 extras 14 k