vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Attachments Not working (https://vborg.vbsupport.ru/showthread.php?t=268943)

FReeSTER 08-22-2011 06:06 PM

Attachments Not working
 
Im getting this error when I click on any attachment on the forum.

Code:

Warning: fopen(/home/myfreene/public_html/forums/attachment/1/1/121.attach) [function.fopen]: failed to open stream: Permission denied in [path]/attachment.php on line 252
any idea how to fix it?

kh99 08-22-2011 06:26 PM

I think you need to make sure all the files under /home/myfreene/public_html/forums/attachment are readable by whatever user that the web server runs as (and maybe change them to be owned by that user, if they aren't already). Also, the directories need to have the right permissions.

I don't know why that would be happening - you may also need to change the mask used to set permissions for newly created file.

FReeSTER 08-22-2011 06:45 PM

Ok fixed it by adding them to the database but one I try to move them back to the filesystem I get this
Code:

We attempted to write a test file to /home/myfreene/public_html/forums/attachments, but we were unsuccessful. Please verify that the web server has write/delete permissions for this path.
I did chmod the folder to 0777 and still get that error

kh99 08-22-2011 06:49 PM

If you look now, are the permissions still the same for that folder, and if there are any subfolders that have been created, do they have the correct permissions?

FReeSTER 08-22-2011 06:52 PM

all the folders and files inside the attachment folder are set to 0777 yes.
But since it was not letting me use the same folder I try a new folder attachments with permissions set to 0777 as well but I get the same massage on both


All times are GMT. The time now is 05:05 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00938 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete