Account confirmers, Anti-spam team, Confirmed users, Bureaucrats and Sysops emeriti
4,925
edits
No edit summary |
No edit summary |
||
| Line 14: | Line 14: | ||
=== PHP 5.2 === | === PHP 5.2 === | ||
Edit /etc/php5/apache2/php.ini and make the following changes: | Edit <tt>/etc/php5/apache2/php.ini</tt> and make the following changes: | ||
* memory_limit = 128M | * memory_limit = 128M | ||
| Line 22: | Line 22: | ||
Install the following stuff: | Install the following stuff: | ||
* libgd2 for image manipulation - (XXXphp5-gd module + dependencies?) | * PHP MySQL support (php5-mysql) | ||
* curl support for feeds (XXX module?) | * libgd2 for image manipulation - (XXXphp5-gd module + dependencies? Or is it built-in?) | ||
* pecl module "uploadprogress" for enhanced ajax uploads (XXXwhere to find and how to install?) | * curl support for feeds (XXX module? Isn't it built-in?) | ||
* sendmail support (XXXphp-mail module?) | * pecl module "uploadprogress" for enhanced ajax uploads (XXXwhere to find and how to install? Install php-pear and then run a pear command?) | ||
* sendmail support (XXXphp-mail module? Or is it built-in?) | |||
=== Apache 2 === | === Apache 2 === | ||
| Line 35: | Line 36: | ||
=== MySQL 5 === | === MySQL 5 === | ||
XXX | * innodb (XXX is there actually anything to do here? my.cnf on Ubuntu says InnoDB is enabled by default...) | ||
== Get Code == | |||
This includes our own copies of Drupal, various Drupal modules, and CiviCRM. From now on, $DRUPAL_ROOT represents the place you want to put the code - e.g. <tt>/var/www/drumbeat.org</tt>. If you don't put it in <tt>/var/www</tt>, you'll need a symlink so the webserver can see it. | |||
Run this command: | |||
svn co http://svn.mozilla.org/projects/crm/trunk $DRUPAL_ROOT | |||
svn co http://svn.mozilla.org/projects/crm/trunk | |||
or | or | ||
svn co https://svn.mozilla.org/projects/crm/trunk | svn co https://svn.mozilla.org/projects/crm/trunk $DRUPAL_ROOT | ||
Or, if you have Mozilla SVN write access: | Or, if you have Mozilla SVN write access: | ||
svn co svn+ssh://svn.mozilla.org/projects/crm/trunk | svn co svn+ssh://svn.mozilla.org/projects/crm/trunk $DRUPAL_ROOT | ||
=== Install Sample Database === | === Install Sample Database === | ||
* XXX - need to make this available | * XXX - need to make this available | ||
* Need to set up database users with appropriate rights to the imported databases | |||
Below, where it says to "update a database connection string", you should use the "mysqli" connection method, and the usernames, passwords and database names you set up in this section. | |||
== Additional Server Configuration == | == Additional Server Configuration == | ||
Edit $DRUPAL_ROOT/sites/default/settings.php: | Edit <tt>$DRUPAL_ROOT/sites/default/settings.php</tt>: | ||
# Update | # Update $db_url['default'] & $db_url['mozcrm_civicrm'] database connection strings ('default' is for the Drupal database, the other is for CiviCRM). | ||
# | # Check the correct memcached port is specified. | ||
# | # Right at the bottom of the file, the domain module include path must be updated to be "<tt>$DRUPAL_ROOT/sites/all/modules/contrib/domain/settings.inc</tt>". | ||
Edit $DRUPAL_ROOT/sites/default/civicrm.settings.php: | Edit <tt>$DRUPAL_ROOT/sites/default/civicrm.settings.php</tt>: | ||
# Update the database connection string for the Drupal database CIVICRM_UF_DSN. | # Update the database connection string for the Drupal database CIVICRM_UF_DSN. | ||
# Update the database connection string for the CiviCRM database CIVICRM_DSN. | # Update the database connection string for the CiviCRM database CIVICRM_DSN. | ||
# Update the CiviCRM root path $civicrm_root. | # Update the CiviCRM root path $civicrm_root to be "<tt>$DRUPAL_ROOT/sites/all/modules/civicrm</tt>". | ||
# Update the CiviCRM template folder CIVICRM_TEMPLATE_COMPILEDIR | # Update the CiviCRM template folder CIVICRM_TEMPLATE_COMPILEDIR to be "<tt>$DRUPAL_ROOT/sites/default/files/civicrm/templates_c/</tt>". | ||
Make these two files read only ($APACHE_USER is the user your Apache runs as, "<tt>www-data</tt>" on Ubuntu): | |||
# Make sure the full paths are correct | chmod 0400 settings.php civicrm.settings.php | ||
# Make it read-only, and readable by apache only. | sudo chown $APACHE_USER settings.php civicrm.settings.php | ||
Edit <tt>$DRUPAL_ROOT/sites/default/files/civicrm/upload/Config.IDS.ini</tt>: | |||
# Make sure the full paths are correct (<tt>$DRUPAL_ROOT/sites/...</tt>) | |||
# Make it read-only, and readable by the apache user only: | |||
chmod 0400 Config.IDS.ini | |||
sudo chown $APACHE_USER Config.IDS.ini | |||
Verify that the following files & folders exist and are apache user writeable and other users readable: | Verify that the following files & folders exist and are apache user writeable and other users readable: | ||
| Line 88: | Line 91: | ||
# $DRUPAL_ROOT/sites/default/files/ (and all subfolders) | # $DRUPAL_ROOT/sites/default/files/ (and all subfolders) | ||
# $DRUPAL_ROOT/cache/ | # $DRUPAL_ROOT/cache/ | ||
== View Site == | == View Site == | ||
From here on, replace $SITE with the | From here on, replace $SITE with the URL you plan to use to access drumbeat.org on your local web server, e.g. | ||
localhost/drumbeat.org | |||
Access | Access | ||
| Line 107: | Line 108: | ||
Access | Access | ||
http://$SITE/user/ | http://$SITE/user/ | ||
If you can reach the above but not this one, mod_rewrite may not be working. | If you can reach the above but not this one, mod_rewrite may not be working. | ||