编译安装php5.2 with php-fpm方法介绍

php源码http://php.net/releases/index.php
php-fpm补丁http://php-fpm.org
版本不要弄错了,下载完成后打上补丁

 代码如下 复制代码

./configure –prefix=/usr/local/php -with-config-file-path=/usr/local/php/etc -with-mysql=/usr/bin/mysql -with-mysqli=/usr/bin/mysql_config -with-openssl -enable-fpm -enable-mbstring -with-freetype-dir -with-jpeg-dir -with-png-dir -with-zlib-dir -with-libxml-dir=/usr -enable-xml -with-mhash -with-mcrypt -enable-pcntl -enable-sockets  -with-bz2 -with-curl -with-curlwrappers -enable-mbregex -with-gd -enable-gd-native-ttf -enable-zip -enable-soap -with-iconv -enable-bcmath -enable-shmop -enable-sysvsem -enable-inline-optimization -with-ldap -with-ldap-sasl -enable-pdo -with-pdo-mysql -enable-fastcgi

编译链接的时候可能出现问题,比如 /usr/bin/ld: cannot find -lltld,缺少/usr/lib/libltdl.so,添加epel源,yum install libtool-ltdl-devel就可以了,之后make clean重新编译就OK了。
这种方式安装的扩展都是集成到php.exe中的。

时间: 2024-09-05 05:32:24

编译安装php5.2 with php-fpm方法介绍的相关文章

CendOS 6.5 上编译安装PHP 5/PHP 7的方法介绍

首先安装一些依赖的软件包: yum install libmcrypt.x86_64 libpng.x86_64 libjpeg-turbo.x86_64 \ libxml2.x86_64 readline.x86_64 libxml2-devel.x86_64 openssl.x86_64 \ openssl-devel.x86_64 libcurl-devel.x86_64 libjpeg-turbo-devel.x86_64 \ libwebp-devel.x86_64 libpng-de

Ubuntu12下编译安装PHP5.3开发环境

 本文给大家分享的是在Ubuntu12下编译安装PHP5.3开发环境的方法和步骤,十分的细致,推荐给大家,有需要的小伙伴们可以参考下.     最近项目遇到一个坑爹的事情,一个源码必须使用PHP5.3,但是现在Ubuntu上自带的版本是5.4,降级之后会出各种奇怪的问题,最后没办法,只能一步步在Ubuntu12.04server上自己编译PHP5.3,比繁琐,共享之. 安装Apache2.2   代码如下: sudo apt-get install apache2 -y   然后安装MySQL5

编译安装php5.2.0时出错的解决方案

编译安装php5.2.0时出错解决方案 1.错误信息...................如下 checking for mcrypt support... no checking for mhash support... no checking whether to include mime_magic support... no checking for MING support... no checking for mSQL support... no checking for MSSQL

Centos 6.5系统下编译安装PHP 7.0.13的方法_php基础

PHP7.0正式版也出来了,今天编译安装了一下,写下安装步骤,我是在centos6.6 环境中编译的,下面是详细的安装步骤 环境依赖 yum install gcc gcc-c++ libxml2 libxml2-python libxml2-devel -y 下载 wget http://cn2.php.net/distributions/php-7.0.13.tar.gz 解压 tar -zxvf php-7.0.13.tar.gz cd php-7.0.13 ./configure --e

MySql5.7.11编译安装及修改root密码的方法小结_Mysql

推荐阅读: Mysql5.7忘记root密码及mysql5.7修改root密码的方法 Mac 安装和卸载 Mysql5.7.11 的方法 系统是cenos6.7 64位的,默认mysql5.7.11下载到/usr/local/src,安装目录在/app/local/mysql目录下,mysql数据放置目录/app/local/data.mysql从5.1后采用cmake方式编译安装,所以要先编译安装cmake工具,也可以采用yum方式安装cmake.从mysql5.7开始编译安装需要boost库

苹果Mac虚拟机安装Win7系统的三种方法介绍

  苹果Mac虚拟机安装Win7系统的三种方法介绍          解决方法一: 1.我们这里以免费的虚拟机Virtual Box为例; 2.启动 Virtual Box 以后,点击窗口左上角的"新建"按钮; 3.接下来为虚拟取一个名称,可随意取.系统类型保持不变,版本在下拉列表中选择 Windows 7.点击"继续"按钮; 注:如果你安装的是 Windows 64 系统的话,在下拉列表中选择时,请选择 Windows 7 (64 bit). 4.然后为虚拟机分配

php编译安装常见错误大全和解决方法_linux shell

在CentOS编译PHP5的时候有时会遇到以下的一些错误信息,基本上都可以通过yum安装相应的库来解决.以下是具体的一些解决办法: 复制代码 代码如下: checking for BZip2 support- yes checking for BZip2 in default path- not found configure: error: Please reinstall the BZip2 distribution 解决方法:yum install bzip2-devel 复制代码 代码如

Ubuntu12编译安装PHP5.3步骤详解

Ubuntu12.04server上自己编译PHP5.3,比繁琐,共享之. 安装Apache2.2  代码如下 复制代码 sudo apt-get install apache2 -y 然后安装MySQL5.5  代码如下 复制代码 sudo apt-get install mysql-server-5.5 -y 接着就是编译依赖环境:  代码如下 复制代码  sudo apt-get install gcc g++ autoconf build-essential -y 相关的lib支持库:

Ubuntu12下编译安装PHP5.3开发环境_php技巧

最近项目遇到一个坑爹的事情,一个源码必须使用PHP5.3,但是现在Ubuntu上自带的版本是5.4,降级之后会出各种奇怪的问题,最后没办法,只能一步步在Ubuntu12.04server上自己编译PHP5.3,比繁琐,共享之. 安装Apache2.2 复制代码 代码如下: sudo apt-get install apache2 -y 然后安装MySQL5.5 复制代码 代码如下: sudo apt-get install mysql-server-5.5 -y 接着就是编译依赖环境: 复制代码