码迷,mamicode.com
首页 > Web开发 > 详细

PHP编译安装

时间:2015-09-23 13:16:59      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:

http://www.oschina.net/question/17_10674

php编译安装参数详解

 

http://www.cnblogs.com/kristain/articles/3809243.html

php编译安装常见问题

 

 

1、下载

下载地址:http://php.net/downloads.php

2、编译安装

# ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/bin/mysql_config --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-ldap --with-ldap-sasl --with-xmlrpc --enable-zip --enable-soap --without-pear --with-zlib --enable-pdo --with-pdo-mysql
# make
# make install

3、配置nginx 支持php

//修改nginx配置文件,添加fastcgi支持

# vi /etc/nginx/nginx.conf
### /etc/nginx/nginx.conf
index index.php index.html index.htm;
//加入index.php location ~ \.php$ {   root /usr/share/nginx/html;   fastcgi_pass 127.0.0.1:9000;   fastcgi_index index.php;   fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name;   include fastcgi_params; }

 

 

PHP编译安装

标签:

原文地址:http://www.cnblogs.com/iamdoufu/p/4825390.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!