Blank Screen on Multi-site InstallationProblem Description: I have placed the civicrm module in my /sites/sitename.co.uk/modules directory, and adjusted civicrm.settings.php accordingly. I have also set up a /sites/sitename.co.co.uk/modules/civicrmfiles directory for the templates_c files etc (as my aim is to have a central codebase for the main civicrm files once it's all working which i symlink to from the sites/sitename.com/modules location, so I want to keep the site specific files separate). This seems to work ok, and the installation created the templates_c directory, etc. in the right place. However, I'm just getting a blank main area when I select 'CiviCRM' in my drupal site. Looking at the logs it seems that what is going wrong is that Smarty is trying to copy a file from /tmp to the templates_c directory, and receiving a file error: rename(/tmp/wrt8I6Kye,/home/httpd/vhosts/sharedcodebase.com/httpdocs/sites/site Solution: What needed to be done was to create a file called vhost.conf in the conf directory of website.co.uk. That file should read: <Directory path/to/website.co.uk/httpdocs> php_admin_value open_basedir /path/to/website.co.uk/httpdocs :/tmp:/path/to/codebase.com/httpdocs/sites/website.co.uk/files </Directory> Save this file, then run the following command to make Plesk recognize the changes: Then do $ Service httpd restart |
Labels
