Re: PEAR Cache: strange safe mode restriction with file container

From: Date: Wed, 15 Feb 2006 21:42:24 +0000
Subject: Re: PEAR Cache: strange safe mode restriction with file container
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-22998@lists.php.net to get a copy of this message
On 2/15/06, Markus Ernst <derernst@gmx.ch> wrote: > Hi > > I had to install my application which runs well on some servers with > PHP4 in a PHP5 environment. Now there is a strange issue with PEAR Cache: > > Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The > script whose uid is 10180 is not allowed to access > /home/httpd/vhosts/mysite.com/httpdocs/site/cache/inhalt owned by uid 48 > in > /home/httpd/vhosts/cuervoysobrinos.com/httpdocs/tools/PEAR/Cache/Container/file.php > on line 339 > > Anyway this is the group directory that was created by the file > container script at line 119. So how can it be that a directory created > by this script belongs to another user? This looks very strange to me... > > Deleting the group directories and recreating them manually and chmoding > to 777 results in no more warnings, the sub-group directories will be > created but left empty. > > Is this a PHP5 issue? Safe_mode is also active on the other servers with > PHP4, where the application runs smoothly. Or do I have to look for any > kind of setting my ISP could have changed? > I suggest checking the usernames of the uids, the checking the php.ini file for relevant settings, checking the user that apache runs as, and finally asking your hoster. ;-) -- Justin Patrin

« previous php.pear.general (#22998) next »