Building and using multiple PHP versions
I recently open sourced a tool that I use to manage multiple PHP versions on a single system.
It currently support building PHP 5.2., 5.3. and 5.4.* with support for Apache modules.
To quickly install phpswitch, run this command :
$ curl https://raw.github.com/jubianchi/phpswitch/master/bin/installer | sudo php
# Creates the phpswitch workspace
$ phpswitch init
Check out the source code on github and/or the readme to get more informations.
phpswitch version 0.1
Usage:
[options] command [arguments]
Options:
--help -h Display this help message.
--quiet -q Do not output any message.
--verbose -v Increase verbosity of messages.
--version -V Display this application version.
--ansi Force ANSI output.
--no-ansi Disable ANSI output.
--no-interaction -n Do not ask any interactive question.
Available commands:
help Displays help for a command
init Initializes PhpSwitch environment
list Lists commands
config
config:info Displays configuration
php
php:config Get or set configuration
php:current Displays current PHP version
php:install Installs a PHP version
php:list Lists PHP versions
php:switch Switch PHP version
Written by Julien BIANCHI
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#