
-----------------------------------
Homer_simpson
Fri Apr 09, 2004 7:53 pm

file upload HEEEEEEEEEEEEEEEEEEELP!!!
-----------------------------------
ok i got this hosting, domain,etc....
http://boobnewb.com/forum is the address to the problem
it's a phpbb forum...
but when i try uploading files(for example avatars) here's what it gives me...

Warning: move_uploaded_file(./images/avatars/1979652398407736a3afc8b.jpg): failed to open stream: Permission denied in /home/wwwboob/public_html/forum/includes/usercp_avatar.php on line 227

Warning: move_uploaded_file(): Unable to move '/tmp/phpKDqgEZ' to './images/avatars/1979652398407736a3afc8b.jpg' in /home/wwwboob/public_html/forum/includes/usercp_avatar.php on line 227

Warning: Cannot modify header information - headers already sent by (output started at /home/wwwboob/public_html/forum/includes/usercp_avatar.php:227) in /home/wwwboob/public_html/forum/includes/page_header.php on line 474

Warning: Cannot modify header information - headers already sent by (output started at /home/wwwboob/public_html/forum/includes/usercp_avatar.php:227) in /home/wwwboob/public_html/forum/includes/page_header.php on line 476

Warning: Cannot modify header information - headers already sent by (output started at /home/wwwboob/public_html/forum/includes/usercp_avatar.php:227) in /home/wwwboob/public_html/forum/includes/page_header.php on line 477


HEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEELP!

-----------------------------------
Amailer
Fri Apr 09, 2004 7:59 pm


-----------------------------------
set your avatar file permissions to CHMOD 777 (i think that's the righ one ofr linux) (/images/avatar/)

-----------------------------------
Homer_simpson
Fri Apr 09, 2004 8:58 pm


-----------------------------------
nvm...thx for feed back tho

-----------------------------------
wtd
Fri Apr 09, 2004 9:24 pm


-----------------------------------
set your avatar file permissions to CHMOD 777 (i think that's the righ one ofr linux) (/images/avatar/)

You should modify that a bit.  You dn't need to be granting execute privileges for an image.  Doing so opens up security issues if someone wanted to do something nasty like naming an evil shell script the same thing you name your image.  :-)

-----------------------------------
PaddyLong
Sat Apr 10, 2004 11:42 am


-----------------------------------
set the permissions on the directory to 777 .. although, you might be able to get away with 755 or maybe even 700 .. not sure how webservers treat the client connections :/

-----------------------------------
Amailer
Sat Apr 10, 2004 1:35 pm


-----------------------------------
set your avatar file permissions to CHMOD 777 (i think that's the righ one ofr linux) (/images/avatar/)

You should modify that a bit.  You dn't need to be granting execute privileges for an image.  Doing so opens up security issues if someone wanted to do something nasty like naming an evil shell script the same thing you name your image.  :-)

agr, i said file i ment folder (why file?) lol

-----------------------------------
wtd
Sat Apr 10, 2004 3:30 pm


-----------------------------------
set the permissions on the directory to 777 .. although, you might be able to get away with 755 or maybe even 700 .. not sure how webservers treat the client connections :/

Generally as "world", rather than "owner" or "group".  You do not want to give the world execute privileges to an entire folder.  That should be decided on a file by file basis.

-----------------------------------
PaddyLong
Sun Apr 11, 2004 2:43 pm


-----------------------------------
for writing to the directory you need wx on it.  733 not 755, donno why I said 5 before

and you need read (444) on the file...
