Drumbeat/Website/Install: Difference between revisions

no edit summary
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 Where is all this configured?
* innodb (XXX is there actually anything to do here? my.cnf on Ubuntu says InnoDB is enabled by default...)


* mysqli connection method
== Get Code ==
* innodb
* 1x database for drupal, 1x database for civicrm
* Modify connection strings in {Drupal root}/sites/default/settings.php and {Drupal root}/sites/default/civicrm.settings.php (these files are very well commented, the strings are laid out and the format explained)


XXX examples would still help
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.


== Get Code ==
Run this command:


This includes our own copies of Drupal, various Drupal modules, and CiviCRM. Run this command:
  svn co http://svn.mozilla.org/projects/crm/trunk $DRUPAL_ROOT
 
  svn co http://svn.mozilla.org/projects/crm/trunk [drumbeat local directory]
or
or
  svn co https://svn.mozilla.org/projects/crm/trunk [drumbeat local directory]
  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 [drumbeat local directory]
  svn co svn+ssh://svn.mozilla.org/projects/crm/trunk $DRUPAL_ROOT
 
Replace [drumbeat local directory] with the place you want to put the code - e.g. /var/www/drumbeat.org . If you don't put it in /var/www, you'll need a symlink so the webserver can see it.


=== 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 both database connection strings (one is for Drupal database, the other for CiviCRM). i.e. $db_url['default'] & $db_url['mozcrm_civicrm'].  
# Update $db_url['default'] & $db_url['mozcrm_civicrm'] database connection strings ('default' is for the Drupal database, the other is for CiviCRM).  
# Memcached settings should be verified. i.e. check the correct memcached port is specified.  
# Check the correct memcached port is specified.  
# Domain module include path must be updated to the full path right at the bottom of the file.
# 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>".  
# Make it read only.


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 it read only.


Edit $DRUPAL_ROOT/sites/default/files/upload/Config.IDS.ini:
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/
(More to come...)


== View Site ==
== View Site ==


From here on, replace $SITE with the place you have put Drumbeat on your local web server, e.g.
From here on, replace $SITE with the URL you plan to use to access drumbeat.org on your local web server, e.g.


http://localhost/drumbeat.org/
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.
Account confirmers, Anti-spam team, Confirmed users, Bureaucrats and Sysops emeriti
4,925

edits