Install PHP7 Alpha on Windows and Linux and install YAF

Source: Internet
Author: User
Tags configuration php
Install PHP7 Alpha on Windows and Linux and install YAF

Windows

1.windows Install PHP7 alpha only need to download from official website http://windows.php.net/qa/and then configure directly can, if you do not you can download PHP Manager, directly configured on it. This time you need to test, open the Command Line window, and then to your PHP7 directory, php-m if the following window pops up

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, it will be ready after installation.

Linux

Linux is installed as before, but you will find that PHP7 alpha is not the same as the previous dev, with less--with-mysql options, i.e. not loading this extension, and then using 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 the tar zxf php-7.0.0alpha1.tar.gz# into the catalog 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 #配置cp SAPI/FPM/INIT.D.PHP-FPM/ETC/RC.D/INIT.D/PHP7-FPMCP PHP.INI-PRODUCTION/USR/LOCAL/PHP7/ETC/PHP.INi# then under their own configuration php-fpm.conf 

Installing YAF

#下载git Clone Https://github.com/laruence/php-yaf.gitcd php-yaf# View all branches, you'll see PHP7 's branch git branch-agit checkout-b php7 origin/php7# start compiling the installation/usr/local/php7/bin/phpize./configure--with-php-config=/usr/local/php7/bin/php-configmake && make install# configuration Vim/usr/local/php7/etc/php.ini #加入如下这行extension = Directory address displayed when installation is complete/yaf.so

OK, here we are.

Blog from the original to self: http://www.widuu.com/archives/06/1209.html

  • 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.