VPS侦探论坛

 找回密码
 注册
查看: 6652|回复: 11

LINODE VPS CENTOS 7 X64 LNMP 1.2 MAGENTO Install Extensions Display Unknown cip

[复制链接]
发表于 2015-8-4 09:18:04 | 显示全部楼层 |阅读模式

大家好!

我在LINODE的VPS安装好MAGENTO 1.9.2.0之后,想安装其他插件,会出现如下错误,请帮忙处理,谢谢!

MAGENTO 安装插件错误提示:
  1. Unknown cipher in list: TLSv1
复制代码


Magento 错误日志:
  1. 2015-08-03T17:31:52+00:00 ERR (3): Warning: scandir() has been disabled for security reasons in /home/wwwroot/www.xxx.com/downloader/lib/Mage/Connect/Command/Registry.php on line 206
  2. 2015-08-03T17:31:58+00:00 ERR (3): Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in /home/wwwroot/www.xxx.com/downloader/lib/Mage/HTTP/Client/Curl.php on line 510
  3. var/log/system.log (END)
复制代码


Curl.php on line 510:
  1. 509 {
  2. 510 curl_setopt($this->_ch, $name, $value);
  3. 511 }
复制代码


系统信息:
  1. uname -a
  2. Linux li1047-187.members.linode.com 4.1.0-x86_64-linode59 #1 SMP Mon Jun 22 10:39:23 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
复制代码


服务器解译引擎:nginx/1.8.0
PHP版本(php_version):5.4.41
MYSQL: 5.5.42

PS:查找了不是资料,个人感觉不是MAGENTO程序代码的问题,有可能是程序调用SSL方面有关。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-8-4 12:26:32 | 显示全部楼层


错误1 你可以看看:http://stackoverflow.com/questio ... ipher-in-list-tlsv1

错误2 可以按http://lnmp.org/faq/lnmp-vhost-add-howto.html#user.ini 这个chattr -i后,清空.user.ini
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-8-4 15:51:59 | 显示全部楼层

错误1 照着改了,提示如下错误,我用同一个MAGENTO压缩包在其它VPS能正常!
  1.     376         $this->curlOption(CURLOPT_SSL_VERIFYPEER, false);
  2.     377         * $this->curlOption(CURLOPT_SSL_CIPHER_LIST, 'TLSv1');
  3.     378         if(isset($var)){$this->curlOption(CURLOPT_SSL_CIPHER_LIST, 'TLSv1');}
复制代码
错误:
  1. Connection Error try again later.
复制代码
  1.       1 2015-08-03T17:31:52+00:00 ERR (3): Warning: scandir() has been disabled for security reasons  in /home/wwwroot/www.xxx.com/downloader/lib/Mage/Connect/Co        mmand/Registry.php on line 206
  2.       2 2015-08-03T17:31:58+00:00 ERR (3): Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set  in /home/wwwroot/www.xxx.com/downloader/lib/Mage/HTTP/Client/Curl.php on line 510
  3.       3 2015-08-04T05:13:49+00:00 ERR (3): Warning: scandir() has been disabled for security reasons  in /home/wwwroot/www.xxx.com/downloader/lib/Mage/Connect/Co        mmand/Registry.php on line 206
  4.       4 2015-08-04T05:17:22+00:00 ERR (3): Warning: scandir() has been disabled for security reasons  in /home/wwwroot/www.xxx.com/downloader/lib/Mage/Connect/Co        mmand/Registry.php on line 206
  5.       5 2015-08-04T05:19:56+00:00 ERR (3): Warning: scandir() has been disabled for security reasons  in /home/wwwroot/www.xxx.com/downloader/lib/Mage/Connect/Co        mmand/Registry.php on line 206
  6.       6 2015-08-04T05:21:33+00:00 ERR (3): Warning: scandir() has been disabled for security reasons  in /home/wwwroot/www.xxx.com/downloader/lib/Mage/Connect/Co        mmand/Registry.php on line 206
  7.       7 2015-08-04T05:21:36+00:00 ERR (3): Warning: scandir() has been disabled for security reasons  in /home/wwwroot/www.xxx.com/downloader/lib/Mage/Connect/Co        mmand/Registry.php on line 206
