Results 1 to 5 of 5
Thread: php safemode acces /tmp
-
09-25-2005, 09:49 PM #1WHT Addict
- Join Date
- Apr 2004
- Posts
- 111
php safemode acces /tmp
I got php running as apache module on 2 servers. I enable safemode.
on one server everything works ok (fedora 1)
on another (red hat 9) php cant access /tmp because of safemode restrictions.
/tmp and / have same permissions on both servers, and that is stricly php safemode related.
I compiled php 4.4.0, 5.0.4, 5.0.5 on both server. Everytime same result. On fedora there is access to /tmp or red hat 9 not.
I cant think of any diffrence between two servers other than os, but perhaps you can point me to right direction?
Does anyone have idea how to make /tmp accessible on red hat one?
ps. Dont answer off topic, dont lecture anyone that php in safemode cant access /tmp, dont propose me running php as cgi, dont propose any other means to replace safe mode.
-
09-26-2005, 09:11 AM #2Hosting provider
- Join Date
- May 2002
- Location
- Moscow
- Posts
- 1,602
don't teach community about how they can answer you ) ha -ha.
regarding your question - safemode not regards to this issue at all.
check permission to /tmp folder, check partition options (if you have /tmp partitions), check php.ini settings for tmp folder, check open_base_directory value.TK Rustelekom LLC Dedicated server since 2002, RIPE NCC member, LIR
-
09-26-2005, 10:13 AM #3Junior Guru Wannabe
- Join Date
- Sep 2005
- Posts
- 59
Is /tmp listed in open_basedir?
CoolWebServe - a great choice for offshore support and administration services
-
09-26-2005, 10:59 AM #4WHT Addict
- Join Date
- Apr 2004
- Posts
- 111
as I said this is not permission problem. /tmp of course is owned by root, but safemode should ignore this in case of /tmp - or maybe not. But I can't accept fact that on 1 server this is working on another not, with same permissions, same php version same php.ini.
setting of open_basedir does not affect safemode restrictions. its just another check.Last edited by nand; 09-26-2005 at 11:06 AM.
-
09-27-2005, 05:50 AM #5Junior Guru Wannabe
- Join Date
- Sep 2005
- Posts
- 59
But if it's there without /tmp in it - the dir won't be accessible.
Is /tmp mounted with some special options? Or has some special attrs on it?CoolWebServe - a great choice for offshore support and administration services