Skip to content
Violet edited this page Feb 11, 2011 · 2 revisions

Guide to config.cgi Configuration File

The config.cgi file is a plain text file containing configuration directives. A small set are required and the rest are optional. The Melody home directory contains a file named config.cgi-original which can be edited and then saved under the name config.cgi to provide the appropriate variables for your web hosting environment.

Required Configuration Directives

The required configuration directives tell the Melody application the URL where it is installed and the database settings.

  1. The minimum basic config.cgi when using MySQL are:

     CGIPath             http://www.domain.com/cgi-bin/m/
     ObjectDriver        DBI::mysql
     Database            DATABASE_NAME
     DBUser              DATABASE_USERNAME
     DBPassword          DATABASE_PASSWORD
     DBHost              localhost
    

    Note: Advanced database config directives:

  2. If the mt-static directory is left in the application directory on the file system, but aliased to a url which is not directly in the CGIPath (it's common that static files cannot be accessed in the cgi-bin directory), then add the StaticWebPath:

     StaticWebPath       http://www.domain.com/mt-static/
    
  3. If the mt-static directory is moved out of the application directory, then add the StaticFilePath:

     StaticFilePath      /var/www/html/mt-static/
    
  4. View other commonly used configuration directives to determine if these are needed for your system:

  5. Upload (or save) the config.cgi file to the application directory.

  6. Access Melody and complete the last installation steps:

    • Creating the administrator account.
    • Creating the first website.
    • Initializing the database with configuration options, admin account, and first website.

View the installation guides for more information on these last steps.

 

Categories: Installation, Guide

Tags: configuration, install, upgrade


Questions, comments, can't find something? Let us know at our community outpost on Get Satisfaction.

Credits

  • Author: Six Apart Ltd, Byrne Reese
  • Edited by: Violet Bliss Dietz
Clone this wiki locally