By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,278 Members | 1,357 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,278 IT Pros & Developers. It's quick & easy.

folder created, but no access

P: n/a
Hi there,

thats an error i try to solve for quite a while already but didn't find a
solution yet.
My problem: I'm writing a little cms, that should create a folderstructure,
so that you can put files in via ftp.

My script (simplified):
mkdir("00000031",0777); // creates a folder named with the id of a
database-record e.g. 00000031
chmod("00000031",0777); // sets the rights again to be sure, because i
experienced problems with mkdir not doing it sometimes in the past
chdir("00000031"); // should change to the folder but leads to:

Warning: SAFE MODE Restriction in effect. The script whose uid is 611 is not
allowed to access 00000035 owned by uid 60000 in /[...]/admin/admin.php on
line 85

Its clear, the script belongs to me (user 611) but the folder belongs to the
PHPuser 60000.
The Trial to solve this using mit (chown("00000031",611); ) unfortunately
leads to:

Warning: chown failed: Operation not permitted in /[...]/admin/admin.php on
line 84

What can i do in order to get access to the folder, for putting more folders
and files inside?
Thanks in advance,

Christopher
Jul 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"christopher vogt" <ch**************@rwth-aachen.de> wrote in message
news:bi**********@nets3.rz.RWTH-Aachen.DE...
Hi there,

thats an error i try to solve for quite a while already but didn't find a
solution yet.
My problem: I'm writing a little cms, that should create a folderstructure, so that you can put files in via ftp.

My script (simplified):
mkdir("00000031",0777); // creates a folder named with the id of a
database-record e.g. 00000031
chmod("00000031",0777); // sets the rights again to be sure, because i
experienced problems with mkdir not doing it sometimes in the past
chdir("00000031"); // should change to the folder but leads to:

Warning: SAFE MODE Restriction in effect. The script whose uid is 611 is not allowed to access 00000035 owned by uid 60000 in /[...]/admin/admin.php on
line 85

<snip>

This seems to be a case (as displayed in the clever error message) of php
being run in safe mode. Look that up and you'll have your answer and
possibly a solution if it is within your grasp (ie: you have access to the
server in question).
Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.