博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Linux——搭建PHP开发环境第二步:PHP
阅读量:5816 次
发布时间:2019-06-18

本文共 2790 字,大约阅读时间需要 9 分钟。

原文链接:

#####  编译安装 ####

[root@localhost ~]# yum install libxml2-devel curl-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel net-snmp net-snmp-devel php-mcrypt  libmcrypt  libmcrypt-devel  [root@localhost src]# wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz[root@localhost src]# tar zxvf libiconv-1.14.tar.gz[root@localhost src]# cd libiconv-1.14[root@localhost libiconv-1.14]# ./configure --prefix=/usr/local/php/libiconv[root@localhost libiconv-1.14]# make && make install  [root@localhost src]# wget http://nchc.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz[root@localhost src]# tar zxvf libmcrypt-2.5.8.tar.gz[root@localhost src]# cd libmcrypt-2.5.8[root@localhost libmcrypt-2.5.8]# ./configure[root@localhost libmcrypt-2.5.8]# make && make install  [root@localhost libltdl]# /sbin/ldconfig && cd libltdl/[root@localhost libltdl]# ./configure --enable-ltdl-install[root@localhost libltdl]# make && make install  [root@localhost src]# wget http://nchc.dl.sourceforge.net/project/mhash/mhash/0.9.9.9/mhash-0.9.9.9.tar.gz[root@localhost src]# tar zxvf mhash-0.9.9.9.tar.gz[root@localhost src]# cd mhash-0.9.9.9[root@localhost mhash-0.9.9.9]# ./configure[root@localhost mhash-0.9.9.9]# make && make install [root@localhost src]# wget http://nchc.dl.sourceforge.net/project/mcrypt/MCrypt/2.6.8/mcrypt-2.6.8.tar.gz[root@localhost src]# tar zxvf mcrypt-2.6.8.tar.gz[root@localhost src]# cd mcrypt-2.6.8[root@localhost mcrypt-2.6.8]# /sbin/ldconfig && export LD_LIBRARY_PATH=/usr/local/lib: LD_LIBRARY_PATH[root@localhost mcrypt-2.6.8]# ./configure [root@localhost mcrypt-2.6.8]# make && make install  [root@localhost src]# wget http://cn2.php.net/distributions/php-5.6.15.tar.gz[root@localhost src]# tar zxvf php-5.6.15.tar.gz[root@localhost src]# cd php-5.6.15 [root@localhost php-5.6.15]# ./configure --prefix=/usr/local/php \--enable-fpm \--with-mysql=mysqlnd \--with-mysqli=mysqlnd \--with-pdo-mysql=mysqlnd \--with-gd \--with-jpeg-dir \--with-png-dir \--with-pear \--with-freetype-dir \--with-zlib \--with-libxml-dir \--with-iconv-dir \--with-xmlrpc \--with-mhash \--with-mcrypt \--with-curl \--with-openssl \--with-snmp \--with-gettext \--enable-pdo \--enable-mbstring \--enable-ctype \--enable-simplexml \--enable-ftp \--enable-sockets \--enable-gd-native-ttf \--enable-sysvsem \--enable-exif \--enable-sysvshm \--enable-xml \--enable-dom \--enable-simplexml \--enable-shmop \--enable-zip \--enable-mbregex \--enable-bcmath \--enable-inline-optimization \--enable-soap [root@localhost php-5.6.15]# make && make install [root@localhost php-5.6.15]# cp php.ini-production /usr/local/php/etc/php.ini[root@localhost ~]# ln -s /usr/local/php/bin/* /usr/sbin/

  

//查看版本

php -v

转载于:https://www.cnblogs.com/xj76149095/p/5971513.html

你可能感兴趣的文章
3个概念,入门 Vue 组件开发
查看>>
没有JS的前端:体积更小、速度更快!
查看>>
数据指标/表现度量系统(Performance Measurement System)综述
查看>>
GitHub宣布推出Electron 1.0和Devtron,并将提供无限制的私有代码库
查看>>
论模式在领域驱动设计中的重要性
查看>>
Spring Web Services 3.0.4.RELEASE和2.4.3.RELEASE发布
查看>>
有关GitHub仓库分支的几个问题
查看>>
云原生的浪潮下,为什么运维人员适合学习Go语言?
查看>>
EAServer 6.1 .NET Client Support
查看>>
锐捷交换机密码恢复(1)
查看>>
Kali linux virtualbox rc=1908 错误解决办法
查看>>
linux软件包管理之三(源代码安装)
查看>>
数据库三范式是什么?
查看>>
[转载]设置Ubuntu自动连接无线,无须再输入密钥环和无线密码
查看>>
九叔Xen App测试报告
查看>>
Apache配置
查看>>
Ext gridPanel 单元格数据的渲染
查看>>
Android SDK 的下载代理
查看>>
Method Swizzling对Method的要求
查看>>
佛祖保佑,永不宕机
查看>>