Getting Started with PHP Easy Installer
(for version 2.0.0 or above)
After you have PHP EI installed, you need to perform next steps:
Step 1. Setting up parameters in file settings.php.
Open file settings.inc.php in any text editor and change all parameters according to your needs.
There are some important parameters in this file:
1. GENERAL SETTINGS
--------------------------------
EI_MODE - the mode of installation. There are 3 possible modes: demo, debug and production.
EI_CHECK_PHP_MINIMAL_VERSION/EI_PHP_MINIMAL_VERSION - checks if minimal required version
of PHP runs on a server.
2. CONFIG PARAMETERS
--------------------------------
EI_CONFIG_FILE_DIRECTORY - the name of directory where the configuration file is placed.
EI_CONFIG_FILE_NAME - the name of the file that will be created after installation. This file will include
connection parameters to you database: database host, database name, database user and user password.
EI_CONFIG_FILE_PATH - the full path of file that will be created after installation.
EI_SQL_DUMP_FILE_NEW/EI_SQL_DUMP_FILE_UPDATE - files that include SQL statements for instalation.
Make sure they don't include commented lines, like: -- ## etc.
3. CONFIG TEMPLATE PARAMETERS
--------------------------------
EI_CONFIG_FILE_TEMPLATE - template of the configuration file.
4. APPLICATION PARAMETERS
--------------------------------
EI_APPLICATION_NAME - the name of your script (program).
EI_APPLICATION_START_FILE - the name of the default starting file of your script (application).
EI_LICENSE_AGREEMENT_PAGE - path to the license agreement page (if exists).
Step 2. Preparing SQL dump file.
Using phpMyAdmin or another tool, create SQL dump file and download the entire SQL dump file to you computer. Replace content of this file with the content of sql_dump/installation_new.sql and/or sql_dump/installation_update.sql files. In admins table replace username and password values with <USER_NAME> and <PASSWORD> and put before all table names <DB_PREFIX> (for example: `<DB_PREFIX>test`).
Step 3. Blocking unexpected access to your application.
Add next lines of code at the top of the default starting file of your script (application):
// $config_file_directory.$config_file_name
require_once("inc/config.inc.php");
if (!file_exists(EI_CONFIG_FILE_PATH)) {
header("location: install.php");
exit;
}
Step 4. Start Installation Process.
To start installation process just type in your browser
http://{your_site_address}/(your_script_directory)/install.php




























