Home > Backend Development > PHP Tutorial > LNMP环境搭建-PHP篇

LNMP环境搭建-PHP篇

WBOY
Release: 2016-06-23 13:29:10
Original
869 people have browsed it

一.源码安装
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
Copy after login
make && make install
Copy after login

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
Copy after login

未完续待,要下班咯!

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template