Code Monkey home page Code Monkey logo

lamp's Introduction

# Overview

The first thing the LAMP charm does is to install and configure a new instance with Apache and PHP5. The charm will then copy any files under `/website`  inside the charm folder structure, into `/var/www`. 

It also allows you to specify a Bazaar branch. It will clone the branch into the webserver and copy the contents to `/var/www`. As an example set:

    juju set lamp website-bzr="lp:~vtuson/+junk/mytodo_web"

You can set up a relationship with a Mysql service. A Mysql database is created by default at this time. You can change the name of the database as a configuration options.

    juju set lamp website-database="your_db_name"

If you provide a file called mysql_config either on the `/website` folder or in the root of you Bazaar branch, this will be used to configure further the Mysql database. PLease note that this file is called every time a new unit is created. For example, item creation should first check if the table exists.

The charm will store the details of the relationship in `/var/webconfig`. In there you can also find opendb.php, a basic script that will open the connection to the MySQL database for you.

lamp's People

Contributors

vtuson avatar

Watchers

Michael Bodnarchuk avatar James Cloos avatar

Forkers

mathvdh

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.