php 源码编译
Posted 牛顿的小脑
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php 源码编译相关的知识,希望对你有一定的参考价值。
----------------------
1下载
wget http://sg2.php.net/get/php-5.6.35.tar.gz/from/this/mirror
2.
./configure --help
./configure --enable-so
./configure --enable-fpm --with-mcrypt --enable-mbstring --with-openssl --with-mysql --with-mysql-sock --with-gd --with-jpeg-dir=/usr/lib --enable-gd-native-ttf --with-pdo-mysql --with-libxml-dir=/usr/lib --with-mysqli=/usr/bin/mysql_config --with-curl --enable-zip --enable-sockets --with-zlib --enable-exif --enable-ftp --with-iconv --with-gettext --enable-gd-native-ttf --with-freetype-dir=/usr --prefix=/opt/PHP-5.6 --with-config-file-path=/opt/PHP-5.6/etc --with-fpm-user=www-data --with-fpm-group=www-data --enable-fpm
apt-get install libxml2-dev
apt-get install libcurl4-openssl-dev pkg-config
apt-get install libssl-dev libsslcommon2-dev
sudo apt-get install libjpeg-turbo8-dev
sudo apt-get install libpng-dev
apt install libfreetype6-dev
apt-get install libt1-dev
apt-get install php5-mcrypt
apt install libmcrypt-dev
apt install mysql-server-5.7
sudo apt-get install libmysqlclient-dev
3. 启动php-fpm
cp ../etc/php-fpm.conf.default ../etc/php-fpm.conf
./php-fpm
--------------------------------------------------------------------------------------------------------------------
cd
以上是关于php 源码编译的主要内容,如果未能解决你的问题,请参考以下文章