---
title: "nginx php 配置"
author: "李俊良"
date: "2013-11-05T16:25:38Z"
tags: []
categories: ["移动开发"]
slug: "nginx-php"
draft: false
lastmod: "2013-11-05T16:25:38Z"
id: 1971323
url: "https://frosh.iteye.com/blog/1971323"
---

yum install libxml2-devel

yum install freetype-devel jpeg-devel libpng-devel 

yum install libmcrypt libltdl 

yum install libtool-ltdl-devel

yum install curl-devel

yum install mysql-devel

 

./configure --prefix=/usr/local/php5.3.27  --with-zlib --enable-mbstring --with-openssl --with-mysql --with-mysqli --with-mysql-sock --with-gd --with-jpeg-dir=/usr/lib --with-iconv --with-png-dir=/usr/local/lib/ --enable-gd-native-ttf --without-sqlite --enable-pdo --with-pdo-mysql --with-gettext --with-curl --with-pdo-mysql --enable-sockets --enable-bcmath --enable-xml --with-gettext --enable-zip  --enable-sysvmsg --enable-sysvsem --enable-exif --enable-fpm