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, php -m. If the following window pops up
1111
This is 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, just install it.
linux
Linux is installed as before, but you will find that php7 alpha is not the same as the previous dev. The --with-mysql option is missing, which means that this extension is not loaded. In the future, use 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
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
#Configure
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 install YAF under your own configuration php-fpm.conf
#Download
git clone https://github.com/laruence/php -yaf.git
cd php-yaf
#View all branches, then you will see the php7 branch
git branch -a
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
#Configure
vim /usr/local/php7/etc/php.ini
#Add the following line
extension = the directory address/yaf.so displayed after the installation is complete
yaf-php7
OK, that’s all.