分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 网页技术

PHP-5.6.22安装

发布时间:2023-09-06 01:13责任编辑:彭小芳关键词:PHP

查看系统及内核版本

[root@test88 ~]# cat /etc/redhat-release CentOS release 6.6 (Final)[root@test88 ~]# uname -rm2.6.32-504.el6.x86_64 x86_64

 安装epel源

rpm -ivh http://mirrors.aliyun.com/epel/epel-release-latest-6.noarch.rpm

 安装依赖包

yum install -y zlib-devel libxml2-devel libjpeg-devel libiconv-devel freetype-devel libpng-devel gd-devel curl-devel libxslt-devel mysql-devel \
libmcrypt-devel mhash mcryptwget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gztar zxf libiconv-1.14.tar.gzcd libiconv-1.14./configure --prefix=/usr/local/libiconvmakemake install

 编译安装php

[root@test88 libiconv-1.14]# wget http://mirrors.sohu.com/php/php-5.6.22.tar.gz[root@test88 libiconv-1.14]# tar xf php-5.6.22.tar.gz [root@test88 libiconv-1.14]# cd php-5.6.22./configure --prefix=/application/php-5.6.22 --with-mysql --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-iconv-dir=/usr/local/libiconv --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --with-gettext --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-fpm --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-soap --enable-short-tags --enable-static --with-xsl --with-fpm-user=nginx --with-fpm-group=nginx --enable-ftp --enable-opcache=nomakemake installln -s /application/php-5.6.22/ /application/phpcp php.ini-production /application/php/lib/php.inicd /application/php/etc/cp php-fpm.conf.default php-fpm.conf/application/php/sbin/php-fpmnetstat -lntup|grep php-fpm

PHP-5.6.22安装

原文地址:http://www.cnblogs.com/Peter2014/p/7589075.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved