Code Monkey home page Code Monkey logo

phpenv-cookbook's Introduction

phpenv cookbook

Installs phpenv php version manager application in a global way and build php from source.

The cookbook provides LWRPs to easily build new php versions.

Requirements

The cookbook was tested on ubuntu server 12.04 and may not works on other systems.

Requires Chef 10.16.4 or later.

Usage

Add the defaultrecipe to your run list:

{ "run_list": ["recipe[phpenv]"] }

Attributes

By default phpenv will be installed into /opt/phpenv directory and can be used by every user but only root can build a new php version and set the global php version.

You can build different php versions just like specifying e.g. the following attributes:

"phpenv": {
  "phps": [
    {
      "release": "5.3.25",
      "environment": { "LDFLAGS": "-lstdc++" }
    },
    "5.4.15"
  ],
  "global": "5.4.15"
}

See attributes/default.rb for more information.

Recipes

default

Installs the full stack.

base

Installs dependencies for building php from the git source.

install

Installs phpenv and meke it ready to build phps.

phps

Builds different php versions specified by the phps attribute.

LWRPs

phpenv_script

Runs code in a proper phpenv environment. The resource has the same attributes as the script resource and adds the following ones:

phpenv_root: path to the phpenv installation phpenv_version: php version to use

phpenv_php

Builds a php version. Attributes:

release: php release version e.g "5.3.25" or "5.5.0RC2" build: build name e.g. "dev" ini: ini file to use e.g. "production" environment: hash of environment variables

phpenv_php "5.3.25" do
  environment "LDFLAGS" => "-lstdc++"
end

phpenv_global

Sets the global php version. Attributes:

phpenv_version: php version to use as global environment: hash of environment variables

phpenv_global "5.3.25"

Author

Author:: Gábor Egyed ([email protected])

phpenv-cookbook's People

Contributors

blufe avatar 1ed avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.