Chapter 3. Installation

Table of Contents

Requirements
Download
Installation
More about the directory structure

Requirements

  • HTTP Server. Apache with mod_rewrite is a good choice.
  • PHP 5 or greater

Download

You can download Atomik from the Atomik website

You can create your own Atomik distribution online. It allows you to pack in only the plugins you want.

Installation

  1. Unzip the downloaded archive

  2. Upload or move Atomik files and folders into a directory available from the web.

  3. Start coding!

More about the directory structure

Atomik's core file, namely index.php, must be situated at the root of your website. The default directory structure is simple because everything goes into this webroot.

Your application per se goes into the app directory. Actions and views have their own directory.

When using the provided Apache .htaccess file, the app directory is not accessible from the web.

You can put your assets (css, js, images) anywhere. I like to use an assets folder for this kind of things.

Figure 3.1. The default directory structure

The default directory structure

Note

In a production environment, it is always better to remove the application files from the webroot. This is not the default way of doing things with Atomik as it can be a bit more difficult. However it is very easy to do. Atomik allows you to edit the path for each directory. This will be covered in the configuration chapter.