[Solved] Apache's file permission

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
angusfighter
Forum Newbie
Posts: 19
Joined: Sat Jul 09, 2005 8:07 pm

[Solved] Apache's file permission

Post by angusfighter »

dear all talented and helpful

i am frustrated with the case below
it sounds a PHP problem at first, but im suspecting now that it is an apache problem

when i was writing a PHP script, i desperately found that
i could not write files (fopen) or change the modes of files (chmod)
even i have checked, by is_writable(), the file has a permission:

Code: Select all

-rw-r--r--
i just try to access local files, not the one need to stream or what
is it anything do with apache's file permission directives setting?

i am using PHP 5.0.4 and Apache 1.3.33, with Mac OS X local server
thx for you guys notice this message....
Last edited by angusfighter on Tue Jul 12, 2005 9:03 pm, edited 1 time in total.
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Above, only the owner of the file has the write permission, so it looks like php isn't the owner. To view owner, group & etc try "ls -avl [path to dir]" if you've got shell access to a nix server or, if not, you could try displaying owners & groups in an ftp program.
angusfighter
Forum Newbie
Posts: 19
Joined: Sat Jul 09, 2005 8:07 pm

Post by angusfighter »

thx a lot

dear site admin
i edited the httpd.conf in Apache
and altered the running account from "www" to the windows account i'm using
and then it works.

More:
viewtopic.php?t=35403&highlight=
Post Reply