Tutorials

Figaro => Installing.html

A Screenshot of Figaro

Installing Figaro

Directory Structure

apps/

Out of the box applications live in this directory.

lib_base/

This is the heart and soul of Figaro. All of the custom built methods and functions reside in this directory.

mods/

Any 3rd party software lives in this directory - AMFPHP is installed by default to aid Flex developers.

pages/

This folder contains all of the template files and elements that Figaro uses for your site.

setup/

This folder contains the setup scripts to get Figaro up and running in a matter of moments.

config.Postback.php

A customizable file to write custom postback methods - All the same security issues with POST arrays still apply.

config.Settings.php

This file contains the settings for your database, filepaths, error reporting settings and template settings.

figaro_start.php

This file is invoked in every page served by Figaro - it loads your default database and initializes all of the Figaro methods.

.htaccess

This htaccess file hijacks all header requests and forces all global variables ($_GET, $_POST, etc.) into $Request. The purpose is two fold - security on all systems and clean, SEO friendly URLs.

Installation

Copy all of the files into the root of your webserver - keep the directory structure consitent with the diagram above.

Configuration

To use a default installation of Figaro open config.Settings.php and edit lines 43-36 to match your MySQL databases server settings (db_server, db_user, db_pass, db_name). Save the file and you're good to go. Now Figaro knows what is in your database. (It's not Skynet smart - the figaro_start.php script calls $Mysql->buildSchema(); which in turn informs Figaro how your db is setup)