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
1111

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

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
#进入目录
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
#编译安装
Make zend_extra_libs= '-liconv ' && make install
#配置
CP SAPI/FPM/INIT.D.PHP-FPM/ETC/RC.D/INIT.D/PHP7-FPM
CP Php.ini-production/usr/local/php7/etc/php.ini
#然后在自己配置下php-fpm.conf
Install YAF
#下载
git clone https://github.com/laruence/php-yaf.git
CD PHP-YAF
#查看所有分支, that's when you see the branch of PHP7.
Git branch-a
git checkout-b php7 origin/php7
#开始编译安装
/usr/local/php7/bin/phpize
./configure--with-php-config=/usr/local/php7/bin/php-config
Make && make install
#配置
Vim/usr/local/php7/etc/php.ini
#加入如下这行
Extension = installation Complete the displayed directory address/yaf.so

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.