Board logo

标题: [教程] php5.3升级脚本 [打印本页]

作者: admin    时间: 2012-10-7 19:19     标题: php5.3升级脚本

在lanmp/wdcp/wdOS的当前版本中,默认的php都是用到5.2.17的版本
如需要升级到php5.3的,可使用如下脚本升级
(注:此升级无安全漏洞等原因,只为某些追求高版本或应用需求需要高版本,对于无这个必要的同学,可不用升级)

wget http://down.wdlinux.cn/in/php_up53.sh
sh php_up53.sh

看到"php update is OK"提示
表示,顺利完成

如有错误或不行,将问题反馈上来
备注:
该升级只是升级PHP的版本,相应的zend,eaccelerator没有升级
且zend opt从php5.3开始已不再支持,也就是说有用到zend opt的,就不要升级了,否则只会瞎折腾
不过可以使用Zend Guard Loader
安装
wget http://down.wdlinux.cn/in/ZendGL_ins.sh
sh ZendGL_ins.sh

eaccelerator也只要最新的0.9.6.1版本
安装
wget http://down.wdlinux.cn/in/eac0961_ins.sh
sh eac0961_ins.sh
作者: njlz8888    时间: 2012-10-8 11:32

wdcp_v2.5(20120929)升级PHP 5.3 先后出现如下问题及解决方式:

1、configure: error: xml2-config not found. Please check your libxml2 installation

# yum install libxml2
# yum install libxml2-devel

2、Checking for pkg-config… /usr/bin/pkg-config
configure: error: Cannot find OpenSSL’s <evp.h>

# yum install openssl openssl-devel

3、checking if we should use cURL for url streams... no
checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
    easy.h should be in <curl-dir>/include/curl/

# yum -y install curl-devel

4、configure: error: jpeglib.h not found.
make: *** No targets specified and no makefile found.  Stop.

# yum install libjpeg.x86_64 libpng.x86_64 freetype.x86_64 libjpeg-devel.x86_64 libpng-devel.x86_64 freetype-

devel.x86_64 -y

5、configure: error: mcrypt.h not found. Please reinstall libmcrypt.

# yum install libmcrypt libmcrypt-devel
作者: njlz8888    时间: 2012-10-8 11:38

升级后探针显示版本为5.3.17,但是探针的
上传文件最大限制(upload_max_filesize)
脚本占用最大内存(memory_limit)
POST方法提交最大限制(post_max_size)
脚本超时时间(max_execution_time)
……等好多项都没有值,打红叉了,是不是不支持了?
作者: admin    时间: 2012-10-8 11:46

探针里打红叉?

这些是PHP里的基本功能,肯定要支持的
作者: hoteri    时间: 2012-10-8 14:34

确实如同3楼说的,很多参数都是叉....
作者: njlz8888    时间: 2012-10-8 15:04

而且我的wordpress出现502 gateway错误,已经重装系统了。。
作者: admin    时间: 2012-10-8 17:27

回复 5# hoteri

哪里显示叉?探针里还是后台里?
作者: HookOS    时间: 2012-10-8 19:18

本帖最后由 HookOS 于 2012-10-8 19:20 编辑

wget http://down.wdlinux.cn/in/eac0961_ins.sh
sh eac0961_ins.sh

管理员,运行这个sh安装后,如何保证开启呢

安装后重启vps探针里的这个组建还是叉叉,DZ论坛系统也显示这个组建的php不支持

补充:
只是想用到dz2.5里的内存优化功能

内存接口        PHP 扩展环境        Config 设置        内存清理       
Redis        不支持        打开        --
memcache        不支持        关闭        --
APC        不支持        打开        --
Xcache        不支持        打开        --
eAccelerator        不支持        打开        --
wincache        不支持        打开        --

都显示不支持,我之前也安装过memcache,今天安装eAccelerator        也不行,探针里都是叉叉
作者: HookOS    时间: 2012-10-8 19:23

1.png

2.png

图片附件: 1.png (2012-10-8 19:22, 6.1 KB) / 下载次数 13131
http://wdlinux.cn/bbs/attachment.php?aid=2023&k=d5dd205835360562f5a3140168289571&t=1713550633&sid=2U2121



图片附件: 2.png (2012-10-8 19:23, 6.75 KB) / 下载次数 13009
http://wdlinux.cn/bbs/attachment.php?aid=2024&k=85218cc8475a26a49435f04f5ab146ac&t=1713550633&sid=2U2121


作者: admin    时间: 2012-10-8 19:29

DZ不支持高版本的EAC
你可以用回5.2版的PHP就可以
作者: HookOS    时间: 2012-10-8 20:05

