File and Application Location Standards

When creating software for various systems Edoceo places our specific code, libraries, documentation, etc according to the following structure.

File Locations

Unless otherwise necessary in-house software should be created in /opt/edoceo or c:\Program Files\Edoceo, Inc. depending on platform. Library files are component binaries or scripts, aka DLLs and WSC files. Temporary files are ones that can be killed anytime, not important, not sensitive Web files are any content or code to be visible over http.

  • Executeable Files - ./bin
  • Library Files - ./lib/
  • Temporary Files - Use the System location
  • Web Files - System specific location

Zend Framework Applications

Our Web-Applications are typically deployed using the Zend Framework at the following locations.

Apache Configuration, change and IP as necessary.


  DocumentRoot /var/www/
  # Primary is sans-www
  # Force sans-www
  RewriteEngine On
  RewriteCond %{HTTP_HOST} !^www\.example\.com$
  RewriteRule (.*)$1 [R=301,L]
  # Setup Zend Framework Handler
  <Directory /var/www/>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ /index.php/$1 [QSA,L]

Application File Structure, what appears in /var/www/