graceufo 发表于 2015-7-12 23:56:21

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

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

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

为啥还是现实旧版本啊,抓狂!!!

graceufo 发表于 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
求解决

graceufo 发表于 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: *** 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: *** 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
=========================================================================

请军哥支援,感谢

licess 发表于 2015-7-13 10:51:13

提供完整的升级日志
只按你提供的这一部分根本就没升级成功

graceufo 发表于 2015-7-13 22:30:49

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

graceufo 发表于 2015-7-13 22:33:26

我是严格按照军哥你的教程一步步操作的,
现在居然升级不了了,也不知道什么原因,体验不够好啊
求支援

licess 发表于 2015-7-14 09:54:02

升级教程里有说明 http://lnmp.org/faq/lnmp1-2-upgrade.html
需要提供完整日志才能知道什么原因

graceufo 发表于 2015-7-18 00:02:54

我是lnmpa1.1升级失败,不是lnmp1.2
而且1.1升级php我是按照你的教程一步步执行的。
现在我也不知道什么原因了,只能放弃使用你的lnmp一键安装包。还是自己一步步搭建吧。
相信很多人也遇到跟我一样的问题
页: [1]
查看完整版本: lnmpa 1.1升级php至5.6.7后,用phpinfo检测还是5.3.28