Directory structure

From Lanius CMS Wiki

Contents

Root directories

  • admin/ - webserver-published files relative to backend
  • css/ - webserver-published CSS files for frontend
  • editor/ - webserver-published WYSIWYG editors files (no server scripts inside)
  • images/ - webserver-published multimedia files for frontend and backend
  • js/ - webserver-published javascript include files for frontend and backend
  • lang/ - language packages, all server-side scripts except for flag image file (flag.png)
  • media/ - webserver-published user-provided multimedia files
  • private/ - private directory for data, should not be published on webserver
  • src/ - Lanius CMS source code, should not be published on webserver
    • admin/ - admin-only source files
    • adodbm_drivers/ - adoDBM database drivers
    • classes/ - frontend classes source code
    • components/ - components source code, no webserver-published files inside
    • includes/ - Lanius CMS include files used by frontend code
    • modules/ - modules source code, no webserver-published files inside
    • plugins/ - plugins source code, no webserver-published files inside
  • templates/ - frontend templates, should be published on webserver; contains only one server side script (index.php)

Directories designation

The below table and notes summarize the designation of some special directories regarding their writability settings.

DesignationPathRead groupWrite groupCreate dirsBrowse/list
Flatfile database(II)/private/lcms66nono
Querystring cache(I)/private/cache66nono
Galleries/media/gallery02(VI)yes2(VI)
Private(IV)/private/66no(IV)no
Temporary directory (V)/private/temp66yes (V)no
SQL backups/private/backup54no5
Downloads/private/downloads64no4
Banners directory/media/banners04no4
Icons (ex. for content)/media/icons02no2
Content media (ex. uploaded images)/media/02no2

I: querystring-based caching should be provided by the server; an embedded caching mechanism could be embedded but nothing is planned until v1.0

II: flatfile databases (Gladius DB or SQLite), when active, will deploy their files in the private/lcms directory (where lcms is the database name)

IV: this directory should not contain any sparse file; only config.php and log.php need to be writable

V: this directory will be used to store temporary files when the system's temporary path cannot be used Goals

VI: not currently supported

Supported hosting configurations

The purpose of the above designation is to allow (theorically) the following configurations:

  • no hosting write access with any database (except flatfile) and manual config.php creation (no installation allowed)
  • hosting write access on at least one directory with mkdir rights in it (permission elevator used here, installation allowed, minor limitations, flatfile database ok)

Note: Lanius CMS does not currently work with any of the above host configurations

Related pages

Personal tools
Create a book
  • Add wiki page
  • Collections help