Brew Install php7.1

Source: Internet
Author: User
Tags install php php cli

Via Brew Install php7.1

The php.ini file can is found in:
/usr/local/etc/php/7.1/php.ini

???? Extensions????

If you have issues with custom extension compiling, ensure that is using the brew version, by Placing/usr/loca L/bin Before/usr/sbin in your PATH:

Path= "/usr/local/bin: $PATH"

PHP71 Extensions'll always be compiled against this PHP. Please install the them using--without-homebrew-php to enable compiling against system PHP.

???? PHP CLI????

If you wish-to-swap the PHP you have the command line, you should add the following to ~/.BASHRC, ~/.ZSHRC, ~/.profile o R your shell ' s equivalent configuration file:
Export Path= "$ (Brew--prefix homebrew/php/php71)/bin: $PATH"

???? Fpm????

To launch PHP-FPM on startup:
Mkdir-p ~/library/launchagents
Cp/usr/local/opt/php71/homebrew.mxcl.php71.plist ~/library/launchagents/
Launchctl load-w ~/library/launchagents/homebrew.mxcl.php71.plist

The control script is located at/usr/local/opt/php71/sbin/php71-fpm

OS X 10.8 and newer come with PHP-FPM pre-installed, to ensure is using the brew version you need to make sure/usr/l Ocal/sbin is before/usr/sbin in your PATH:

Path= "/usr/local/sbin: $PATH"

Also need to edit the plist to use the correct "UserName".

Please note that the plist is called ' homebrew-php.josegonzalez.php71.plist ' in old versions of this formula.

With the release of MacOS Sierra, the Apache module is now isn't built by default. If you want to build it on your system, you had to install PHP with the--WITH-HTTPD option. See the brew Options php71 for more details.

To has launchd start homebrew/php/php71 now and restart at login:
Brew Services Start homebrew/php/php71
==> Summary
?? /usr/local/cellar/php71/7.1.13_24:349 files, 39.8MB

Brew Install php7.1

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.