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 DirectoryIndex includes index.php

DirectoryIndex index.php index.html

The php.ini file can be found in:

/usr/local/etc/php/7.0/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"

PHP70 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/php70)/bin:$PATH"

???? FPM ????

To launch php-fpm on startup:

mkdir -p ~/Library/LaunchAgents

cp /usr/local/opt/php70/homebrew.mxcl.php70.plist ~/Library/LaunchAgents/

launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php70.plist

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

of this formula.

To have launchd start homebrew/php/php70 at login:

ln -sfv /usr/local/opt/php70/*.plist ~/Library/LaunchAgents

Then to load homebrew/php/php70 now:

launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php70.plist

时间: 2024-07-28 21:53:09

Notice : brew install php70的相关文章

brew安装php70出现configure: error: Cannot find libz 错误解决方法

根据<全新安装Mac OS Sierra (10.12)并使用HomeBrew安装ZSH + MNMP (Mac + Nginx + Mysql + Php) 开发环境>教程在mac下用brew安装php70出错. brew install php70 --with-debug --with-gmp --with-homebrew-curl --with-homebrew-libressl --with-homebrew-libxml2 --with-homebrew-libxslt --wi

mac 通过brew安装php70 +php-fpm+ phalcon3.0.3

安装php7.0.15 brew install homebrew/php/php70 brew install homebrew/php/php70-mcrypt brew install homebrew/php/php70-redis brew install homebrew/php/php70-msgpack brew install homebrew/php/php70-memcached 安装php后可执行文件所在路径(-v ): /usr/local/bin/php -v /us

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 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/sb

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