Skip to content

Instantly share code, notes, and snippets.

@vjaro
Created March 31, 2014 10:23
Show Gist options
  • Save vjaro/9889464 to your computer and use it in GitHub Desktop.
Save vjaro/9889464 to your computer and use it in GitHub Desktop.
<?php
$sugar_config_si = array(
'setup_db_host_name' => 'localhost',
'setup_db_database_name' => '{DB_NAME}',
'setup_db_drop_tables' => 0,
'setup_db_create_database' => 1,
'setup_db_pop_demo_data' => 0,
'setup_site_admin_password' => '{ADMIN_PASSWORD}',
'setup_db_create_sugarsales_user' => 0,
'setup_db_admin_user_name' => '{DB_USER}',
'setup_db_admin_password' => '{DB_PASSWORD}',
'setup_db_sugarsales_user' => '{DB_ALTERNATIVE_USER}',
'setup_db_sugarsales_password' => '{DB_ALTERNATIVE_PASSWORD}',
'setup_db_type' => 'mysql',
'setup_license_key' => '{LICENSE_KEY}',
'setup_site_url' => '{SITE_URL}',
'setup_system_name' => '{SYSTEM_NAME}',
'default_currency_iso4217' => 'USD',
'default_currency_name' => 'US Dollars',
'default_currency_significant_digits' => '2',
'default_currency_symbol' => '$',
'default_date_format' => 'Y-m-d',
'default_time_format' => 'H:i',
'default_decimal_seperator' => '.',
'default_export_charset' => 'ISO-8859-1',
'default_language' => 'en_us',
'default_locale_name_format' => 's f l',
'default_number_grouping_seperator' => ',',
'export_delimiter' => ',',
);
@vjaro
Copy link
Author

vjaro commented Mar 31, 2014

SugarCRM Automatic Installation that is working for 7

Note: After file has been created type the following:

http://${hostname}:${webport}/sugarcrm/install.php?goto=SilentInstall&cli=true

where ${hostname} is the name of the host and ${webport} is the port number (if not 80). Generically, the install.php file is at the same location as the index.php file for the SugarCRM application, if the address does not match the one given above. Upon completion of the process, the installation should respond with Success, and you may navigate to the web address to find an installed version of SugarCRM.

The above code is proven working for instances without demo data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment