VPS侦探论坛

 找回密码
 注册
查看: 3264|回复: 8

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

[复制链接]
发表于 2017-6-11 17:52:54 | 显示全部楼层 |阅读模式

原本是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[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
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-6-11 19:56:25 | 显示全部楼层


编辑httpd.conf,找到 LoadModule socache_shmcb_module modules/mod_socache_shmcb.so,把前面的注释去掉
重启Apache
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 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了吧?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 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
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 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

军哥运维代购:http://shop63846532.taobao.com/

发表于 2017-6-13 10:47:29 | 显示全部楼层

回复 5# 的帖子


按前面你发的信息里你apache里面都有 socache_shmcb_module 这个模块了,你apache肯定是2.4,你用2.2的配置文件肯定不行,重新按4楼cp文件
 楼主| 发表于 2017-6-13 11:56:24 | 显示全部楼层

已解决


已解决!谢谢军哥!
已解决!谢谢军哥!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-6-13 13:35:17 | 显示全部楼层

执行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

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!
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 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 挂载的目录没空间了
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-17 20:33 , Processed in 0.028344 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表