悲催了,dz要求用php5.3的,怎么到这里这个组建不支持了

还有我按照论坛里的步骤安装了memcache怎么也用不起来啊,求管理员指点
作者: ngibo1278    时间: 2012-10-8 22:57

老大,我先升级了mysql,现在升级用这里的脚本升级php不行了
目前是从该版本起,继续提供RPM包的安装,方便,快速,5分钟就可安装完
wget http://down.wdlinux.cn/in/lanmp_wdcp_24_in.sh
sh lanmp_wdcp_24_in.sh
升级mysql的代码
wget http://down.wdlinux.cn/in/mysql_up55.sh
sh mysql_up55.sh

升级php的代码
wget http://down.wdlinux.cn/in/php_up53.sh
sh php_up53.sh

显示信息
php-5.3.17/buildconf
php-5.3.17/README.SUBMITTING_PATCH
php-5.3.17/pear/
php-5.3.17/pear/Makefile.frag
php-5.3.17/pear/install-pear-nozlib.phar
php-5.3.17/pear/install-pear.txt
php-5.3.17/pear/fetch.php
php-5.3.17/LICENSE
php-5.3.17/README.input_filter
php is not update

直接用http://www.wdlinux.cn/bbs/thread-1494-1-1.html这里的升级方式,make时提示出错,错误信息如下;
/tmp/php-5.3.17/sapi/cli/php: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
make: *** [ext/phar/phar.php] Error 127

看了网上的部分教程,还是没解决问题,求救啊!!!!
作者: admin    时间: 2012-10-8 23:16

回复 11# HookOS

   不是到这里不支持是DZ里不支持高版本的EAC,只支持0.9.5.3
论坛有过相关的说明
之前的DZ是这样的,不确定现在新的是否有做过调整

而我在测试PHP5.3时,在编译EAC 0.9.5.3时有错误,但0.9.6.1是正常
所以我觉得可能是PHP5.3不支持EAC 0.9.5.3了

memcached用不起来,有什么错误提示或信息?
作者: 夏筱羽    时间: 2012-10-8 23:19

本帖最后由 夏筱羽 于 2012-10-8 23:21 编辑

終於等到了,趁現在GOOGLE ADWORDS匯款還沒入帳,趕緊升級當白老鼠= =
編譯的可以直接用這個升級嗎?
作者: 夏筱羽    时间: 2012-10-8 23:25

本帖最后由 夏筱羽 于 2012-10-8 23:40 编辑

報告老大php.ini出錯了喔~
php.ini全空了
只剩下如下內容
  1. [Zend]
  2. zend_extension_manager.optimizer=/www/wdlinux/Zend/lib/Optimizer-3.3.3
  3. zend_extension_manager.optimizer_ts=/www/wdlinux/Zend/lib/Optimizer_TS-3.3.3
  4. zend_optimizer.version=3.3.3
  5. zend_optimizer.enable_loader = 1
  6. zend_optimizer.optimization_level=1023
  7. [eaccelerator]
  8. extension_dir="/www/wdlinux/apache_php/lib/php/extensions/no-debug-non-zts-20090626/"
  9. extension="eaccelerator.so"
  10. eaccelerator.shm_size="8"
  11. eaccelerator.cache_dir="/www/wdlinux/eaccelerator_cache"
  12. eaccelerator.enable="1"
  13. eaccelerator.optimizer="1"
  14. eaccelerator.check_mtime="1"
  15. eaccelerator.debug="0"
  16. eaccelerator.filter=""
  17. eaccelerator.shm_max="0"
  18. eaccelerator.shm_ttl="3600"
  19. eaccelerator.shm_prune_period="3600"
  20. eaccelerator.shm_only="0"
  21. eaccelerator.compress="1"
  22. eaccelerator.compress_level="9"
复制代码

作者: admin    时间: 2012-10-8 23:25

回复 12# ngibo1278


   重起下,再升级PHP试下
作者: 夏筱羽    时间: 2012-10-9 00:02

本帖最后由 夏筱羽 于 2012-10-9 00:37 编辑

升級5.3 php.ini被清空了,先拿5.2.17的php.ini來頂著先
memcache 後台有啟用 phpinfo 確實顯示不支持,還在查原因當中。
作者: hoteri    时间: 2012-10-9 03:31

回复 7# admin


   探针里
作者: admin    时间: 2012-10-9 09:13

回复 17# 夏筱羽


   5.2的php.ini可能不同,在源码目录里找下php.ini-product就可以了
memcache看下是不是PHP扩展支持没安装好
作者: admin    时间: 2012-10-9 09:14

回复 18# hoteri


   奇怪,我这边测试的都可以呀
