Author Topic: How would I fix this? "open_basedir restriction in effect"  (Read 3396 times)

NukeSter

  • Newbie
  • *
  • Posts: 25
    • View Profile
How would I fix this? "open_basedir restriction in effect"
« on: December 13, 2014, 12:15:42 pm »
realpath(): open_basedir restriction in effect
« Last Edit: December 16, 2014, 05:02:31 pm by earnolmartin »

earnolmartin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 302
    • View Profile
Re: How would i fix this ?
« Reply #1 on: December 15, 2014, 08:49:26 pm »
Why do you need the realpath?  This is a PHP security setting.  It can be removed on a site specific basis by editing the apache template for the domain.  However, this is not recommended.  Users should be limited to their website home files.

NukeSter

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: How would i fix this ?
« Reply #2 on: December 16, 2014, 02:21:57 am »
ok i only need it for one domain and its mine so can you help me please ?

earnolmartin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 302
    • View Profile
Re: How would i fix this ?
« Reply #3 on: December 16, 2014, 05:02:07 pm »
ok i only need it for one domain and its mine so can you help me please ?

Login as admin, select the domain you want to remove the restriction from in the panel, and then click on Edit Apache Template.

Scroll down to the bottom of the apache template text and find the <VirtualHost *> entry that has the server alias with www.yourdomain.com.

Remove the following lines from this VirtualHost entry (should be similar to what is shown below):

Code: [Select]
php_admin_value open_basedir "{homedir}:{otherpaths}"
php_admin_value upload_tmp_dir {homedir}/{otherpaths}
php_admin_value session.save_path 0;660;{homedir}/{otherpaths}

Save the template.  The restriction should no longer apply to this domain after the EHCP daemon runs the domain sync.  If that doesn't happen within a minute, restart the ehcp daemon by running this command:

Code: [Select]
sudo service ehcp restart
« Last Edit: December 16, 2014, 05:04:21 pm by earnolmartin »

NukeSter

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: How would I fix this? "open_basedir restriction in effect"
« Reply #4 on: December 16, 2014, 10:00:00 pm »
Thank you for your help. ;D

I was wondering if you could help me with installing ioncube ?

NukeSter

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: How would I fix this? "open_basedir restriction in effect"
« Reply #5 on: December 17, 2014, 10:21:15 pm »
I got it installed thanks anyways.

earnolmartin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 302
    • View Profile
Re: How would I fix this? "open_basedir restriction in effect"
« Reply #6 on: December 17, 2014, 11:53:37 pm »
I got it installed thanks anyways.

Cool, glad you got it working!