Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Q & A : open_basedir restriction
#1
Question:
Here is my problem.

I have a script. For it to work correctly the writer says
open_basedir must have “no Value”

He just took a look at my php.ini and said I need to correct it .
If you look at my php.ini here you will see Master value is setup correctly (meaning “open_basedir” is set to no value)
However Local value is not. See it here
http://xxxxx.com/phpinfo.php


You will see local is set to
var/www/vhosts/mydomain.com/mydomain.com

How can I set it to “no value”?

The only place I saw it was in /var/www/vhosts/ehcp/apachehcp.conf
If I try to edit it there Apache fails to start.

Please help



Answer:

You can find some posts about this topic in http://www.ehcp.net/?q=search/node/open_basedir

To explain (maybe again) your case:
<li>1st, making open_basedir empty, meaning disabling it, and be sure that, this is a serious server security hole, with disabled, website owner can do bad things with your server,
<li> however, if you still want to disable:
<li>to disable for all domains, edit apachetemplate file, then options->sync domains
<li>to disable for only a single domain, click "edit apache template", delete open_basedir line




Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#2
Thanks for the quick response.
I made the Changes

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#3
another q & a:

when i run my code, i got this error

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /var/www/vhosts/drit/demo.blogdns.net/httpdocs/ar.php on line 79

but i check from apache2 php.ini, the safe_mode is off and open_basedir is not value.
do you have better suggestion?

Answer:

open_basedir is restricted in apachetemplate file, in apache config (for all domains).
open_basedir is a security measure, and should not be disabled.
if you still want to disable it, choose domain, click on "edit apache template" in ehcp gui, then, remove line saying open_basedir

Restored from old drupal forum, for user uid:2896 username:Netlink
You may reset your password to access your new account here.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping