无标题文档
wdCP系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdCDN系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
wdOS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdDNS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
注册 发贴 提问 回复-必看必看 wddns免费智能 DNS 开通 本地或虚拟机使 用wdcp 一键包在mysql编 译时"卡住"
【300G高防】双线 无视攻击 wdcp官方技术支持/服务 阿里云8折优惠券 无敌云 腾讯云优惠中,现注册更有260代金额券赠送
返回列表 发帖
提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等

温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的
感谢分享,正好需要!

TOP

没金币了,试试看

TOP

升级时间好像挺长的呢。
dsvvsd

TOP

非常感谢楼主分享给我们

TOP

链接失效了,弄个ftp好点
初来乍到

TOP

看到上图的version is 5.6.9 说明升级成功了

TOP

:)我试试,有用再来回复

TOP

没有金币啊

TOP

需要金币所以回复需要金币所以回复需要金币所以回复需要金币所以回复

TOP

嘎嘎嘎嘎嘎嘎嘎嘎嘎

TOP

对不起,您的金币不足(小于 0 )。

TOP

厉害啊,大神很吊

TOP

怎么弄啊,纯小白不会啊

TOP

赞  就是原链接不能下载了
奥想

TOP

贴上了源码 大家自己 复制大sh 里吧  

  1. #!/bin/bash
  2. # PHP 5.6.9 update scripts

  3. if [ ! $1 ];then
  4.         Ver=5.6.9
  5. else
  6.         Ver=$1
  7. fi

  8. Debugfile=20121212

  9. echo "THANK YOU FOR USING UPDATE SCRIPT"
  10. echo "YOU ARE GOING TO UPDATE YOUR PHP TO ${Ver}"
  11. echo "YOU CAN JUST HAVE A REST"
  12. echo "IT MAY TAKE A LOT OF TIME"
  13. echo
  14. #read -p "PRESS ENTER IF YOU REALLY WANT TO UPDATE"
  15. read -p "DO YOU REALLY WANT TO UPDATE? (Y/N)" yn
  16. if [ "$yn" == "Y" ] || [ "$yn" == "y" ]; then
  17.         echo "PHP IS NOW UPDATING!"
  18. else
  19.         exit
  20. fi
  21. echo
  22. echo "-------------------------------------------------------------"
  23. echo

  24. ###yum
  25. yum install -y libmcrypt-devel libjpeg-devel libpng-devel freetype-devel curl-devel openssl-devel libxml2-devel zip unzip

  26. ###
  27. if [ ! -f php-${Ver}.tar.gz ];then
  28.         wget -c http://us1.php.net/distributions/php-${Ver}.tar.gz
  29. fi
  30. if [ ! -f iconv_ins.sh ];then
  31.         wget -c http://down.wdlinux.cn/in/iconv_ins.sh
  32.         sh iconv_ins.sh
  33. fi

  34. ###
  35. if [ -f /www/wdlinux/mysql/lib/libmysqlclient.so.18 ];then
  36.         if [ -d /usr/lib64 ];then
  37.                 LIBNCU="/usr/lib64"
  38.         else
  39.                 LIBNCU="/usr/lib"
  40.         fi
  41.         ln -sf /www/wdlinux/mysql/lib/libmysqlclient.so.18 $LIBNCU
  42. fi

  43. tar zxvf php-${Ver}.tar.gz
  44. cd php-${Ver}
  45. if [ -d /www/wdlinux/apache_php ];then
  46. echo "START CONFIGURING PHP ON NGINX"
  47. sleep 3
  48. make clean
  49.         ./configure --prefix=/www/wdlinux/apache_php-${Ver} --with-config-file-path=/www/wdlinux/apache_php-${Ver}/etc --with-iconv=/usr --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt=/usr --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-ftp --enable-sockets --enable-zip --with-apxs2=/www/wdlinux/apache/bin/apxs --with-mysqli=/www/wdlinux/mysql/bin/mysql_config --with-pdo-mysql=/www/wdlinux/mysql --enable-opcache --enable-bcmath --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd
  50. [ $? != 0 ] && echo "NO! CONFIGURE ERROR! TRY AGAIN OR ASK IN THE BBS! :(" && exit
  51. echo "START MAKE"
  52. sleep 3
  53. make
  54. [ $? != 0 ] && echo "NO! MAKE ERROR! TRY AGAIN OR ASK IN THE BBS! :(" && exit
  55. echo "START MAKE INSTALL"
  56. sleep 3
  57. make install
  58. [ $? != 0 ] && echo "NO! MAKE INSTALL ERROR! TRY AGAIN OR ASK IN THE BBS! :(" && exit
  59. cp php.ini-production /www/wdlinux/apache_php-${Ver}/etc/php.ini
  60. sed -i 's/short_open_tag = Off/short_open_tag = On/g' /www/wdlinux/apache_php-${Ver}/etc/php.ini
  61. rm -f /www/wdlinux/apache_php
  62. ln -sf /www/wdlinux/apache_php-${Ver} /www/wdlinux/apache_php
  63. if [ ! -d /www/wdlinux/apache_php-${Ver}/lib/php/extensions ];then
  64.         mkdir -p /www/wdlinux/apache_php-${Ver}/lib/php/extensions/no-debug-zts-${Debugfile}
  65.         ln -sf /www/wdlinux/apache_php-${Ver}/lib/php/extensions/no-debug-zts-${Debugfile} /www/wdlinux/apache_php-${Ver}/lib/php/extensions/no-debug-non-zts-${Debugfile}
  66. fi
  67. service httpd restart
  68. fi

  69. if [ -d /www/wdlinux/nginx_php ];then
  70. echo "START CONFIGURING PHP ON APACHE"
  71. sleep 3
  72. make clean
  73.         ./configure --prefix=/www/wdlinux/nginx_php-${Ver} --with-config-file-path=/www/wdlinux/nginx_php-${Ver}/etc --with-iconv=/usr --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt=/usr --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-ftp --enable-sockets --enable-zip --enable-fpm --with-mysqli=/www/wdlinux/mysql/bin/mysql_config --with-pdo-mysql=/www/wdlinux/mysql --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd
  74. [ $? != 0 ] && echo "NO! CONFIGURE ERROR! TRY AGAIN OR ASK IN THE BBS! :(" && exit
  75. echo "START MAKE"
  76. sleep 3
  77. make
  78. [ $? != 0 ] && echo "NO! MAKE ERROR! TRY AGAIN OR ASK IN THE BBS! :(" && exit
  79. echo "START MAKE INSTALL"
  80. sleep 3
  81. make install
  82. [ $? != 0 ] && echo "NO! MAKE INSTALL ERROR! TRY AGAIN OR ASK IN THE BBS! :(" && exit
  83. cp php.ini-production /www/wdlinux/nginx_php-${Ver}/etc/php.ini
  84. sed -i 's/short_open_tag = Off/short_open_tag = On/g' /www/wdlinux/nginx_php-${Ver}/etc/php.ini
  85. service php-fpm stop
  86. rm -f /www/wdlinux/nginx_php
  87. ln -sf /www/wdlinux/nginx_php-${Ver} /www/wdlinux/nginx_php
  88. cp /www/wdlinux/nginx_php-${Ver}/etc/php-fpm.conf.default /www/wdlinux/nginx_php-${Ver}/etc/php-fpm.conf
  89. sed -i 's/user = nobody/user = www/g' /www/wdlinux/nginx_php/etc/php-fpm.conf
  90. sed -i 's/group = nobody/group = www/g' /www/wdlinux/nginx_php/etc/php-fpm.conf
  91. sed -i 's/;pid =/pid =/g' /www/wdlinux/nginx_php/etc/php-fpm.conf
  92. cp -f sapi/fpm/init.d.php-fpm /www/wdlinux/init.d/php-fpm
  93. chmod 755 /www/wdlinux/init.d/php-fpm
  94. if [ ! -d /www/wdlinux/nginx_php-${Ver}/lib/php/extensions ];then
  95.         mkdir -p /www/wdlinux/nginx_php-${Ver}/lib/php/extensions/no-debug-zts-${Debugfile}
  96.         ln -sf /www/wdlinux/nginx_php-${Ver}/lib/php/extensions/no-debug-zts-${Debugfile} /www/wdlinux/nginx_php-${Ver}/lib/php/extensions/no-debug-non-zts-${Debugfile}
  97. fi
  98. fi
  99. cd ..
  100. rm -rf php-${Ver}/
  101. rm -rf php-${Ver}.tar.gz
  102. rm -rf iconv_ins.sh
  103. echo
  104. echo "------------------------------------------------------"
  105. echo "PHP UPDATE FINISH! :D"
  106. echo "NOW YOUR PHP VERSION IS ${Ver}!"
  107. echo "THANK YOU FOR USING"
  108. echo
  109. echo "WDCP (C) COPYRIGHT"
  110. echo
  111. echo "PS: I THINK YOU NEED RESTART SERVER AFTER UPDATE."
  112. echo
复制代码
奥想

TOP

返回列表