作者: hoteri    时间: 2012-10-9 12:52

回复 20# admin


   等下我用全新安装一次试验
作者: ngibo1278    时间: 2012-10-9 13:38

谢谢老大,重启了服务器,按照教程升级了MYSQL、PHP,显示升级成功,在phpadmin中查看,里面显示mysql版本已经正确;只是探针、端口测试,发现php版本还是原来的老样子,显示的是php 5.2.17P1,同时在WDCP面板后台修改php设置,发现php.ini文件不存在;通过端口测试IP地址,返回的信息同样是php 5.2.17P1
网页返回HEAD信息如下
Server: nginx/1.0.15
Date: Tue, 09 Oct 2012 05:22:39 GMT
Content-Type: text/html
Connection: keep-alive
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.17p1
Content-Length: 2597

重启nginx的时候发现
Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

我用的是centos 6.2,使用lanmp,这是升级成功了?还是要修改下什么设置?另外,直接把php压缩包的php.ini文件复制WDCP面板设置php.ini文件的位置行不行?
作者: chen7413    时间: 2012-10-9 17:11

怎么我的php版本升级后重启了两次,还是5.2.17p1呢。这是怎么回事,
还有就是Zend Guard Loader安装时,下载不了.rmp的一个什么编译包。
作者: chen7413    时间: 2012-10-9 17:39

开始升级2.5到后 接着php版本 升级后php.ini也不在了,这是搞什么。php版本还是显示php5.2.17p1
网站还能运行。系统切换,检测不到nginx或php-cgi,这是怎么了,只能用apache了。
作者: admin    时间: 2012-10-9 18:04

回复 22# ngibo1278


   如果php.ini 文件为空的话,从PHP的源码目录里拷一份即可,
如cd php-5.3.17
cp php.ini-production /www/wdlinux/apache_php/etc/php.ini
cp php.ini-production /www/wdlinux/nginx_php/etc/php.ini
作者: admin    时间: 2012-10-9 18:05

回复 24# chen7413


   还是显示php5.2.17的话,是没升级成功,可以把相关提示信息贴上来
作者: ngibo1278    时间: 2012-10-9 19:34

123.jpg

貌似这个升级的程序真的有问题,上图显示php is update,实际上不管是探针,还是直接去/www/wdlinux/目录查看,都没有找到对应的文件,依然是php 5.2.17P1

apache环境下的:libmysqlclient.so.18: cannot open shared object file: No such file or directory
make: *** [ext/phar/phar.php] Error 127

另外,nginx环境下的php貌似压根没安装过,似乎是读写失败什么的

我的运行环境:centos 6.2 64位  通过rpm快速安装的lanmp组合,先升级的mysql,随后升级的php

升级mysql的方法
wget http://down.wdlinux.cn/in/mysql_up55.sh
sh mysql_up55.sh


升级php的方法
wget http://down.wdlinux.cn/in/php_up53.sh
sh php_up53.sh

图片附件: 123.jpg (2012-10-9 19:29, 72.05 KB) / 下载次数 10462
http://wdlinux.cn/bbs/attachment.php?aid=2027&k=5b8ca254003e32f5750596047089e75b&t=1713550633&sid=2U2121


作者: admin    时间: 2012-10-9 19:47

是因为libmysqlclient.so这个没有编译成功,但脚本又没判断,所以这样
已经做过调整

mysql是否正常?有没重起过

如果没有重起过,重起下,再次安装试试
重新下载php_up53.sh,下载前先删php_up53.sh
作者: ngibo1278    时间: 2012-10-10 00:09

折腾了两个夜晚,终于成功了,谢谢老大的耐心指导!
正确的升级流程是:先安装WDCP面板,随后安装cmake,一定要安装这个文件,随后升级php,随后升级相关的php缓存插件,随后升级mysql,这样才完全升级成功。之前出错可能是cmake文件的版本问题,开始用的高版本,后来换到低版本,再先升级php,这样才行;先升级mysql,后面安装php要调整很多地方。
作者: qdlele01    时间: 2012-10-10 09:24

wget http://down.wdlinux.cn/in/ZendGL_ins.sh
sh ZendGL_ins.sh

zend 安装不成功
作者: admin    时间: 2012-10-10 10:03

回复 29# ngibo1278

升级脚本里有自动安装cmake的
按理,先升级mysql,再升级php会更好的,如果同时也要升级mysql的话
php调整很多地方,比如呢?
作者: ngibo1278    时间: 2012-10-10 18:07

回复 31# admin

先升级mysql,后升级php的话,会提示libmysqlclient.so.18这个文件找不到,还有别的一些文件位置出错,要自己去加软链接,反正我加不来这些,只好先升级php,随后升级mysql,这样mysql安装好以后不存在这部分链接错误
作者: qdlele01    时间: 2012-10-10 19:07

