Installer auto fill

From Cheetah Documentation Wiki
Revision as of 03:50, 28 February 2022 by Admin (talk | contribs) (Created page with "Cheetah has a auto form fill feature built into the installer as of Cheetah version 1.3.0. That feature automatically fills out all of the forms questions during the install...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Cheetah has a auto form fill feature built into the installer as of Cheetah version 1.3.0.

That feature automatically fills out all of the forms questions during the install process. This feature is intended for developers that frequently need to reinstall the script with the same settings. With this feature, all that needs to be done is to just click next on each screen until the install is complete. It fills all the forms for you which drastically speeds up the install process.

To use this feature, simply create a auto_fill.php file in cheetahs install folder. The contents of that file would be something like this.

<?php $aAutoFill = array(

 'install_prompt_password' => true,
 'install_password' => 'installpassword',
 'database_name' => 'databasename',
 'database_user' => 'databaseuser',
 'database_password' => 'databasepassword',
 'site_title' => 'SIte Title',
 'site_description' => 'Site Description',
 'site_email' => 'email@yoursite.com',
 'notify_email' => 'no-reply@yoursite.com',
 'bug_report_email' => 'email@yoursite.com',
 'admin_username' => 'admin',
 'admin_password' => 'adminpassword',
 'leave_install_folder' => 'true',

);

The leave_install_folder option can be true or false. If true, the inc/header.inc.php file will be modified to allow the install folder to remain on the server so you do not have to remove it.

If you choose to set this to true and leave the install folder, it is advised you also enable a password for the installer. Those are the first two options in this file.

The above examples settings will allow you to reinstall that site at any time just by going to yoursite.com/install and entering the set install password.