码迷,mamicode.com
首页 > Web开发 > 详细

安装php7.0.0.6 + yaf 3 + php-fpm

时间:2016-05-19 19:02:32      阅读:241      评论:0      收藏:0      [点我收藏+]

标签:

;linux version
Linux zy-pc 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:15 UTC 2016 i686 i686 i686 GNU/Linux


php source github
https://github.com/php/php-src

wget --> http://blog.chinaunix.net/uid-25324849-id-3198560.html
 
wget -c --no-check-certificate -O php7-src-master.zip https://codeload.github.com/php/php-src/zip/master

;安装依赖
sudo apt-get install libxml2-dev
sudo apt-get install openssl 
sudo apt-get install libssl-dev
apt-get install curl
apt-get install libcurl4-gnutls-dev
sudo apt-get install libjpeg-dev
sudo apt-get install libpng-dev
sudo apt-get install libmcrypt-dev
sudo apt-get install libreadline6 libreadline6-dev
 
 
cd /usr/local/php

./configure --enable-fpm --enable-debug  --enable-opcache   --with-mysqli --with-pdo-mysql  //配置
make -j4  //编译
make install //安装

/**
php -v
技术分享

php -m
cp php.ini-development /usr/local/lib/php.ini


//安装yaf
cd /usr/local/php/ext/yaf
wget http://pecl.php.net/get/yaf-3.0.2.tgz

phpize //生成configure
./configure
make
make install                 or       cp ./modules/yaf.so /usr/local/lib/php/extensions/no-debug-non-zts-20151012/yaf.so

vi /usr/local/lib/php.ini
extension=yaf.so

//
php -m
看到yaf
技术分享

//php-fpm

php-fpm.conf.default  php-fpm.conf

cp  /usr/local/etc/php-fpm.d/www.conf.default /usr/local/etc/php-fpm.d/ www.conf

./php-fpm

netstat -anp|grep 9000


tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      23543/php-fpm.conf)

//vi /etc/profile
PATH=$PATH:/usr/local/bin
export PATH






















/*********************************************/


Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20151012/
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/php/man/man1/
Installing phpdbg binary:         /usr/local/bin/
Installing phpdbg man page:       /usr/local/php/man/man1/
Installing PHP CGI binary:        /usr/local/bin/
Installing PHP CGI man page:      /usr/local/php/man/man1/
Installing build environment:     /usr/local/lib/php/build/
Installing header files:           /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/php/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/lib/php/
[PEAR] Archive_Tar    - installed: 1.4.0
[PEAR] Console_Getopt - installed: 1.4.1
[PEAR] Structures_Graph- installed: 1.1.1
[PEAR] XML_Util       - installed: 1.3.0
[PEAR] PEAR           - installed: 1.10.1
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
/usr/local/php/build/shtool install -c ext/phar/phar.phar /usr/local/bin
ln -s -f phar.phar /usr/local/bin/phar
Installing PDO headers:           /usr/local/include/php/ext/pdo/

/^^^^

Installing shared extensions:     /usr/local/lib/php/extensions/debug-non-zts-20151012/
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/php/man/man1/
Installing PHP FPM binary:        /usr/local/sbin/
Installing PHP FPM config:        /usr/local/etc/
Installing PHP FPM man page:      /usr/local/php/man/man8/
Installing PHP FPM status page:   /usr/local/php/php/fpm/
Installing phpdbg binary:         /usr/local/bin/
Installing phpdbg man page:       /usr/local/php/man/man1/
Installing PHP CGI binary:        /usr/local/bin/
Installing PHP CGI man page:      /usr/local/php/man/man1/
Installing build environment:     /usr/local/lib/php/build/
Installing header files:           /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/php/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/lib/php/
[PEAR] Archive_Tar    - already installed: 1.4.0
[PEAR] Console_Getopt - already installed: 1.4.1
[PEAR] Structures_Graph- already installed: 1.1.1
[PEAR] XML_Util       - already installed: 1.3.0
[PEAR] PEAR           - already installed: 1.10.1
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
/usr/local/php/build/shtool install -c ext/phar/phar.phar /usr/local/bin
ln -s -f phar.phar /usr/local/bin/phar
Installing PDO headers:           /usr/local/include/php/ext/pdo/
                                                                  







安装php7.0.0.6 + yaf 3 + php-fpm

标签:

原文地址:http://www.cnblogs.com/jk0011/p/5509535.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!