Examples of installing PHP7 and installing YAF on Linux and Windows

Source: Internet
Author: User
Tags fpm ini git clone

1.windows Install PHP7 alpha only need to download from the official web http://windows.php.net/qa/then directly configure it, if you don't you can download PHP Manager, direct configuration can be. This time need to test, open the Command Line window, and then to your PHP7 directory, php-m if the following pop-up window

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, after installation is OK.


Linux is installed as before, but you will find that PHP7 alpha is not the same as the previous dev, less--with-mysql option, that is, do not load this extension, and then use Mysqli and PDO bar

Download installation package from the official https://downloads.php.net/~ab/

wget https://downloads.php.net/~ab/php-7.0.0alpha1.tar.gz
Tar zxf php-7.0.0alpha1.tar.gz
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-iconv-dir \
--with-freetype-dir \
--with-jpeg-dir \
--with-png-dir \
--with-zlib \
--with-libxml-dir \
--disable-rpath \
--enable-bcmath \
--enable-sysvsem \
--enable-inline-optimization \
--with-curl \
--enable-mbregex \
--enable-mbstring \
--with-mcrypt \
--with-mhash \
--enable-sockets \
--without-pear \
--with-gettext \
--disable-fileinfo \
Make zend_extra_libs= '-liconv ' && make install
CP Php.ini-production/usr/local/php7/etc/php.ini
Install YAF
git clone https://github.com/laruence/php-yaf.git
#查看所有分支, that's when you see the branch of PHP7.
Git branch-a
git checkout-b php7 origin/php7
Make && make install
Extension = installation Complete the displayed directory address/yaf.so

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.