This documentation relates to CiviCRM version 3.2. It's not maintained anymore.
Current version of documentation.

Lighty Install

Skip to end of metadata
Go to start of metadata

This page refers to outdated version of CiviCRM. Check current version of documentation.


Documentation Search


CiviCRM 3.2 Documentation

Support and Participation

Developer Resources


CiviCRM book!

Make sure to check out Understanding CiviCRM as well! You can also support this project by ordering a hard copy.

HOWTO Install CiviCRM running as FastCGI with Lighttpd

The main motivation is for taking this install path is that in a shared hosting environment, FastCGI gives you the ability to wrap the php interpreter in suexec while not sacrificing any performance. You pay in RAM usage, but RAM is cheap compared to recovering from a breakin.

These notes were taken while getting CiviCRM into a state where I could access it via the SOAP interface on my localhost. In particular, I did not looked close at file permissions or deal with any issues related to multiple-vhosts sharing the same install.

Software versions used while taking these notes:

  • FreeBSD 6.0-RELEASE
  • mysql-server-4.1.2
  • lighttpd-1.4.11_1
  • php-5.1.4
  • drupal-4.6.9
  • civicrm-drupal-php5-1.5BETA-rev6825.tgz

Install Software

Install Lighttpd

Other than WITH_OPENSSL, most of these settings don't really matter--they just happen to be what I used.

Install Drupal

If you don't already have PHP5 installed, this will install that first. You want to be sure to configure PHP to set WITH_CGI and WITH_FASTCGI to true. WITH_DISCARD is also very useful.

Install PHP Modules

By default, FreeBSD has a "sparse" PHP install. You may need to install some of the above ports.

Install CiviCRM

Setup Database

Setup MySQL for Drupal

Obviously, change the drupal password if any untrusted machines can access your computer.

Configure Software

Configure Drupal
Configure Lighttpd

Rewrite rules copied from http://drupal.org/node/50243.

On my first attempt, I had a bunch of text like {{ {BLOCK.header.logo} }} appear on the site. According to this node http://drupal.org/node/42080, this is due to changes in PHP. To fix, open the URL http://localhost/?q=admin/themes and enable and set as default the marvin theme.

Configure CiviCRM

XXX: Need to mkdir upload directories and set permissions.

#

Labels
  • None

Creative Commons License
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-Share Alike 3.0 United States Licence.