VPS侦探论坛

 找回密码
 注册
查看: 10541|回复: 7

lnmpa 1.1升级php至5.6.7后,用phpinfo检测还是5.3.28

[复制链接]
发表于 2015-7-12 23:56:21 | 显示全部楼层 |阅读模式

lnmpa 1.1升级php至5.6.7后,用phpinfo检测还是5.3.28军哥,这是怎么回事?

由于使用的框架必须是5.4以上,现在的php版本太旧了,
但是我明明使用./upgrade_lnmpa_php.sh  升级了php版本

为啥还是现实旧版本啊,抓狂!!!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2015-7-13 00:12:56 | 显示全部楼层


用命令find / -name "php"得到的结果:
/root/lnmp1.1-full/php-5.6.7/sapi/cli/php
/root/lnmp1.1-full/lnmp1.1-full/php-5.3.28/sapi/cli/php
/root/lnmp1.1-full/php-5.3.28/sapi/cli/php
/usr/local/php
/usr/local/php/include/php
/usr/local/php/bin/php
/usr/local/php/lib/php
/usr/local/php/php
/usr/local/php/php/php
/usr/bin/php

现在php -v检测到的就是5.6.7
而phpinfo 检测到的是5.3.28
求解决
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-7-13 01:32:46 | 显示全部楼层

又试着把php升级到5.6.11,
结果如下:
Thank you for using PHP.

config.status: creating php5.spec
config.status: creating main/build-defs.h
config.status: creating scripts/phpize
config.status: creating scripts/man1/phpize.1
config.status: creating scripts/php-config
config.status: creating scripts/man1/php-config.1
config.status: creating sapi/cli/php.1
config.status: creating sapi/cgi/php-cgi.1
config.status: creating ext/phar/phar.1
config.status: creating ext/phar/phar.phar.1
config.status: creating main/php_config.h
config.status: executing default commands
configure: WARNING: unrecognized options: --enable-magic-quotes, --enable-safe-mode
/bin/bash /root/lnmp1.1-full/php-5.6.11/libtool --silent --preserve-dup-deps --mode=compile cc -Iext/date/lib -D HAVE_TIMELIB_CONFIG_H=1 -Iext/date/ -I/root/lnmp1.1-full/php-5.6.11/ext/date/ -DPHP_ATOM_INC -I/root/lnmp1.1-full/php-5.6.11/include -I/root/lnmp1.1-full/php-5.6.11/main -I/root/lnmp1.1-full/php-5.6.11 -I/root/lnmp1.1-full/php-5.6.11/ext/date/lib -I/root/lnmp1.1-full/php-5.6.11/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/freetype2 -I/root/lnmp1.1-full/php-5.6.11/ext/mbstring/oniguruma -I/root/lnmp1.1-full/php-5.6.11/ext/mbstring/libmbfl -I/root/lnmp1.1-full/php-5.6.11/ext/mbstring/libmbfl/mbfl -I/usr/local/include -I/root/lnmp1.1-full/php-5.6.11/ext/sqlite3/libsqlite -I/root/lnmp1.1-full/php-5.6.11/ext/zip/lib -I/root/lnmp1.1-full/php-5.6.11/TSRM -I/root/lnmp1.1-full/php-5.6.11/Zend    -I/usr/local/include -g -O2 -fvisibility=hidden  -c /root/lnmp1.1-full/php-5.6.11/ext/date/php_date.c -o ext/date/php_date.lo
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
make: *** [ext/date/php_date.lo] Error 1
/bin/bash /root/lnmp1.1-full/php-5.6.11/libtool --silent --preserve-dup-deps --mode=compile cc -Iext/date/lib -D HAVE_TIMELIB_CONFIG_H=1 -Iext/date/ -I/root/lnmp1.1-full/php-5.6.11/ext/date/ -DPHP_ATOM_INC -I/root/lnmp1.1-full/php-5.6.11/include -I/root/lnmp1.1-full/php-5.6.11/main -I/root/lnmp1.1-full/php-5.6.11 -I/root/lnmp1.1-full/php-5.6.11/ext/date/lib -I/root/lnmp1.1-full/php-5.6.11/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/freetype2 -I/root/lnmp1.1-full/php-5.6.11/ext/mbstring/oniguruma -I/root/lnmp1.1-full/php-5.6.11/ext/mbstring/libmbfl -I/root/lnmp1.1-full/php-5.6.11/ext/mbstring/libmbfl/mbfl -I/usr/local/include -I/root/lnmp1.1-full/php-5.6.11/ext/sqlite3/libsqlite -I/root/lnmp1.1-full/php-5.6.11/ext/zip/lib -I/root/lnmp1.1-full/php-5.6.11/TSRM -I/root/lnmp1.1-full/php-5.6.11/Zend    -I/usr/local/include -g -O2 -fvisibility=hidden  -c /root/lnmp1.1-full/php-5.6.11/ext/date/php_date.c -o ext/date/php_date.lo
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
make: *** [ext/date/php_date.lo] Error 1
Modify php.ini......
Install ZendGuardLoader for PHP...
Write ZendGuardLoader to php.ini......
Starting Nginx...
Starting nginx...  done
Starting MySQL...
Starting MySQL
. *
Starting Apache...
httpd: Syntax error on line 362 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: cannot open shared object file: No such file or directory
=========================================================================
You have successfully upgrade PHP of LNMPA from 5.6.7 to 5.6.11
=========================================================================
LNMPA is tool to auto-compile & install Nginx+MySQL+PHP+Apache on Linux
=========================================================================

请军哥支援,感谢
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-7-13 10:51:13 | 显示全部楼层



提供完整的升级日志
只按你提供的这一部分根本就没升级成功
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-7-13 22:30:49 | 显示全部楼层

完整的升级日志去哪里找?

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

 楼主| 发表于 2015-7-13 22:33:26 | 显示全部楼层

我是严格按照军哥你的教程一步步操作的,
现在居然升级不了了,也不知道什么原因,体验不够好啊
求支援
发表于 2015-7-14 09:54:02 | 显示全部楼层

升级教程里有说明 http://lnmp.org/faq/lnmp1-2-upgrade.html
需要提供完整日志才能知道什么原因
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2015-7-18 00:02:54 | 显示全部楼层

我是lnmpa1.1升级失败,不是lnmp1.2
而且1.1升级php我是按照你的教程一步步执行的。
现在我也不知道什么原因了,只能放弃使用你的lnmp一键安装包。还是自己一步步搭建吧。
相信很多人也遇到跟我一样的问题
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-28 03:29 , Processed in 0.028127 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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