Home > Backend Development > PHP Tutorial > PHP源码编译安装

PHP源码编译安装

WBOY
Release: 2016-06-20 12:37:50
Original
993 people have browsed it

PHP源码编译安装

不带参数编译安装

命令:

./configure --prefix=/usr/local/php --with-php-fpm

依赖:
* libxml2
可用模块:

[PHP Modules]
Core
ctype
date
dom
fileinfo
filter
hash
iconv
json
libxml
pcre
PDO
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter

带参数编译安装

命令:

./configure --prefix=/usr/local/php --with-fpm --with-curl=/usr/local/libcurl --with-gd --with-mysqli --with-pear --enable-sockets --with-zlib-dir=/usr/local/zlib --with-png-dir=/usr/local/libpng --with-jpeg-dir=/usr/local/libjpeg --with-mcrypt=/usr/local/libmcrypt --with-pdo-mysql

依赖:
* libxml2
* libpng
* libjpeg
* libmcrypt
* zlib
* libcurl

可用模块:

[PHP Modules]
Core
ctype
curl
date
dom
fileinfo
filter
gd
hash
iconv
json
libxml
mcrypt
mysqli
mysqlnd
pcre
PDO
pdomysql
pdosqlite
Phar
posix
Reflection
session
SimpleXML
sockets
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
zlib

编译安装memcached

依赖:
* libmemcached
* zlib
* autoconf

命令:

phpize
./configure --with-php-config=/usr/local/php/bin/php-config --with-zlib-dir=/usr/local/zlib --with-libmemcached-dir=/usr/local/libmemcached --disable-memcached-sasl
make && make install

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