brew-php-select
Homebrew and the [homebrew-php tap](https://github.com/josegonzalez/homebrew-php) make it easy enough to install multiple versions of PHP, but they don't make it all that convenient to switch between them. Specifically, the instructions recommend altering your shell's path and your apache config every time you switch versions. This script automates that process and reboots apache for you (if it's running).
Last updated 7 years ago by ianwremmel .
Original npm · Tarball · package.json
$ cnpm install brew-php-select 
SYNC missed versions from official npm registry.

brew-php-select

Homebrew and the homebrew-php tap make it easy enough to install multiple versions of PHP, but they don't make it all that convenient to switch between them. Specifically, the instructions recommend altering your shell's path and your apache config every time you switch versions. This script automates that process and reboots apache for you (if it's running).

Installation

The package is not yet in NPM, so install it directly from github:

npm install -g  http://github.com/ianwremmel/brew-php-select/tarball/master

Then, add the following to your httpd.conf. (The following step will create /usr/local/php.)

LoadModule php5_module /usr/local/php/libexec/apache2/libphp5.so

Finally, execute the following to ensure all the required symlinks exist (Use whichever php version you actually need.)

brew-php-select --set php52

Example Usage

Display the available PHP brews:

brew-php-select

Set the active brew to PHP 5.3

brew-php-select --set php53

Current Tags

  • 0.0.6                                ...           latest (7 years ago)

5 Versions

  • 0.0.6                                ...           7 years ago
  • 0.0.5                                ...           7 years ago
  • 0.0.4                                ...           7 years ago
  • 0.0.3                                ...           7 years ago
  • 0.0.2                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (4)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |