Drumbeat/Website/Install: Difference between revisions

no edit summary
No edit summary
Line 4: Line 4:


(Debian/Ubuntu package names in brackets)
(Debian/Ubuntu package names in brackets)
====Compulsory====


* PHP 5.2 (php5)
* PHP 5.2 (php5)
* Apache 2.x (apache2)
* Apache 2.x (apache2)
* MySQL 5 (mysql-server)
* MySQL 5 (mysql-server)
* ... any more? XXX
* ... any more? XXX php5-mysql? php5-gd?
* memcached (memcached) XXX?
 
* php5-memcache 2.2.5 (php5-memcache) - not 3.x, which Ubuntu 9.10 ships
====Optional====


XXX Can people do without memcached for single-user testing? I would say for the vast majority of bugs not having memcache will not make much difference, only if your fixing memcache specific problems or running performance test will it be necessary to have it installed. [booker]  Is it complex to set up?  no, you have to  sudo aptitude install memcached .. and then .. sudo aptitude install php5-memcache  and open port 11211 for localhost (going from memory) [booker]
You only need memcache if you are running performance testing or debugging memcache problems.


* memcached (memcached)
* php5-memcache 2.2.5 (php5-memcache) - not 3.x, which Ubuntu 9.10 ships


XXX Where do people get the older version of php5-memcache?
XXX Where do people get the older version of php5-memcache?
Line 21: Line 25:
=== PHP 5.2 ===
=== PHP 5.2 ===


XXX where do these changes go?
Edit /etc/php5/apache2/php.ini and make the following changes:
 
* memory_limit = 128M
* max_execution_time = 300
* upload_max_filesize = 8M


* config tweaks: memory_limit = 128M, max_execution_time = 300, upload_max_filesize = 8M (or your preference - affects file uploads to the site) How do you install this stuff?  Need to modify php.ini using sudo nano /etc/php5/apache2/php.ini if your editor of choice is nano and then restart apache with sudo /etc/init.d/apache2 reload [booker]
* libgd2 for image manipulation - (XXXphp5-gd module + dependencies?)
* libgd2 for image manipulation - (XXXphp5-gd module + dependencies?)
* pecl module "uploadprogress" for enhanced ajax uploads (XXXwhere to find and how to install?)
* pecl module "uploadprogress" for enhanced ajax uploads (XXXwhere to find and how to install?)
* sendmail support (XXXphp-mail module? Sendmail itself? Is this needed for everyone?) currently i use postfix, easy to setup with sudo aptitude install postfix  [booker]
* sendmail support (XXXphp-mail module? Sendmail itself? Is this needed for everyone?)
 
currently i use postfix, easy to setup with sudo aptitude install postfix  [booker]


=== Apache 2 ===
=== Apache 2 ===
Line 50: Line 59:


  svn co http://svn.mozilla.org/projects/crm/trunk /var/www/drumbeat.org
  svn co http://svn.mozilla.org/projects/crm/trunk /var/www/drumbeat.org
or
svn co https://svn.mozilla.org/projects/crm/trunk /var/www/drumbeat.org


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 /var/www/drumbeat.org
  svn co svn+ssh://svn.mozilla.org/projects/crm/trunk /var/www/drumbeat.org
svn co https://svn.mozilla.org/projects/crm/trunk /var/www/drumbeat.org (alternative)


XXX Is this the right directory to check out into? Or do we say to put it elsewhere and use a symlink? perhaps instead of /var/www/drumbeat.org we could have [local directory] [booker]
XXX Is this the right directory to check out into? Or do we say to put it elsewhere and use a symlink? perhaps instead of /var/www/drumbeat.org we could have [local directory] [booker] Yes, but which would be better? - Gerv


== Additional Configuration ==
== Additional Configuration ==
Line 68: Line 78:
Add the following line to /etc/crontab (XXX or is there a better way in modern OSes?)
Add the following line to /etc/crontab (XXX or is there a better way in modern OSes?)


10 * * * * wget -q -O /dev/null http://{drumbeat_site_url}/cron.php
10 * * * * wget -q -O /dev/null http://{drumbeat_site_url}/cron.php
 
XXXWhat's the slash do? i have deleted the / as it is an error  [booker]


=== boost module ===
=== boost module ===
Line 80: Line 88:
=== Drupal file upload folder ===
=== Drupal file upload folder ===


* modify "sites/default/files" from the Drupal root apache writeable, other readable. Something like .. sudo chown -R USER:www-data files .. then .. sudo chmod -R g+w files [booker]
Set permissions on the $DRUPAL_ROOT/sites/default/files directory (replace $DRUPAL_ROOT and $USER with appropriate values):
 
cd $DRUPAL_ROOT/sites/default/
  sudo chown -R $USER:www-data files
sudo chmod -R g+w files


=== Web UI settings ===
=== Web UI settings ===
Line 105: Line 117:
''To be added''
''To be added''


ill be happy to assist anyone who wishes to helpout with Drumbeat [booker]
I'll be happy to assist anyone who wishes to help out with Drumbeat [booker]


== Optional Pieces ==
== Optional Pieces ==
Line 113: Line 125:
* /usr/bin/memcached -m 2048 -p 11210 -u {apache user} -l 127.0.0.1
* /usr/bin/memcached -m 2048 -p 11210 -u {apache user} -l 127.0.0.1
* Check settings in {Drupal root}/sites/default/settings.php match (port)
* Check settings in {Drupal root}/sites/default/settings.php match (port)
* Make sure local services can access port 11210 on localhost XXX how? telnet test?


=== Apache Solr ===
=== Apache Solr ===
Account confirmers, Anti-spam team, Confirmed users, Bureaucrats and Sysops emeriti
4,925

edits