Current time: 04-19-2024, 11:46 PM Hello There, Guest! (LoginRegister)


Post Reply 
open_basedir problem !
Author Message
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #1
open_basedir problem !
Hi,

I'm still using VHCS2 in the wait for a good update script.
Recently (I guess after some updates) I started having this open_basedir restriction in effect.
It appears in lot of places, and I hope there is one simple solution for this problem.

I read that this problem was to hardcoded stuff in PHP5, ok, so what is the solution?

Using:
Latest PHP5
Latest Apache2.2
Debian Sarge

I hope you guys know this Wink

Thanks..

/E
05-08-2007 12:21 AM
Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #2
RE: open_basedir problem !
you mean the ftp-rawlist problem ?
where does this occur in vhcs2 ?
05-08-2007 12:38 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #3
RE: open_basedir problem !
I sent a PM to you with the URLs where I could find this problem.

/E
05-08-2007 12:59 AM
Find all posts by this user Quote this message in a reply
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #4
RE: open_basedir problem !
Anything new on this Malte ?

/E
05-10-2007 06:28 AM
Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #5
RE: open_basedir problem !
yeah i wrote several times now in the tracker & forum that this depends on failures in php versions.

On debian it got fixed in newer Versions (my experience so far).
It seems to resist on ubuntu distributions and maybe gentoo.

A solution is getting a php version where the system temp dir is not hardcoded and thus different from the phptmp - or add /tmp to the list of allowed dirs in the openbasedir setting in your php.ini .
05-11-2007 02:04 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #6
RE: open_basedir problem !
It doesn't help.
This is what I get:
Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/var/www/virtual/boshosting.net/htdocs/..) is not within the allowed path(s): (/var/www/virtual/boshosting.net/:/usr/share/php/:/tmp/) in /var/www/virtual/boshosting.net/htdocs/diagnostics.php on line 267

Very wierd.
And as I said I'm already running latest PHP (5.2.0-10) on Debian Sarge.

/E
05-11-2007 05:29 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #7
RE: open_basedir problem !
You're right - it's strange
the file seems to be underneath the

Maybe try to disable open_basedir - only temporary of course...
just to see if that really is the point
05-11-2007 06:22 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #8
RE: open_basedir problem !
How do I turn it of ?

/E
05-11-2007 06:23 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #9
RE: open_basedir problem !
for every domain there are php.ini files situated under
/var/www/fcgi/<domain>/php4|5/php.ini
domain "master" is ispcp itself.

I think you should find the right php.ini in:
/var/www/fcgi/boshosting.net/php4/php.ini
and there is a line open_basedir...
(after commenting, restart apache)
05-11-2007 06:29 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #10
RE: open_basedir problem !
Hmm, maybe I forgot to say I'm still running VHCS2 Sad
I don't have that fcgi folder.

/E
05-11-2007 06:32 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)