VPS侦探论坛

 找回密码
 注册
查看: 3109|回复: 2

lnmp php5.4安装ssl出现错误

[复制链接]
发表于 2017-12-29 12:37:14 | 显示全部楼层 |阅读模式

不是阿里云vps, 环境是centos6, php5.4环境下安装ssl出现以下错误。php5.5没有问题。

It will be processed automatically.

Press any key to start create virtul host...

Create Virtul Host directory......
set permissions of Virtual Host directory......
chmod: changing permissions of `/home/wwwroot/forvivi.com/.user.ini': Operation not permitted
chown: changing ownership of `/home/wwwroot/forvivi.com/.user.ini': Operation not permitted
Create Virtul Host Rewrite file......
Create rewirte file successful,You can add rewrite rule into /usr/local/nginx/conf/forvivi.com.conf.
Test Nginx configure file......
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
Reload Nginx......
/bin/lnmp: line 401: /home/wwwroot/forvivi.com/.user.ini: Permission denied
chmod: changing permissions of `/home/wwwroot/forvivi.com/.user.ini': Operation not permitted
Gracefully shutting down php-fpm . done
Starting php-fpm  done
/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
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: repos.forethought.net
* extras: mirror.hmc.edu
* updates: mirrors.xmission.com
Package epel-release-6-8.noarch already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: repos.forethought.net
* extras: mirror.hmc.edu
* updates: mirrors.xmission.com
Package gcc-4.4.7-18.el6.x86_64 already installed and latest version
Package augeas-libs-1.0.0-10.el6.x86_64 already installed and latest version
Package openssl-1.0.1e-57.el6.x86_64 already installed and latest version
Package openssl-devel-1.0.1e-57.el6.x86_64 already installed and latest version
Package libffi-devel-3.0.5-3.2.el6.x86_64 already installed and latest version
Package redhat-rpm-config-9.0.3-51.el6.centos.noarch already installed and latest version
Package ca-certificates-2017.2.14-65.0.1.el6_9.noarch already installed and latest version
Package python-2.6.6-66.el6_8.x86_64 already installed and latest version
Package python-devel-2.6.6-66.el6_8.x86_64 already installed and latest version
No package python-virtualenv available.
Package python-tools-2.6.6-66.el6_8.x86_64 already installed and latest version
No package python-pip available.
Nothing to do
Creating virtual environment...
/bin/certbot: line 864: virtualenv: command not found
Let's Encrypt SSL Certificate create failed!
================================================



[root@host ~]# python -V
Python 2.6.6
[root@host ~]# virtualenv -v
-bash: virtualenv: command not found
[root@host ~]# ^C
[root@host ~]# pip -V
-bash: pip: command not found
[root@host ~]# ls -l /usr/bin/python*
-rwxr-xr-x 2 root root 4864 Aug 18  2016 /usr/bin/python
lrwxrwxrwx 1 root root    6 Dec 29 12:14 /usr/bin/python2 -> python
-rwxr-xr-x 2 root root 4864 Aug 18  2016 /usr/bin/python2.6
-rwxr-xr-x 1 root root 1418 Aug 18  2016 /usr/bin/python2.6-config
lrwxrwxrwx 1 root root   16 Dec 29 12:14 /usr/bin/python-config -> python2.6-config
[root@host ~]#

[ 本帖最后由 polar 于 2017-12-29 12:50 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-12-29 18:10:28 | 显示全部楼层


centos6的python版本太低造成以上问题, 解决办法,安装centos7或者升级python2.75以上。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2017-12-29 18:40:17 | 显示全部楼层

和php版本没关系,有可能你系统上epel源有问题,造成python-pip和virtualenv没安装上
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-28 02:56 , Processed in 0.026205 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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