Results 1 to 14 of 14
-
03-31-2008, 10:16 AM #1Junior Guru
- Join Date
- Mar 2002
- Location
- Atlanta
- Posts
- 198
Turn off open_basedir? Need help...
I need help from the experts...
How can I turn off open_basedir completely from within .htaccess?
I'm finding conflicting advice on how this can be done, or even if it can.
Anyone?~ But that's just my opinion, I could be wrong...
-
03-31-2008, 10:30 AM #2Junior Guru
- Join Date
- Mar 2002
- Location
- Atlanta
- Posts
- 198
I'm thinking it's something like...
php_admin_value open_basedir something
...but I don't know what the "something" is.~ But that's just my opinion, I could be wrong...
-
03-31-2008, 10:53 AM #3Disabled
- Join Date
- Dec 2002
- Location
- chica go go
- Posts
- 11,876
You can't disable open_basedir via .htaccess. But, open_basedir specifications are usually specified in httpd.conf. What control panel are you using?
-
03-31-2008, 10:54 AM #4Junior Guru
- Join Date
- Mar 2002
- Location
- Atlanta
- Posts
- 198
-
03-31-2008, 10:57 AM #5Disabled
- Join Date
- Dec 2002
- Location
- chica go go
- Posts
- 11,876
You're going to have to ask your host to disable it for you, However, on most hsphere systems (at least the ones i work with), your open_basedir value is set to allow access to /hsphere/local/home/yourusername/domain.com/ and everything under that. You can probably get your host to allow access to /hsphere/local/home/yourusername/ for you, but anthing beyond that is going to be rocky because it would be opening their systems up to insecurity.
Are you sure you configured your script properly with the proper paths?
-
03-31-2008, 11:04 AM #6Junior Guru
- Join Date
- Mar 2002
- Location
- Atlanta
- Posts
- 198
Thanks Mike. I suspect that the problem is with the script, but unfortunately, it's not mine... It's a script in the new version of WordPress (2.5). And, I am very much the novice in this area, but it does look (to me) like their script is not interpreting a variable correctly.
Maybe you can spot it...
Here's the error displayed in WordPress (I'll just change the user name and domain name):
Warning: is_writable(): open_basedir restriction in effect. File(/hsphere/local/var/httpd/logs/php_error.log) is not within the allowed path(s): (/hsphere/local/home/MyUserName/MyDomainName.com:/tmp:/var/tmp:/usr/local/lib/php) in /hsphere/local/home/MyUserName/MyDomainName.com/wp-includes/wp-db.php on line 199
In the first part of the error -- /hsphere/local/var/httpd/logs/php_error.log -- isn't "var" a variable, which should be interpreted by the script as /MyUserName/MyDomainName/?
Or, am I way off base here?~ But that's just my opinion, I could be wrong...
-
03-31-2008, 11:10 AM #7Disabled
- Join Date
- Dec 2002
- Location
- chica go go
- Posts
- 11,876
Could you see if you are still receiving this error?
-
03-31-2008, 11:12 AM #8Retired Moderator
- Join Date
- Mar 2004
- Location
- Singapore
- Posts
- 6,990
open_basedir can only be set by inside the php.ini or httpd.conf, it cannot be set at the .htaccess level. You will need to ask for help from your host. I am not sure if this works, but try putting a php.ini at the root directory.
-
03-31-2008, 11:22 AM #9Junior Guru
- Join Date
- Mar 2002
- Location
- Atlanta
- Posts
- 198
-
03-31-2008, 11:23 AM #10Disabled
- Join Date
- Dec 2002
- Location
- chica go go
- Posts
- 11,876
-
03-31-2008, 11:29 AM #11Junior Guru
- Join Date
- Mar 2002
- Location
- Atlanta
- Posts
- 198
-
03-31-2008, 11:46 AM #12Disabled
- Join Date
- Dec 2002
- Location
- chica go go
- Posts
- 11,876
It looks like another person did reply to you. I just made another response to your ticket, could you please verify that you did receive it?
-
03-31-2008, 11:51 AM #13Junior Guru
- Join Date
- Mar 2002
- Location
- Atlanta
- Posts
- 198
-
04-01-2008, 11:41 AM #14Web Hosting Master
- Join Date
- Oct 2004
- Location
- Kerala, India
- Posts
- 4,771
Add the needed paths to the open_basedir section.
David | www.cliffsupport.com
Affordable Server Management Solutions sales AT cliffsupport DOT com
CliffWebManager | Access WHM from iPhone and Android