brew install php7.1

通过brew install php7.1

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

???? Extensions ????

If you are having issues with custom extension compiling, ensure that you are using the brew version, by placing /usr/local/bin before /usr/sbin in your PATH:

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

PHP71 Extensions will 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/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 you are using the brew version you need to make sure /usr/local/sbin is before /usr/sbin in your PATH:

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

You may also need to edit the plist to use the correct "UserName".

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

With the release of macOS Sierra the Apache module is now not built by default. If you want to build it on your system you have to install php with the --with-httpd option. See brew options php71 for more details.

To have 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

p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; color: #f5f5f5; background-color: #000000 }
p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; color: #f5f5f5; background-color: #000000; min-height: 16.0px }
p.p3 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; color: #ffffff; background-color: #000000 }
span.s1 { }
span.s2 { color: #5330e1 }
span.s3 { color: #f5f5f5 }

原文地址:https://www.cnblogs.com/linst/p/8320858.html

时间: 2024-12-14 05:49:14

brew install php7.1的相关文章

解决brew下载php7(不存在libphp7.so)

我是一名PHP的初学者,在mac上安装php7参考作者 coolma <在mac中如何安装php7>: 1. 安装Homebrew(mac ox不可或缺套件管理器,方便快捷的安装插件等) 2. brew安装 完成步骤后,重启apache:期间警告找不到libphp7.so;比对发现brew下载的新版本都没有libphp7.so: 解决方法: brew install php70 --with-apxs2 --with-apache --with-gmp --with-imap --with-t

mac osx 系统 brew install hadoop 安装指南

mac osx 系统 brew  install hadoop 安装指南 brew install hadoop 配置 core-site.xml:配置hdfs文件地址(记得chmod 对应文件夹,否则无法正常启动hdfs)和namenode的rpc通行端口 配置mapred-site.xml  中的map reduce通信端口 配置hdfs-site.xml 中的datanode 副本数. 格式化hdfs文件系统 启动Hadoop 和 yarn  namenode  datanode  map

mac brew install redis 报错

mac brew install redis 报错 /usr/local/opt/php55/bin/phpize /usr/local/opt/php55/bin/phpize: line 61: /usr/local/Library/ENV/4.3/sed: No such file or directory /usr/local/opt/php55/bin/phpize: line 62: /usr/local/Library/ENV/4.3/sed: No such file or di

mac brew install redis

在mac 下安装redis 执行brew install redis ==> Downloading http://download.redis.io/releases/redis-2.8.19.tar.gz ######################################################################## 100.0% ==> make install PREFIX=/usr/local/Cellar/redis/2.8.19 CC=clang

[mac]brew install nginx,出现编译错误怎么办?

错误如下: ==> Downloading http://nginx.org/download/nginx-1.6.2.tar.gz Already downloaded: /Library/Caches/Homebrew/nginx-1.6.2.tar.gz ==> ./configure --prefix=/usr/local/Cellar/nginx/1.6.2 --with-http_ssl_module --with-pcre --with-ipv6 --sbin-path=/usr

mac OSX 上 brew install hive

本文介绍brew install hive并修改默认的metastore存储方案,改Derby数据库为mysql的方法以及可能遇到的问题的解决方案. 1. 通过homebrew安装hive 1 brew install hive 2. 添加hadoop和hive的环境变量 1 2 3 4 5 6 sudo vim ~/.bash_profile export HADOOP_HOME=/usr/local/Cellar/hadoop/hadoop.version.no export HIVE_HO

brew update慢,brew install慢如何解决?

主要是资源访问太慢造成的,替换默认源镜像就行. brew使用国内镜像源 这里用中科大的,另外还有清华的可用 1 2 3 4 5 6 7 8 9 10 # 步骤一 cd "$(brew --repo)" git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git # 步骤二 cd "$(brew --repo)/Library/Taps/homebrew/homebre

Notice : brew install php70

To enable PHP in Apache add the following to httpd.conf and restart Apache: LoadModule php7_module    /usr/local/opt/php70/libexec/apache2/libphp7.so <FilesMatch .php$> SetHandler application/x-httpd-php </FilesMatch> Finally, check DirectoryI

Mac Brew Install Nginx Summary

==> Downloading https://homebrew.bintray.com/bottles/nginx-1.10.1.el_capitan.bot######################################################################## 100.0%==> Pouring nginx-1.10.1.el_capitan.bottle.tar.gz==> CaveatsDocroot is: /usr/local/var/