Giter Site home page Giter Site logo

faizal2007 / phpfarm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cweiske/phpfarm

0.0 1.0 0.0 1.18 MB

UNMAINTAINED AND OUT OF DATE. Tool to install multiple versions of PHP beside each other

Home Page: https://sourceforge.net/p/phpfarm/

License: GNU Affero General Public License v3.0

Shell 100.00%

phpfarm's Introduction

phpfarm

Set of scripts to install a dozen of PHP versions in parallel on a system. It also creates a Pyrus installation for each PHP version. Primarily developed for PEAR's continuous integration machine.

The PHP source packages are fetched from museum.php.net (which is not always up-to-date), the official php.net download pages and the pre-release channels. If a file cannot be found, try to fetch it manually and put it into src/bzips/

Setup

  • Check out phpfarm from git: git clone git://git.code.sf.net/p/phpfarm/code phpfarm
  • cd phpfarm/src/
  • ./compile.sh 5.3.0
  • PHP gets installed into phpfarm/inst/php-$version/
  • phpfarm/inst/bin/php-$version is also executable. You should add inst/bin to your $PATH, i.e. PATH="$PATH:$HOME/phpfarm/inst/bin" in .bashrc, as well as inst/current-bin.

Customization

Default configuration options are in src/options.sh. You may create version-specific custom option files:

  • custom-options.sh
  • custom-options-5.sh
  • custom-options-5.3.sh
  • custom-options-5.3.1.sh

The shell script needs to define a variable "$configoptions" with all ./configure options. Do not try to change prefix and exec-prefix.

php.ini values may also be customized:

  • custom-php.ini
  • custom-php-5.ini
  • custom-php-5.3.ini
  • custom-php-5.3.1.ini

Switching default PHP versions

Using the command switch-phpfarm, you can make one of the installed PHP versions the default one that gets run when just typing php:

$ switch-phpfarm
Switch the currently active PHP version of phpfarm
Available versions:
 5.2.17
 5.3.16
 5.4.6
$ switch-phpfarm 5.4.6
Setting active PHP version to 5.4.6
PHP 5.4.6 (cli) (built: Sep 13 2012 11:24:56) (DEBUG)

You need to have inst/current-bin in your $PATH to make this work.

About phpfarm

Written by Christian Weiske, [email protected]

Homepage: https://sourceforge.net/p/phpfarm

Licensed under the AGPL v3 or later.

phpfarm's People

Contributors

cweiske avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.