FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » GOLBALS.php & Custom_avatars won't delete
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: GOLBALS.php & Custom_avatars won't delete [message #301 is a reply to message #299] Thu, 31 January 2002 20:33 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma:
Senior Member
Administrator
Core Developer
Hydro wrote on Thu, 31 January 2002 2:25 PM

i also get no permission in the style dir.. cant upload.write.del


The reason is because the webserver is the "owner" of the files.

However, since you are the owner of the directory structure, you can chmod things back so that you may edit the files.

For Example:
My forum data was installed into /home/forum/forum/, my styles in stored inside /home/forum/forum/styles/. The directory /home/forum/forum/ is owned by nobody:nobody (user:group), while I am user (myuser:mygroup). Here is what I do:

This makes me the owner of those directories
chown myuser:mygroup /home/forum/forum/ /home/forum/forum/styles/

Give 666 permissions to all files inside styles/ directory so webserver can edit them.
chmod 666 /home/forum/forum/styles/*

if you do not have a shell account, simply write a php script, and put 2nd command I've listed inside exec() or system() call.

To remove a file you can use php's unlink() command and to remove a directory you can use rmdir() command.


FUDforum Core Developer
[Message index]
 
Read Message icon8.gif
Read Message
Read Message icon8.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 1.10 update problem
Next Topic: Query Failed
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Dec 12 02:34:37 GMT 2024

Total time taken to generate the page: 0.03971 seconds