Skip to content
This repository was archived by the owner on Mar 23, 2023. It is now read-only.

Directory Structure and Configuration Files

randystern edited this page Jan 27, 2017 · 1 revision

Directory Structure

/home/acorn/prod/
    application/default (MVC)
        controllers
        layout
        models
        views
        .htaccess - Rewrite to public/index.php
    library (The Zend library files)
    logs NOTE: This directory should have group = apache and group should have rwx access.
    public (css, js)
        .htaccess - Rewrite to index.php
        userreports (where the user reports get generated) NOTE: This directory should have group = apache and group should have rwx access.
            .htaccess - Rewrite rule off

Configuration files

Configurations for all instances

/home/acorn/<instance>/public/index.php

/home/acorn/<instance>/application/bootstrap.php - Zend's bootstrap file: Zend loader, path configurations (required by index.php)
    To change the instances between dev, test, and prod, simply change the '$env' variable in this file to the correct instance. When you upload the file to the server, it will then run that instance. The two things that this variable affects are the type of logging that occurs and the database instance to use.

/home/acorn/<instance>/application/clibootstrap.php - Zend's bootstrap file for the command-line routine: Zend loader, path configurations (required by index.php)
    To change the instances between dev, test, and prod, simply change the '$env' variable in this file to the correct instance. When you upload the file to the server, it will then run that instance. The two things that this variable affects are the type of logging that occurs and the database instance to use.

/home/acorn/<instance>/application/config.ini - basic configuration file for paths, log levels, etc.

/home/acorn/<instance>/application/dbconfig.ini - database configuration file

/home/acorn/conf - This directory holds the virtual host configuration

/home/acorn/public/scripts/acorn.js - Make sure the correct baseURL variable is set at the top of this file
Clone this wiki locally