php website #0

Supports: trusty

Add to new model

Description

Similar to the 'website' charm, this subordinate charm will deploy the
repository set in the 'content' configuration option as a virtual-host on a
related web serving charm.

This charm will install additional packages to provide functionality
typically needed by a php website.


Overview

Similar to the website charm, this subordinate charm will deploy the
repository set in the content configuration option as a virtual-host on a
related web serving charm.

This charm will install the following additional packages to provide
functionality typically needed by a php website:
* php5-cli * php5-curl * php5-fpm * php5-gd * php5-imagick * php5-mcrypt * php5-mysql

Usage

Deploy a web server, mysql, and this charm:

juju deploy nginx juju deploy mysql juju deploy php-website

Relate this charm to your web server and mysql:

juju add-relation php-website:nginx-engine nginx:web-engine juju add-relation php-website:database mysql:db

Monitor the status of your deployment with juju status. Once you see the
agent-state for 'php-website/0' change to started, your site is ready! You'll
see a public-address in the same juju status output. Navigate to that
address with a web browser to see your content.

Sample output of a successful deployment:

environment: local machines: ... services: nginx/0: ... php-website/0: ... agent-state: started ... public-address: 10.0.3.128

Known Limitations and Issues

This charm currently only relates to the nginx charm over the nginx-vhost
interface. Future updates will enable this same functionality for the apache2
charm.


Configuration

content
(string) Location of webroot content
https://github.com/marcoceppi/website-landing.git
display-errors
(boolean) Display PHP Errors to the browser?
doc-root
(string) Relative to the repository root
/
domain
(string) Optional domain-name, otherwise unit (service-#) will be used
error-reporting
(string) What value to set for error_reporting http://php.net/manual/en/function.error-reporting.php
E_ALL & ~E_NOTICE
port
(int) Port which the virtualhost will responds to
80
release
(string) Branch or ref to use for repo
master