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

Error Access Denied, Search

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.1 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.

Access Denied error when trying to use CiviCRM search.

On some installations, users have reported that some browsers get an "Access Denied" error when trying to run a seach in CiviCRM (Find Contacts).

This is apparently a problem related to virtual paths used in some virtual hosting environments, and a solution that worked for some folks is to change the absolute paths in civicrm.settings.php to relative paths.

— Contributed by Kathy Marks ----------
This is the configuration I got — it should work for anyone with a ROOT DIRECTORY installation of Drupal. In civicrm.settings.php :

Under "File system paths for this install" change:

global $civicrm_root;

$civicrm_root = '/var/www/htdocs/civicspace/modules/civicrm';

define( 'CIVICRM_TEMPLATE_COMPILEDIR',  '/var/www/htdocs/civicspace/files/civicrm/templates_c');

define( 'CIVICRM_UPLOADDIR', '/var/www/htdocs/civicspace/files/civicrm/upload/');


global $civicrm_root;

$civicrm_root = './modules/civicrm';

define( 'CIVICRM_TEMPLATE_COMPILEDIR', './files/civicrm/templates_c');

define( 'CIVICRM_UPLOADDIR', './files/civicrm/upload/');

Under "Site URLs" change:

define( 'CIVICRM_UF_BASEURL', '');

define( 'CIVICRM_HTTPBASE', '/civicspace/');

define( 'CIVICRM_RESOURCEBASE', '/civicspace/modules/civicrm/');

define( 'CIVICRM_MAINMENU', '/civicspace/civicrm');


define( 'CIVICRM_UF_BASEURL', '/');

define( 'CIVICRM_HTTPBASE', '/');

define( 'CIVICRM_RESOURCEBASE', '/modules/civicrm/');

define( 'CIVICRM_MAINMENU', '/civicrm/');
  • 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.