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 YAFPHP Technology widuu 2 months ago (06-15) 126 views 0 Comments Windows

1.windows on the installation php7 alpha only need to download from the official website http://windows.php.net/qa/and then directly configure it can, if you do not you can download the PHP Manager, directly configured on it. 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

At 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 ready.

Linux

Linux is installed as before, but you will find   PHP7 Alpha   is not as old as Dev, less   --with-mysql   option, that is, do not load this extension, and then use   mysqli   and   Pdo bar

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# configure CP sapi/fpm/ INIT.D.PHP-FPM/ETC/RC.D/INIT.D/PHP7-FPMCP php.ini-production/usr/local/php7/etc/php.ini# and then under your own configuration php-fpm.conf

Installing YAF

#下载git clone https://github.com/laruence/php-yaf.gitcd php-yaf#查看所有分支,这时候你就看到了php7的分支git branch -agit checkout -b php7 origin/php7#开始编译安装/usr/local/php7/bin/phpize./configure --with-php-config=/usr/local/php7/bin/php-configmake && make install#配置vim /usr/local/php7/etc/php.ini #加入如下这行extension = 安装完成显示的目录地址/yaf.so

OK, here we are.

Install PHP7 Alpha on Windows and Linux and install YAF

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.