首页 >后端开发 >php教程 >LNMP环境搭建-PHP篇

LNMP环境搭建-PHP篇

WBOY
WBOY原创
2016-06-23 13:29:10863浏览

一.源码安装
1.Configure-1

./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysql-sock=/tmp --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv-dir --with-zlib-dir --with-mcrypt=/usr/local/libmcrypt --enable-soap --enable-gd-native-ttf --enable-ftp --enable-mbstring --enable-exif --enable-zend-multibyte --disable-ipv6 --enable-fastcgi --enable-fpm --with-vpx-dir=/usr/local/gd2
make && make install

2.Configure-2

./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --datarootdir=/opt/data/php --enable-fpm --with-mysql --with-mysqli --with-zlib --enable-zip --with-gd --enable-mbstring --with-gd --with-mcrypt --with-jpeg-dir --with-freetype-dir --with-xmp-dir --with-mcrypt --with-mhash --with-bz2 --with-openssl

未完续待,要下班咯!

版权声明:本文为博主原创文章,未经博主允许不得转载|Copyright ©2011-2015, Kallen Ding, All Rights Reserved.

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn