Install PHP7 on Windows and Linux and install YAF
Windows
1.windows Install PHP7 alpha only need to download from official website http://windows.php.net/qa/and then configure directly can, if you do not you can download PHP Manager, directly configured on it. This time you need to test, open the Command Line window, and then to your PHP7 directory, php-m if the following window pops up
This time because you are missing Visual C + + redistributable Package for Visual Studio 2015 you can click here to download http://www.microsoft.com/zh-CN/download/ details.aspx?id=46881, it will be ready after installation.
Version 2.windows yaf download address: https://pecl.php.net/package/yaf/3.0.2/windows
Linux
Linux is installed as before, but you will find that PHP7 alpha is not the same as the previous dev, with less--with-mysql options, i.e. not loading this extension, and then using Mysqli and Pdo.
Download the installation package from the official https://downloads.php.net/~ab/
wget https://downloads.php.net/~ab/php-7.0.0alpha1.tar.gz# Unzip the tar zxf php-7.0.0alpha1.tar.gz# into the catalog CD php-7.0.0alpha1# CONFIGURE--PREFIX=/USR/LOCAL/PHP7 \--with-config-file-path=/usr/local/php7/etc \--enable-fpm \--with-fpm-user=www \--with-fpm-group=www \--with-mysqli=/usr/local/mysql/bin/mysql_config \--with-pdo-mysql=/usr/local/mysql/\-- With-iconv-dir \--with-freetype-dir \--with-jpeg-dir \--with-png-dir \--with-zlib \--with-libxml-dir \-- Disable-rpath \--enable-bcmath \--enable-shmop \--enable-sysvsem \--enable-inline-optimization \--with-curl \-- Enable-mbregex \--enable-mbstring \--with-mcrypt \--enable-ftp \--with-gd \--enable-gd-native-ttf \--with-openssl \-- With-mhash \--enable-pcntl \--enable-sockets \--with-xmlrpc \--enable-zip--enable-soap \--without-pear \-- With-gettext \--disable-fileinfo \--enable-maintainer-zts# Compile and install make zend_extra_libs= '-liconv ' && make install #配置cp SAPI/FPM/INIT.D.PHP-FPM/ETC/RC.D/INIT.D/PHP7-FPMCP PHP.INI-PRODUCTION/USR/LOCAL/PHP7/ETC/PHP.INi# then under their own configuration php-fpm.conf
Installing YAF
#下载git Clone Https://github.com/laruence/php-yaf.gitcd php-yaf# View all branches, you'll see PHP7 's branch git branch-agit checkout-b php7 origin/php7# start compiling the installation/usr/local/php7/bin/phpize./configure--with-php-config=/usr/local/php7/bin/php-configmake && make install# configuration Vim/usr/local/php7/etc/php.ini #加入如下这行extension = Directory address displayed when installation is complete/yaf.so
Add the following configuration in php.ini
[YAF]
Yaf.use_namespace = TRUE
Yaf.use_spl_autoload = TRUE
Blog from the original to self: http://www.widuu.com/archives/06/1209.html