CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Civicrm creating dir at root
Pages: [1]

Author Topic: Civicrm creating dir at root  (Read 1856 times)

waqluv4tr

  • Guest
Civicrm creating dir at root
May 28, 2008, 06:38:12 am
Hello everybody i am looking for the help.Any help would be much apperciate.

I migrate site to plesk server i have multi-site but i have error of Civicrm about open_basedir restriction because of this whole site goes down if i disable the civicrm module site works perfect.

i have following error just watched from watchdog table..otherwise in browser error: internet exporer cannot display page.

is_dir() [<a href='function.is-dir'>function.is-dir</a>]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/domain.eu/httpdocs:/tmp) in /var/www/vhosts/domian.eu/httpdocs/modules/civicrm/CRM/Utils/File.php on line 109.

$civicrm_root = /var/www/vhosts/domain.eu/httpdocs/modules/civicrm.



ANY KIND OF RESPONSE MUCH MUCH APPERICAT.

THANKS IN ADVANCE


MichaƂ Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Civicrm creating dir at root
May 28, 2008, 09:45:29 am
Can you please verify that your CIVICRM_TEMPLATE_COMPILEDIR in civicrm.settings.php is correct and points to a place within allowed path?

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

waqluv4tr

  • Guest
Re: Civicrm creating dir at root
May 28, 2008, 12:01:11 pm
Thanks for response.

the following path setting im using....

$civicrm_root = 'var/www/vhosts/dmain.eu/httpdocs/modules/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'var/www/vhosts/dmain.eu/httpdocs/civicrm/templates_c' );
/* and the CIVICRM_UPLOADDIR would be:*/
define( 'CIVICRM_UPLOADDIR','var/www/vhosts/dmain.eu/httpdocs/files/civicrm/upload/' );



Thanks,
waq

waqluv4tr

  • Guest
Re: Civicrm creating dir at root
May 28, 2008, 12:12:20 pm
Thanks for response.

the following path setting im using....

$civicrm_root = 'var/www/vhosts/dmain.eu/httpdocs/modules/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'var/www/vhosts/dmain.eu/httpdocs/civicrm/templates_c' );
/* and the CIVICRM_UPLOADDIR would be:*/
define( 'CIVICRM_UPLOADDIR','var/www/vhosts/dmain.eu/httpdocs/files/civicrm/upload/' );

allow path is
open_basedir = "/var/www/vhosts/dmain.eu/httpdocs:/tmp";

Thanks,
waq

waqluv4tr

  • Guest
Re: Civicrm creating dir at root
May 28, 2008, 12:22:34 pm
sorry correction in last post about  'CIVICRM_TEMPLATE_COMPILEDIR'

Thanks for response.

the following path setting im using....

$civicrm_root = '/var/www/vhosts/dmain.eu/httpdocs/modules/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/var/www/vhosts/dmain.eu/httpdocs/files/civicrm/templates_c/' );
/* and the CIVICRM_UPLOADDIR would be:*/
define( 'CIVICRM_UPLOADDIR','/var/www/vhosts/dmain.eu/httpdocs/files/civicrm/upload/' );

allow path is
open_basedir = "/var/www/vhosts/dmain.eu/httpdocs:/tmp";

Thanks,
waq

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Civicrm creating dir at root
June 07, 2008, 01:18:54 pm
I would ask your service provider to turn off open_basedir restrictions. As I recall, I had this same problem with the Drupal Flashvideo module; turning off open_basedir restrictions did the trick.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Civicrm creating dir at root

This forum was archived on 2017-11-26.