setup.php

This is the installation script for Siteframe Beaumont. Whenever a page is launched, a check is made to determine if the database table(s) are accessible; if those tables do not exist, then it is presumed that the software has not yet been installed and the scripts are redirected to setup.php.

setup.php performs a number of tasks:

  1. It performs a number of "sanity checks" on values set in siteframe.ini. For example, it ensures that site_url and site_path both have a valid value. It also checks to ensure that the PHP version is supported.
  2. It requests information about the initial administrator account.
  3. Once everything is verified, it builds the database tables and creates the new administrator account.

Once the tables are built, a copy of the SQL generated is saved in files/setup.sql in case you need to review it later.

Once setup.php completes successfully, it can be removed, since any further attempt to execute it will result in an error that the software has already been installed.