Windows
1. Install php7 alpha on windows only need to download from the official website http://windows.php.net/qa/ and then directly configure it, if you don't you can download PHP Manager, directly configure it. In this case, you need to test. Open the command line window and go to your php7 Directory. If php-m is displayed in the following window:
This time because you lack Visual C ++ Redistributable Package for Visual Studio 2015 you can click here to download the http://www.microsoft.com/zh-CN/download/details.aspx? Id = 46881, after installation.
Linux
Linux is installed the same as before, but you will find that php7 alpha is not the same as dev before, and the -- with-mysql option is missing, that is, this extension is not loaded, use mysqli and Pdo later
Download installer https://downloads.php.net from official /~ AB/
Wget https://downloads.php.net /~ A/php-7.0.0alpha1.tar.gz
# Decompress
Tar zxf php-7.0.0alpha1.tar.gz
# Enter the 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 php-fpm.conf in your own configuration
Install YAF
# Download
Git clone https://github.com/laruence/php-yaf.git
Cd php-yaf
# View all the branches. Now you can see the php7 branch.
Git branch-
Git checkout-B php7 origin/php7
# Start compilation and installation
/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 = directory address displayed after installation is complete/yaf. so