首頁 >後端開發 >php教程 >LNMP环境搭建-PHP篇

LNMP环境搭建-PHP篇

WBOY
WBOY原創
2016-06-23 13:29:10864瀏覽

一.源码安装
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