[root@localhost ~]# sh ZendGL_ins.sh
--2012-10-10 18:56:52--  http://dl.wdlinux.cn:5180/soft//ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
正在解析主机 dl.wdlinux.cn... 124.130.146.174
Connecting to dl.wdlinux.cn|124.130.146.174|:5180... 已连接。
已发出 HTTP 请求,正在等待回应... 302 Found
位置:http://dl.wdlinux.cn:5180/index.html [跟随至新的 URL]
--2012-10-10 18:56:52--  http://dl.wdlinux.cn:5180/index.html
Connecting to dl.wdlinux.cn|124.130.146.174|:5180... 已连接。
已发出 HTTP 请求,正在等待回应... 416 Requested Range Not Satisfiable
    文件已下载完成;不会进行任何操作。
tar: ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz:无法 open: 没有那个文件或目录
tar: 错误不可恢复:现在退出
tar: Child returned status 2
tar: 由于前面延迟的错误而退出
cp: 无法 stat “ZendGuardLoader-php-5.3-linux-glibc23-i386/php-5.3.x/*.so”: 没有那个文件或目录
[Zend]
[Zend]
ZendGuardLoader is OK
[root@localhost ~]#

ZendGuardLoader  安装成功啊
作者: hoteri    时间: 2012-10-11 00:09

依然还是探针里现实xxxx
作者: admin    时间: 2012-10-11 09:18

回复 33# qdlele01


   ZendGuardLoader文件没下载到

重新安装一次
作者: qdlele01    时间: 2012-10-11 10:17

回复 35# admin


    昨晚试了多次都不行啊
作者: linaiwei    时间: 2012-11-2 02:01

我也要升级看看
作者: trackcn    时间: 2012-11-5 13:01

MySQL server PID file could not be found!                  [FAILED]
Starting MySQL...                                          [  OK  ]
安装升级mysql5.5提示错误,一直没有安装成功
作者: trackcn    时间: 2012-11-5 15:22

服务器: Localhost via UNIX socket
服务器版本: 5.5.27
协议版本: 10
用户: root@localhost
MySQL 字符集: UTF-8 Unicode (utf8)
网站服务器
Apache
MySQL 客户端版本: 5.1.63
PHP 扩展: mysql
作者: trackcn    时间: 2012-11-5 19:35

本帖最后由 trackcn 于 2012-11-6 16:44 编辑

我装了很多次了,如果只升级php5.3可以成功,如升级mysql5.5会出现问题,同时升级PHP5.3会不成功。终于解决了问题,只要做一个链接把文件拷贝一下就可以了。
作者: taoboacn    时间: 2012-11-8 14:40

我的暂时不要,因为蛮稳定
作者: crison    时间: 2012-11-16 15:22

执行了sh命令后,貌似做了一下解包操作,然后就没结果了,请问怎么回事呢,我有个站一定要用php5.3的

QQ截图20121116151013.png

图片附件: QQ截图20121116151013.png (2012-11-16 15:22, 11.71 KB) / 下载次数 8667
http://wdlinux.cn/bbs/attachment.php?aid=2152&k=ed9d9d885155ff433753829c895e0e6d&t=1713550633&sid=2U2121


作者: admin    时间: 2012-11-16 17:36

正常情况,会有提示的
作者: crison    时间: 2012-11-19 12:20

现在就是没有提示啊,这应该是什么问题啊,如何解决呢?有方法么?
作者: admin    时间: 2012-11-19 14:16

不确定是什么问题
作者: liyh88    时间: 2012-11-24 17:55

升级之后是5.3.17的
现在yun下,就是5.3.3的,建议把5.3.3.tar.gz换上去!
作者: admin    时间: 2012-11-24 20:13

换低版本的5.3.3?
作者: kon88    时间: 2012-11-25 16:12

到底哪个版本高啊。

5.3.3  和  5.3.17

我个人理解 也是 5.3.3是高版本, 大佬咋说低版本呢?
作者: admin    时间: 2012-11-25 19:36

3比17大?
去官网的下载看看日期
作者: goodbaby    时间: 2012-12-2 14:32

升级成功后,如何安装 ioncube ??
作者: lanzk    时间: 2012-12-12 00:15

回复 29# ngibo1278


   请问怎么装cmake?
作者: zrpanda    时间: 2012-12-31 19:32

回复 1# admin


   评论从头看到尾,不敢升级啊。现在挺想用PHP5.3.8的。作者大大。现在5.4都出来。5.3.x系列稳定版也不少。要不更新下RPM包。这样感觉安全点。DZ 等几个主流也支持5.3.X系列了。等作者大大升级RPM包。
作者: zrpanda    时间: 2013-1-9 13:20

没有看到这个  ioncube  组件。没升级版本。也没有看到。探针提示是  X 、
作者: admin    时间: 2013-1-9 13:25

这个升级没包含ioncube的,要ioncube要自行安装就可以
作者: myfire2008    时间: 2013-1-13 17:09

回复 54# admin


  阿里云主机升级使用代码出错。错误代码如下

  1. make: *** No rule to make target `clean'.  Stop.
  2. loading cache ./config.cache
  3. checking for Cygwin environment... no
  4. checking for mingw32 environment... no
  5. checking for egrep... grep -E
  6. checking for a sed that does not truncate output... /bin/sed
  7. checking host system type... x86_64-unknown-linux-gnu
  8. checking target system type... x86_64-unknown-linux-gnu
  9. checking for gcc... no
  10. checking for cc... no
  11. configure: error: no acceptable cc found in $PATH
  12. configure err
复制代码



求正面解决
作者: admin    时间: 2013-1-13 19:00

configure: error: no acceptable cc found in $PATH
作者: imgg    时间: 2013-1-18 14:23

升级php 5.3时出现:
/root/php-5.3.17/sapi/cli/php: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
make: *** [ext/phar/phar.php] Error 127
make err

重启后还是出这个错,请老大帮忙,谢谢!
作者: dxhuii    时间: 2013-1-24 04:07

回复 10# admin

怎么用回5.2版本呢
作者: henglimin    时间: 2013-1-24 16:04

(1146) Table '数据库名.fallsatlas' doesn't exist
select count(lid) from fallsatlas where tid=1255
升级到5.3后打开DZX2.5的贴子里提这样了。
作者: eyunan    时间: 2013-1-26 18:00

我安装这个帖子做了相应升级,都成功了。然后我按照以下方法增加pdo-mysql,安装成功,也没报错,就是安装程序时,还是提示缺少这个模块。

wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz
tar zxvf PDO_MYSQL-1.0.2.tgz
cd PDO_MYSQL-1.0.2
/www/wdlinux/php/bin/phpize
./configure --with-php-config=/www/wdlinux/php/bin/php-config --with-pdo-mysql=/www/wdlinux/mysql
make
make install

增加到配置文件里
# vi /www/wdlinux/etc/php.ini
在最后加入
extension=pdo_mysql.so

然后重起web服务,如
service httpd restart
service nginxd restart
作者: eyunan    时间: 2013-1-26 18:02

我安装这个帖子做了相应升级,都成功了。然后我按照以下方法增加pdo-mysql,安装成功,也没报错,就是安装程序时,还是提示缺少这个模块。 之前是nginx+ap,我后台换成了ap后再添加模块的!

wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz
tar zxvf PDO_MYSQL-1.0.2.tgz
cd PDO_MYSQL-1.0.2
/www/wdlinux/php/bin/phpize
./configure --with-php-config=/www/wdlinux/php/bin/php-config --with-pdo-mysql=/www/wdlinux/mysql
make
make install

增加到配置文件里
# vi /www/wdlinux/etc/php.ini
在最后加入
extension=pdo_mysql.so

然后重起web服务,如
service httpd restart
service nginxd restart
作者: wulali    时间: 2013-1-26 18:06

本帖最后由 wulali 于 2013-1-26 18:07 编辑
我安装这个帖子做了相应升级,都成功了。然后我按照以下方法增加pdo-mysql,安装成功,也没报错,就是安装程 ...
eyunan 发表于 2013-1-26 18:02

检查一下php.ini里的有没有extension_dir=/www/wdlinux/php/lib/php/extensions/no-debug-non-zts-20090626这句
没有的话,加上或者修改一下,然后重启web服务即可
作者: eyunan    时间: 2013-1-26 18:07

我安装这个帖子做了相应升级,都成功了。然后我按照以下方法增加pdo-mysql,安装成功,也没报错,就是安装程序时,还是提示缺少这个模块。 之前是nginx+ap,我后台换成了ap后再添加模块的!

wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz
tar zxvf PDO_MYSQL-1.0.2.tgz
cd PDO_MYSQL-1.0.2
/www/wdlinux/php/bin/phpize
./configure --with-php-config=/www/wdlinux/php/bin/php-config --with-pdo-mysql=/www/wdlinux/mysql
make
make install

增加到配置文件里
# vi /www/wdlinux/etc/php.ini
在最后加入
extension=pdo_mysql.so

然后重起web服务,如
service httpd restart
service nginxd restart
作者: eyunan    时间: 2013-1-26 18:15

我安装这个帖子做了相应升级,都成功了。然后我按照以下方法增加pdo-mysql,安装成功,也没报错,就是安装程序时,还是提示缺少这个模块。 之前是nginx+ap,我后台换成了ap后再添加模块的!

wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz
tar zxvf PDO_MYSQL-1.0.2.tgz
cd PDO_MYSQL-1.0.2
/www/wdlinux/php/bin/phpize
./configure --with-php-config=/www/wdlinux/php/bin/php-config --with-pdo-mysql=/www/wdlinux/mysql
make
make install

增加到配置文件里
# vi /www/wdlinux/etc/php.ini
在最后加入
extension=pdo_mysql.so

然后重起web服务,如
service httpd restart
service nginxd restart
作者: eyunan    时间: 2013-1-26 18:15

我安装这个帖子做了相应升级,都成功了。然后我按照以下方法增加pdo-mysql,安装成功,也没报错,就是安装程序时,还是提示缺少这个模块。 之前是nginx+ap,我后台换成了ap后再添加模块的!

wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz
tar zxvf PDO_MYSQL-1.0.2.tgz
cd PDO_MYSQL-1.0.2
/www/wdlinux/php/bin/phpize
./configure --with-php-config=/www/wdlinux/php/bin/php-config --with-pdo-mysql=/www/wdlinux/mysql
make
make install

增加到配置文件里
# vi /www/wdlinux/etc/php.ini
在最后加入
extension=pdo_mysql.so

然后重起web服务,如
作者: eyunan    时间: 2013-1-26 18:17

我安装这个帖子做了相应升级,都成功了。然后我按照以下方法增加pdo-mysql,安装成功,也没报错,就是安装程序时,还是提示缺少这个模块。 之前是nginx+ap,我后台换成了ap后再添加模块的!

wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz
tar zxvf PDO_MYSQL-1.0.2.tgz
cd PDO_MYSQL-1.0.2
/www/wdlinux/php/bin/phpize
./configure --with-php-config=/www/wdlinux/php/bin/php-config --with-pdo-mysql=/www/wdlinux/mysql
make
make install

增加到配置文件里
# vi /www/wdlinux/etc/php.ini
在最后加入
extension=pdo_mysql.so

然后重起web服务,如
作者: eyunan    时间: 2013-1-26 18:18

我安装这个帖子做了相应升级,都成功了。然后我按照以下方法增加pdo-mysql,安装成功,也没报错,就是安装程序时,还是提示缺少这个模块。 之前是nginx+ap,我后台换成了ap后再添加模块的!

wget http:// pecl.php.net/get/PDO_MYSQL-1.0.2.tgz
tar zxvf PDO_MYSQL-1.0.2.tgz
cd PDO_MYSQL-1.0.2
/www/wdlinux/php/bin/phpize
./configure --with-php-config=/www/wdlinux/php/bin/php-config --with-pdo-mysql=/www/wdlinux/mysql
make
make install

增加到配置文件里
# vi /www/wdlinux/etc/php.ini
在最后加入
extension=pdo_mysql.so

然后重起web服务,如
作者: eyunan    时间: 2013-1-26 18:20

电脑卡,点发表,一次发了这么多。
作者: eyunan    时间: 2013-1-26 18:22

回复 62# wulali


    好的,我试试,谢谢!
作者: eyunan    时间: 2013-1-26 18:29

回复 62# wulali


    有这么一句,也不行呢!
[Zend]
zend_extension = /www/wdlinux/Zend/lib/ZendGuardLoader.so
zend_loader.enable = 1
[eaccelerator]
extension_dir="/www/wdlinux/nginx_php/lib/php/extensions/no-debug-non-zts-20090626/"
extension="eaccelerator.so"
eaccelerator.shm_size="8"
eaccelerator.cache_dir="/www/wdlinux/eaccelerator_cache"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="3600"
eaccelerator.shm_prune_period="3600"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
extension=pdo_mysql.so
作者: wulali    时间: 2013-1-26 18:39

回复  wulali


    有这么一句,也不行呢!
[Zend]
zend_extension = /www/wdlinux/Zend/lib/ZendGu ...
eyunan 发表于 2013-1-26 18:29

你不是用apache吗?怎么extensions的目录写的是ngnix的PHP?
应该用extension_dir=/www/wdlinux/php/lib/php/extensions/no-debug-non-zts-20090626
作者: eyunan    时间: 2013-1-26 18:47

我换成了nginx 重新弄得。 我试试 把nginx_php 换成 php ,nginx_php 是我重新安装后系统自己默认的!
作者: eyunan    时间: 2013-1-26 18:59

回复 71# wulali


    还是不行 无效
作者: wulali    时间: 2013-1-26 19:26

本帖最后由 wulali 于 2013-1-26 19:35 编辑
我换成了nginx 重新弄得。 我试试 把nginx_php 换成 php ,nginx_php 是我重新安装后系统自己默认的!
eyunan 发表于 2013-1-26 18:47

你编译模块的时候用的是哪个?
你是不是切换为apache时编译模块的?那么你切换成ngnix时要再重新编译了(因为你只给apache的PHP添加了模块)
你可以看看/www/wdlinux/php/lib/php/extensions/no-debug-non-zts-20090626文件夹下有没有pdo_mysql.so这个文件?
p.s: 用A+N时,PHP用的是apache的PHP
作者: qq682907    时间: 2013-2-28 22:02

回复 12# ngibo1278


   我需要的mysql升级 居然在你的回复里 看到了  你的问题解决了没
作者: lover731214    时间: 2013-3-6 07:44

很棒呀!学习一下!!!
作者: 89331076    时间: 2013-4-23 11:41

升级后报错  libtool: link: `ext/mbstring/libmbfl/mbfl/mbfilter.lo' is not a valid libtool object
make: *** [libphp5.la] Error 1
make err
作者: 89331076    时间: 2013-4-23 12:11

升级成功后。如何使用5.3的PHP? 我看还是5.2的PHP啊!!!!!!!!!!
作者: admin    时间: 2013-4-24 09:22

哪里看还是5.2?
作者: longyue188    时间: 2013-5-5 13:49

什么时候能升级php5.3.3以上的呢?这样用nginx就能避免跨站了
作者: jamesyan    时间: 2013-5-31 21:27

wget http://down.wdlinux.cn/in/php_up53.sh
sh php_up53.sh
升级php5.3报错
virtual memory exhausted: Cannot allocate memory
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
make err
You have new mail in /var/spool/mail/root


请老师帮忙指点一下。

非常感谢。
作者: admin    时间: 2013-6-2 20:18

回复 82# dz1127


   还有这个限制?
作者: mingwd    时间: 2013-6-6 09:31

解压完成后就没有任何操作了 QQ截图20130606093026.jpg

图片附件: QQ截图20130606093026.jpg (2013-6-6 09:31, 108.53 KB) / 下载次数 9534
http://wdlinux.cn/bbs/attachment.php?aid=3067&k=2dcb9a8ea7b38e3499abdf2bb14e6a4f&t=1713550633&sid=2U2121


作者: mingwd    时间: 2013-6-6 09:34

QQ截图20130606093423.jpg 好像是因为php文件夹命名的原因

图片附件: QQ截图20130606093423.jpg (2013-6-6 09:34, 32.6 KB) / 下载次数 9513
http://wdlinux.cn/bbs/attachment.php?aid=3068&k=e1d42042208756a28e44545ae0958779&t=1713550633&sid=2U2121


作者: jacky6388    时间: 2013-6-6 16:39

安装错误,提示:
make: *** [ext/date/lib/parse_date.lo] ?.. 1
make err
升级MYSQL时,也有类似的错误提示,请问怎么解决?
[ 78%] Building CXX object sql/CMakeFiles/sql.dir/sql_yacc.cc.o
c++: ?..?..锛.凡?€姝?(绋.? cc1plus)
璇锋.浜や?浠藉.?寸.?..?ュ.?
?蜂?姝ラ.璇峰.瑙.<http://bugzilla.redhat.com/bugzilla&gt;?
make[2]: *** [sql/CMakeFiles/sql.dir/sql_yacc.cc.o] ?.. 1
make[1]: *** [sql/CMakeFiles/sql.dir/all] ?.. 2
make: *** [all] ?.. 2
make err
作者: 问题用户    时间: 2013-6-20 11:12

本帖最后由 问题用户 于 2013-6-20 11:13 编辑
eaccelerator也只要最新的0.9.6.1版本
安装
wget http://down.wdlinux.cn/in/eac0961_ins.sh
sh eac0961_ins.sh
admin 发表于 2012-10-7 19:19



    剪贴板-1.jpg
我是直接升级的PHP5.4,ZEND 安装正常,但升级EACCELERATOR时候出现这样的错误,请达人指教这个问题咋解?

图片附件: [make err] 剪贴板-1.jpg (2013-6-20 11:11, 152.1 KB) / 下载次数 9662
http://wdlinux.cn/bbs/attachment.php?aid=3109&k=d919dc8e545a9e83bff5426cc3e23594&t=1713550633&sid=2U2121


作者: kideny    时间: 2013-6-21 14:19

可以在后台的命令运行行,执行这个升级的命令吗?
作者: guoguo163    时间: 2013-6-28 19:05

gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
make err
作者: nanhil    时间: 2013-7-5 19:16

这种教程找了好久了
作者: idc008net    时间: 2013-7-18 17:46

路过。 支持一下!!!!
作者: 一千零三    时间: 2013-7-21 03:27

gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
make err
You have new mail in /var/spool/mail/root

请教该怎么办?
作者: andy15703166    时间: 2013-8-10 17:39

升级报错!!!!失败!!!报错如下:
111.png

  1. /root/php-5.3.17/ext/iconv/iconv.c: In function ‘zm_startup_miconv’:
  2. /root/php-5.3.17/ext/iconv/iconv.c:254: 错误:‘_libiconv_version’ 未声明 (在此函数内第一次使用)
  3. /root/php-5.3.17/ext/iconv/iconv.c:254: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
  4. /root/php-5.3.17/ext/iconv/iconv.c:254: 错误:所在的函数内只报告一次。)
  5. make: *** [ext/iconv/iconv.lo] 错误 1
  6. make err
复制代码



请问老大,这个怎么解决?????
万分感谢,阿门!!!!!

图片附件: 111.png (2013-8-10 17:39, 41.15 KB) / 下载次数 6443
http://wdlinux.cn/bbs/attachment.php?aid=3399&k=4667f145465a13d6497167db3abd0fd4&t=1713550633&sid=2U2121


作者: zhushanquan    时间: 2013-8-30 17:38

升级不成功,阿里云EMC系统是CentOS 6.3 64位
QQ图片20130830171826.jpg

图片附件: QQ图片20130830171826.jpg (2013-8-30 17:36, 122.85 KB) / 下载次数 6038
http://wdlinux.cn/bbs/attachment.php?aid=3545&k=b9f4e6a8c36757054f6ea6e443396e80&t=1713550633&sid=2U2121


作者: yyqdwl    时间: 2013-9-23 10:23

老大给的三个升级都提示OK了,phpinfo查看也正常 E6@Q$RWPYIHNZ{X%KME@66S.jpg ,但是打开网站后台时候就提示 Zend Guard Run-time support missing!

图片附件: [phpinfo] E6@Q$RWPYIHNZ{X%KME@66S.jpg (2013-9-23 10:22, 24.85 KB) / 下载次数 5986
http://wdlinux.cn/bbs/attachment.php?aid=3650&k=6d7d49b5d85d376e57d42522e91ec7f5&t=1713550633&sid=2U2121


作者: tibbs    时间: 2013-10-18 19:13

敢不敢用 PHP.NET 的源啊 ,用你自己的源速度惨不忍睹
http://cn2.php.net/get/php-5.3.17.tar.gz/from/a/mirror
作者: dangfa    时间: 2013-10-27 09:59

一次性升级结束,很顺利!
感谢楼主
作者: NovRain    时间: 2013-12-2 09:57

升级以后提示

virtual memory exhausted: Cannot allocate memory
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1

请问如何解决!
作者: wynmhao    时间: 2013-12-3 15:14

升级后,打开网站后台提示
Zend Optimizer not installed

This file was encoded by the Zend Guard. In order to run it, please install the Zend Optimizer (available without charge), version 3.0.0 or later.
Seeing this message instead of the website you expected?
This means that this webserver is not configured correctly. In order to view this website properly, please contact the website's system administrator/webmaster with the following message:

The component "Zend Optimizer" is not installed on the Web Server and therefore cannot service encoded files. Please download and install the Zend Optimizer (available without charge) on the Web Server.

Note: Zend Technologies cannot resolve issues related to this message appearing on websites not belonging to Zend Technologies.
What is the Zend Optimizer?

The Zend Optimizer is one of the most popular PHP plugins for performance-improvement, and has been available without charge, since the early days of PHP 4. It improves performance by scanning PHP's intermediate code and passing it through multiple Optimization Passes to replace inefficient code patterns with more efficient code blocks. The replaced code blocks perform exactly the same operations as the original code, only faster.

In addition to improving performance, the Zend Optimizer also enables PHP to transparently load files encoded by the Zend Guard.

The Zend Optimizer is a free product available for download from Zend Technologies. Zend Technologies also developed the PHP scripting engine, known as the Zend Engine.
作者: d87904488    时间: 2013-12-8 12:36

不行啊,报错了
作者: xunxingzhe    时间: 2013-12-16 18:01

错误代码

centos 5.6 32位 128内存   不知道跟内存小有没有关系

gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla&gt; for instructions.
make: *** [ext/date/lib/parse_date.lo] Error 1
make err




欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/) Powered by Discuz! 7.2