Install php7 and yaf on Windows and Linux

Source: Internet
Author: User
Install php7 on Windows and Linux, install yaf on Windows and Linux, and install yaf

Windows

1. install php7 alpha on windows only need to download from the official website http://windows.php.net/qa/ and then directly configure it, if you don't you can download PHP Manager, directly configure it. In this case, you need to test. open the command line window and go to your php7 Directory. If php-m is displayed in the following window:

This time because you lack Visual C ++ Redistributable Package for Visual Studio 2015 you can click here to download the http://www.microsoft.com/zh-CN/download/details.aspx? Id = 46881, after installation.

2. windows Yaf: https://pecl.php.net/package/yaf/3.0.2/windows

Linux

Linux is installed the same as before, but you will find that php7 alpha is not the same as dev before, and the -- with-mysql option is missing, that is, this extension is not loaded, use mysqli and Pdo later

Download installer https://downloads.php.net from official /~ AB/

Wget https://downloads.php.net/~ab/php-7.0.0alpha1.tar.gz# Decompress tar zxf php-7.0.0alpha1.tar.gz # enter the 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 \ -- -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 \ -- -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 # then php-fpm.conf in your own configuration

Install YAF

# Download git clone https://github.com/laruence/php-yaf.gitcd php-yaf # View all branches, at this time, you will see the php7 branch git branch-agit checkout-B php7 origin/php7 # Start to compile and install/usr/local/php7/bin/phpize. /configure -- with-php-config =/usr/local/php7/bin/php-configmake & make install # configure vim/usr/local/php7/etc/php. ini # add the following line extension = directory address displayed after installation is complete/yaf. so

Add the following configuration in php. ini:

[Yaf]

Yaf. use_namespace = TRUE

Yaf. use_spl_autoload = TRUE

Original

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.