Activity Library/Devel/Installing: Difference between revisions

No edit summary
Undo revision 28630 by Alsroot (Talk)
Line 191: Line 191:
</code>
</code>


==Configure aso==
===Populate tables===
 
===Auto mode===
 
cd /var/www
cp aslo/config.php site/app/config/
aslo/db-create-stub.sh
 
===Manual mode===
 
====Populate tables====
<code>
<code>
  mysql -u remora --password=remora -D remora </var/www/site/app/config/sql/remora.sql
  mysql -u remora --password=remora -D remora </var/www/site/app/config/sql/remora.sql
Line 208: Line 198:
</code>
</code>


==Configure aso==


====Edit config.php====
===Edit config.php===


<code>
<code>
Line 346: Line 337:
*/
*/
define('DL_COUNT_DELAY', '10');
define('DL_COUNT_DELAY', '10');
l $shadow_databases;
 
/**
* Path to directory where detailed logfiles are kept. Files will be created in
* this directory in the format: {DETAILED_LOG_PATH}/Y-M-D.txt
*/
//define('DETAILED_LOG_PATH', '');
 
/**
* Path to directory for misc. AMO storage accessible by all webheads.
*/
define('NETAPP_STORAGE', '');
 
/**
* Facebook Configuration
*/
// Whether the Facebook controller is enabled
define('FB_ENABLED', 'false');
 
// Facebook API keys
define('FB_API_KEY', '');
define('FB_API_SECRET', '');
 
// Facebook App URL
define('FB_URL', 'http://apps.facebook.com/add-ons');
 
// Facebook Image site - where images are pulled from
define('FB_IMAGE_SITE', 'https://addons.mozilla.org');
 
// Facebook Install site - where the add-on install page goes
define('FB_INSTALL_SITE', 'https://addons.mozilla.org');
 
// Facebook Bounce Percentage - percent of hits to bounce
//define('FB_BOUNCE_PERCENTAGE', 0);
 
/**
* Database configuration.
*/
 
/**
* DB_USER, DB_PASS, DB_NAME, DB_HOST, DB_PORT
* This database has read/write capabilities.  Host and port default to localhost and 3306.
*/
define('DB_USER','remora');
define('DB_PASS','remora');
define('DB_NAME','remora');
 
/**
* SHADOW_DB_USER, SHADOW_DB_PASS, SHADOW_DB_NAME, SHADOW_DB_HOST, SHADOW_DB_PORT
* Array of shadow databases that have read-only access.
* - If left alone, will default to DB_* above.
* - DB_WEIGHTs must sum to 1. i.e., a weight of 0 will never get hit, a weight
*  of .50 will get hit half of the time, and a weight of 1 will always get hit.
* - The array keys need not be numeric and could be used for descriptive purposes
*  that would appear in the monitor script.
*/
global $shadow_databases;
$shadow_databases = array(
$shadow_databases = array(
     0 => array(
     0 => array(
Line 399: Line 445:
</nowiki></pre>
</nowiki></pre>


====Edit config-local.php====
===Edit config-local.php===


<code>
<code>