Mac installation Php56

Source: Internet
Author: User
$ brew Install php56 \--without-snmp \--without-Apache \--with-debug \--with-fpm \--with-intl \-- With-homebrew-curl \--with-homebrew-libxslt \--with-homebrew-openssl \--with-imap \--with-mysql \--with-tidy

Install dependent extensions first: curl,libpng,freetype,gettext,h and so on.

==> installing php56 from homebrew/homebrew-php

==> installing dependencies for Php56:curl, libpng, FreeType, GetText, H

==> Installing PHP56 Dependency:curl

==> Downloading Https://homebrew.bintray.com/bottles/curl-7.41.0_1.yosemite.bott

######################################################################## 100%

==> Pouring curl-7.41.0_1.yosemite.bottle.tar.gz

==> Caveats

This formula are keg-only, which means it was not symlinked into/usr/local.

Mac OS X already provides this software and installing another version in

Parallel can cause all kinds of trouble.

Generally there is no consequences of this. If You build your

own software and it requires This formula, you'll need to add to your

Build variables:

Ldflags:-l/usr/local/opt/curl/lib

Cppflags:-i/usr/local/opt/curl/include

==> Summary

? /usr/local/cellar/curl/7.41.0_1:301 files, 2.9M

==> Installing PHP56 dependency:libpng

==> Downloading Https://homebrew.bintray.com/bottles/libpng-1.6.16.yosemite.bott

######################################################################## 100%

==> Pouring libpng-1.6.16.yosemite.bottle.tar.gz

? /usr/local/cellar/libpng/1.6.16:17 files, 1.3M

==> Installing PHP56 Dependency:freetype

==> Downloading https://homebrew.bintray.com/bottles/freetype-2.5.5.yosemite.bottle.tar.gz

######################################################################## 100%

==> Pouring freetype-2.5.5.yosemite.bottle.tar.gz

? /usr/local/cellar/freetype/2.5.5:60 files, 2.6M

==> Installing PHP56 Dependency:gettext

==> Downloading https://homebrew.bintray.com/bottles/gettext-0.19.4.yosemite.bottle.tar.gz

######################################################################## 100%

==> Pouring gettext-0.19.4.yosemite.bottle.tar.gz

==> Caveats

This formula are keg-only, which means it was not symlinked into/usr/local.

Mac OS X provides similar software, and installing this software in

Parallel can cause all kinds of trouble.

OS X provides the BSD GetText library and some software gets confused if both is in the library path.

Generally there is no consequences of this. If You build your

own software and it requires This formula, you'll need to add to your

Build variables:

Ldflags:-l/usr/local/opt/gettext/lib

Cppflags:-i/usr/local/opt/gettext/include

==> Summary

? /usr/local/cellar/gettext/0.19.4:1920 files, 21M

==> Installing PHP56 Dependency:homebrew/dupes/tidy

==> Downloading https://homebrew.bintray.com/bottles-dupes/tidy-20090325.yosemite.bottle.tar.gz

######################################################################## 100%

==> Pouring tidy-20090325.yosemite.bottle.tar.gz

? /usr/local/cellar/tidy/20090325:10 files, 940K

==> Installing PHP56 Dependency:homebrew/dupes/zlib

==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/dupes/zlib-1.2.8.yosemite.bottle.tar.gz

######################################################################## 100%

==> Pouring zlib-1.2.8.yosemite.bottle.tar.gz

==> Caveats

This formula are keg-only, which means it was not symlinked into/usr/local.

Mac OS X already provides this software and installing another version in

Parallel can cause all kinds of trouble.

Generally there is no consequences of this. If You build your

own software and it requires This formula, you'll need to add to your

Build variables:

Ldflags:-l/usr/local/opt/zlib/lib

Cppflags:-i/usr/local/opt/zlib/include

==> Summary

? /usr/local/cellar/zlib/1.2.8:9 files, 392K

==> Installing PHP56 dependency:icu4c

==> Downloading https://homebrew.bintray.com/bottles/icu4c-54.1.yosemite.bottle.1.tar.gz

######################################################################## 100%

==> Pouring icu4c-54.1.yosemite.bottle.1.tar.gz

==> Caveats

This formula are keg-only, which means it was not symlinked into/usr/local.

Mac OS X already provides this software and installing another version in

Parallel can cause all kinds of trouble.

OS X provides libicucore.dylib (but nothing else).

Generally there is no consequences of this. If You build your

own software and it requires This formula, you'll need to add to your

Build variables:

Ldflags:-l/usr/local/opt/icu4c/lib

Cppflags:-i/usr/local/opt/icu4c/include

==> Summary

? /usr/local/cellar/icu4c/54.1:242 files, 65M

==> Installing php56 dependency: imap-uw

==> Downloading Https://homebrew.bintray.com/bottles/imap-uw-2007f.yosemite.bott

######################################################################## 100%

==> Pouring imap-uw-2007f.yosemite.bottle.tar.gz

? /usr/local/cellar/imap-uw/2007f:150 files, 9.5M

==> Installing PHP56 dependency: jpeg

==> Downloading https://homebrew.bintray.com/bottles/jpeg-8d.yosemite.bottle.2.t

######################################################################## 100%

==> Pouring jpeg-8d.yosemite.bottle.2.tar.gz

? /usr/local/cellar/jpeg/8d:18 files, 776K

==> Installing php56 dependency: unixodbc

==> Downloading https://homebrew.bintray.com/bottles/unixodbc-2.3.2_1.yosemite.b

######################################################################## 100%

==> Pouring unixodbc-2.3.2_1.yosemite.bottle.1.tar.gz

? /usr/local/cellar/unixodbc/2.3.2_1:31 files, 1.0M

==> Installing php56

==> Downloading Https://www.php.net/get/php-5.6.7.tar.bz2/from/this/mirror

########################### 37.9%

Curl: (sslread) return error-9806

Error: Failed to download resource "php56"

Download Failed:https://www.php.net/get/php-5.6.7.tar.bz2/from/this/mirror

localhost:~ zhoujunwen$ Brew Install php56

==> Installing PHP56 from homebrew/homebrew-php

==> Downloading Https://homebrew.bintray.com/bottles-php/php56-5.6.7.yosemite.bo

######################################################################## 100%

==> Pouring php56-5.6.7.yosemite.bottle.tar.gz

==> Caveats

To enable PHP on Apache Add the following to httpd.conf and restart Apache:

LoadModule php5_module/usr/local/opt/php56/libexec/Apache2/libphp5.so

The php.ini file can is found in:

/usr/local/etc/php/5.6/php.ini

???? PEAR????

If PEAR complains about permissions, ' fix ' the default PEAR permissionS and config:

chmod -R ug+w/usr/local/cellar/php56/5.6.7/lib/php

Pear Config-set Php_ini/usr/local/etc/php/5.6/php.ini System

???? Extensions????

If you have a issues with a custom extension compiling, ensure that

You is using the brew version, by Placing/usr/local/bin Before/usr/sbin in your PATH:

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

PHP56 Extensions'll always be compiled against this PHP. Please install them

Using--without-homebrew-php to enable compiling against system PHP.

???? PHP CLI????

If you wish-to-swap the PHP you use on the command line, you should add the following to ~/.BASHRC,

~/.ZSHRC, ~/.profile or your shell ' s equivalent configuration file:

Export Path= "$ (Brew--prefix homebrew/php/php56)/bin: $PATH"

???? Fpm????

To launch PHP-FPM on startup:

Mkdir-p ~/library/launchagents

Cp/usr/local/opt/php56/homebrew.mxcl.php56.plist ~/library/launchagents/

Launchctl load-w ~/library/launchagents/homebrew.mxcl.php56.plist

The control script is located at/usr/local/opt/php56/sbin/php56-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.php56.plist ' in old versions

of this formula.

To has launchd start php56 at login:

Ln-sfv/usr/local/opt/php56/*.plist ~/library/launchagents

Then-to-load php56 now:

Launchctl Load ~/library/launchagents/homebrew.mxcl.php56.plist

==> Summary

? /usr/local/cellar/php56/5.6.7:500 files, 51M


The above describes the Mac installation php56, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

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