Share +



Apache HTTP Server with PHP modules enabled

What is PHP?

PHP is a scripting language, created by Rasmus Lerdorf in 1994, which was designed for web development but can also be used as a general-purpose programming language.


This box installs the PHP programming language, as well as an Apache server to run it.


  • HTTP authentication with PHP
  • Cookies
  • Sessions
  • Dealing with XForms
  • Handling file uploads
  • POST method uploads
  • Error Messages Explained
  • Common Pitfalls
  • Uploading multiple files
  • PUT method support
  • Using remote files
  • Connection handling
  • Persistent Database Connections
  • Safe Mode
  • Security and Safe Mode
  • Functions restricted/disabled by safe mode


Deployment Variables

http: Port to be used for HTTP connections [80 as default value]

https: Port to be used for HTTPS connections [443 as default value]

github.git_repo.CLONE_URL: Git repository URL that contains the necessary Puppet code to install PHP [ as default value]

github.git_repo.CLONE_DIRECTORY: Directory where the repository will be cloned [/etc/puppet/modules/php as default value]

github.git_repo.BRANCH: Git branch that will be cloned. [master as default value]

puppet.MODULES_DIRECTORY: Path of the directory that stores the puppet modules. Modules are self-contained bundles of code and data

puppet.PUPPET_DEFAULT: Manifest file (default.pp) that serves as the entry point for the Puppet run

puppet.HIERA_PATH: Path to the Hiera's data configuration directory on the instance

puppet.HIERA_COMMON: Instance non-specific configuration file (Common.yaml)

puppet.PUPPET_CONF: Puppet configuration file (Puppet.conf) that uses Puppet agent

puppet.HIERA_YAML: Instance specific configuration file (Hiera.yaml)

Deployment behavior

An instance executing this box will use Puppet and Bash scripting to download, install and configure PHP. Box events handle the PHP instance lifecycle as follows:

Install operation:

github.pre_install: Disables the strict host verification for

github.git_repo.pre_install: Installs the git package with the correct package manager for the Linux distribution (rpm or apt-get).

puppet.pre_install: downloads and installs the correct release of the Puppet agent in the instance.

Configure operation:

github.git_repo.pre_configure: Clones the repository containing all the necessary Puppet configuration.

puppet.pre_configure: downloads and configures common.yaml, puppet.conf, hiera.yaml with the variables's values and saves them into their default location: /etc/puppet/. Then it applies the Puppet modules and manifests necessary to install the Apache server and PHP.

Supported distributions

This deployment supports these Linux distributions:

  • Amazon Linux AMI 2015.03

  • Centos 6.5, 7

  • RedHat 7

  • Ubuntu 12.04, 14.04

You Agree to the Provider Terms of Service Associated with this Software.
Not a customer? Register now.

Other Products by CAM




Multi-Cloud , Open Source

deployment models

not specified

operating systems

not specified