810656823 发表于 2017-6-11 17:52:54

军哥。lnmp1.3升级1.4 lnmp ssl add 出现的conf错误。请求帮忙!

原本是Lnmp1.3的。我是lamp的环境。然后升级:wget -c http://soft.vpser.net/lnmp/lnmp1.4.tar.gz && tar zxf lnmp1.4.tar.gz && cd lnmp1.4 && ./upgrade1.x-1.4.sh

然后lnmp ssl 添加原本存在的站点。
添加完之后。报错如下,不懂得解决。百度了一下。还是没答案。求军哥支招:

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# /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:25

编辑httpd.conf,找到 LoadModule socache_shmcb_module modules/mod_socache_shmcb.so,把前面的注释去掉
重启Apache

810656823 发表于 2017-6-12 17:01:08

去掉之后还是不行的。

用你说的方法去掉之后。报错:
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:25

回复 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:11

我是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:29

回复 5# 的帖子

按前面你发的信息里你apache里面都有 socache_shmcb_module 这个模块了,你apache肯定是2.4,你用2.2的配置文件肯定不行,重新按4楼cp文件

810656823 发表于 2017-6-13 11:56:24

已解决

已解决!谢谢军哥!
已解决!谢谢军哥!

810656823 发表于 2017-6-13 13:35:17

执行Lnmp ssl ,添加Let's Encrypt。报错:

It will be processed automatically.
/bin/certbot
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

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 14 k
Installed size: 22 k
Downloading Packages:


Error Downloading Packages:
epel-release-6-8.noarch: Insufficient space in download directory /var/cache/yum/x86_64/6/extras/packages
    * free   0
    * needed 14 k

Could not enable EPEL. Aborting bootstrap!
Let's Encrypt SSL Certificate create failed!

licess 发表于 2017-6-13 15:45:03

Error Downloading Packages:
epel-release-6-8.noarch: Insufficient space in download directory /var/cache/yum/x86_64/6/extras/packages
    * free   0
    * needed 14 k

你可以df -h 看一下,应该是 /var 挂载的目录没空间了
页: [1]
查看完整版本: 军哥。lnmp1.3升级1.4 lnmp ssl add 出现的conf错误。请求帮忙!