windows
1. To install php7 alpha on windows, you only need to download it from the official website http://windows.php.net/qa/ and configure it directly. If you don’t know how, you can download PHP Manager and configure it directly. At this time, you need to test, open the command line window, and then go to your php7 directory, if php -m pops up the following window
1111
At this time, because you lack the 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, and it will be fine after installation.
linux
Linux is installed as before, but you will find that php7 alpha is not the same as the previous dev, and the –with-mysql option is missing, that is, this extension will not be loaded, and mysqli and Pdo will be used in the future
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
tar zxf php-7.0.0alpha1.tar.gz
#Enter directory
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
#Configuration
cp sapi/fpm/init.d.php-fpm /etc/rc.d/init.d/php7-fpm
cp php.ini-production /usr/local/php7/etc/php.ini
#Then configure php-fpm.conf
Install YAF
#download
git clone https://github.com/laruence/php-yaf.git
cd php-yaf
#View all branches, then you will see the branch of php7
git branch -a
git checkout -b php7 origin/php7
#Start compiling and installing
/usr/local/php7/bin/phpize
./configure –with-php-cOnfig=/usr/local/php7/bin/php-config
make && make install
#Configuration
vim /usr/local/php7/etc/php.ini
#Add the following line
extension = The directory address displayed after the installation is complete /yaf.so
yaf-php7
OK, that’s all for now.