复制代码
Registry.php on line 206
  1.     202             }
  2.     203
  3.     204             $packageDir = $config->magento_root . DS . Mage_Connect_Package::PACKAGE_XML_DIR;
  4.     205             if (is_dir($packageDir)) {
  5.     206                 $entries = scandir($packageDir);
  6.     207                 foreach ((array)$entries as $entry) {
  7.     208                     $path =  $packageDir. DS .$entry;
  8.     209                     $info = pathinfo($path);
  9.     210                     if ($entry == '.' || $entry == '..' || is_dir($path) || $info['extension'] != 'xml') {
  10.     211                         continue;
  11.     212                     }
复制代码
错误2 已chattr
如要修或删除需要先执行:chattr -i /网站目录/.user.ini
修改完成后再执行:chattr +i /网站目录/.user.ini

原帖由 licess 于 2015-8-4 12:26 发表
错误1 你可以看看:http://stackoverflow.com/questions/31290475/magento-community-edition-1-9-2-update-failed-unknown-cipher-in-list-tlsv1

错误2 可以按http://lnmp.org/faq/lnmp-vhost-add-howto.html#user.i ...

[ 本帖最后由 cfbf 于 2015-8-4 15:53 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-8-4 17:37:33 | 显示全部楼层



.user.ini 已经清空了吗?按你发的日志“ Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set” ,清空.user.ini 应该就可以了
.user.ini 清空后不是实时生效,默认是5分钟生效,这个文件也可以直接删掉

按提示还有一个scandir函数需要用到,按https://bbs.vpser.net/thread-7649-1-1.html 这个把scandir从禁用函数里剔除
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-8-4 18:46:54 | 显示全部楼层

回复 4# 的帖子


.user.ini 已经清空了吗?已清空,没有删掉,并等了超过5分钟。

已从禁用函数删掉!
  1.     306 ;2015/8/4 change By jhp
  2.     307 disable_functions = passthru,exec,system,chroot,chgrp,chown,shell_exec,proc_open,proc_get_status,popen,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server
  3.     308
复制代码

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

发表于 2015-8-4 20:10:59 | 显示全部楼层

回复 5# 的帖子


禁用函数是需要重启php-fpm的,重启了没?
 楼主| 发表于 2015-8-4 22:01:08 | 显示全部楼层

回复 6# 的帖子


嗯,重启了。网路上说要更新下openssl,这个yum的话,没有需要更新的。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-8-5 10:22:32 | 显示全部楼层

回复 7# 的帖子


之前在php 5.2的时候有过访问https会502的情况需要单独安装的curl,并重新编译php指定上新安装的curl来解决
5.4以上目前还没有这个的反馈,不清楚是不是和这个有关系,可以尝试弄弄看看,修改include/upgrade_php.sh  php5.5和5.6修改431行
将--with-curl 提供为--with-curl=/usr/local/curl 然后升级php
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-8-5 11:46:23 | 显示全部楼层

回复 8# 的帖子


刚按照你的方法重新编译了PHP,并reboot,还有重新下在了MAGENTO,哎,不行。

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

 楼主| 发表于 2015-8-6 11:40:33 | 显示全部楼层

回复 8# 的帖子




军哥,你有DA的授权吗?
发表于 2015-8-6 13:29:45 | 显示全部楼层

回复 10# 的帖子


没有
 楼主| 发表于 2015-8-6 14:44:51 | 显示全部楼层

回复 8# 的帖子


http://stackoverflow.com/questions/28354232/centos-6-libcurl-tlsv1-error

好像是说NSS和OPENSSL不能同时用,你知道如何只用一种吗?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-3-29 17:35 , Processed in 0.039227 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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