Problem with php move

No longer supported!

Moderator: Moderators

Problem with php move

Postby Kpiwara » Sat Jan 08, 2005 7:26 pm

Keeps giving this message

------------

Warning: Unable to create 'fot_barc/81074099e52355aea21dcbb29c541f6b.jpg': Permission denied in /home/k/kpiwara/public_html/upfotos.php on line 97

Warning: Unable to move '/tmp/phpWWTI66' to 'fot_barc/81074099e52355aea21dcbb29c541f6b.jpg' in /home/k/kpiwara/public_html/upfotos.php on line 97

------------

what should I do and how do i do ?

thanks
Kpiwara
Newbie
 
Posts: 1
Joined: Sat Jan 08, 2005 7:22 pm

Postby GSake » Mon Jan 10, 2005 3:41 pm

it maybe has to do with your permissions on your photos.php file.

otherwise check the options of the script your using
GSake
Junior Member
 
Posts: 18
Joined: Sat Jan 01, 2005 7:00 pm
Location: Hellas

Postby afonic » Mon Jan 10, 2005 3:43 pm

I *think* these functions are among the disabled ones in safe_mod, so you cannot use them!

PS. Epitelous enas allos Ellinas edw mesa! Pws kai etsi?
User avatar
afonic
Forum Admin
Forum Admin
 
Posts: 686
Joined: Tue Oct 14, 2003 11:11 pm
Location: Salonica, Greece

Postby DenisF » Mon Jan 10, 2005 3:52 pm

It's not the functions that are disabled.
it's the permissions.

see apache runs as httpd/apache/nobody, while your home directory is owned by you.
and safe mode restrics any kind of file operations to the user who owns the proccess. in that case - apache.

In plain english; that script is incompatible with polarhome :)
Image
[ FAQ ] :: [ Policy ] :: [ Port Forwarding Guide ] :: [ Search ]
User avatar
DenisF
Forum Admin
Forum Admin
 
Posts: 679
Joined: Mon Dec 16, 2002 9:09 pm
Location: Israhell

Postby miker_alpha » Tue Jan 11, 2005 8:02 am

re: file permissions
I don't know how to do this on Un*x, but on OpenVMS you can setup an ACL (Access Control List) on files/directories to allow specific users specific capabilities (e.g. allow the Apache user read/write/delete abilities on a file.)

Also on the OpenVMS alpha.polarhome server your public_html directory is set up with such an ACL. Perhaps if you moved your files to a sub-directory of public_html Apache would have access? (comments, please...)

Sorry for my lack of Un*x knowledge :(

MikeR
Look for OpenVMS help on my webpage
Check for QOTD here.
Image
User avatar
miker_alpha
Moderator
Moderator
 
Posts: 256
Joined: Sat May 08, 2004 9:20 am
Location: Kibbutz Tzora, Israel

Postby GSake » Tue Jan 11, 2005 2:49 pm

The permissions in UNIX are set by CHMOD function, if you are asking this... I didn't understand...

e.g. full permissions=777
owner-group-user permissions
GSake
Junior Member
 
Posts: 18
Joined: Sat Jan 01, 2005 7:00 pm
Location: Hellas

Postby DenisF » Tue Jan 11, 2005 3:49 pm

Safe mode determines if the file is writable by checking it's owner, which can be set using chown.
however;
1) a regular user can't chown his files to some other user
2) you can't have multiple owners per file

plain english:
unless a chown -R apache:apache /home/*/*/public_html/* is executed by root, safe mode will deny any kind of file operations.
Image
[ FAQ ] :: [ Policy ] :: [ Port Forwarding Guide ] :: [ Search ]
User avatar
DenisF
Forum Admin
Forum Admin
 
Posts: 679
Joined: Mon Dec 16, 2002 9:09 pm
Location: Israhell


Return to FTP accounts

Who is online

Users browsing this forum: No registered users and 12 guests

cron