HOWTO Install CiviCRM running as FastCGI with LighttpdThe 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.
Software versions used while taking these notes:
Install SoftwareInstall 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 DatabaseSetup MySQL for Drupal Obviously, change the drupal password if any untrusted machines can access your computer. Configure SoftwareConfigure 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. # |
Lighty Install
Labels
