Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-10-2014, 10:16 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Attachments not uploading

My clients server does not allow chmod 777 and when using 755 which is max permission I get the following error. This confirms file permissions? Right? Also to confirm this issue I tried moving the attachments to a new directory and I also got the message that the new directory was not writable under both 777 and 755.

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

Fatal error:
  • Could not create file system directory to hold your attachment.
Unable to proceed with save while $errors array is not empty in class vB_DataManager_AttachmentFiledata in ..../includes/class_dm.php on line 849
#0 vb_error_handler(256,
  • Could not create file system directory to hold your attachment.
--------------


I am unsure how to serve his attachments without file permission. Is there a way around this? I was under the impression that 755 should work on his server.


His site was hacked some time ago through an older version of Vbseo. My guess is that his host changed the file permissions at this time. I am thinking about moving his attachments to the database but he has many gigs worth.


Thoughts?


Thanks!


Rich
Reply With Quote
  #2  
Old 01-10-2014, 10:24 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You cannot store files, in the file system, if the webserver/php cannot write to the folders. So no, 755 won't be enough.
Reply With Quote
Благодарность от:
RichieBoy67
  #3  
Old 01-10-2014, 10:38 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, that is what I figured. It is just that some servers use 755 instead of 777 so I thought this may have been the case with his server originally.

It is all very confusing because supposedly his attachments were uploading fine before he got hacked. That is why I suspect his host of changing things. He is on a shared server/virtual dedicated and I do not have root access.

Thanks !
Reply With Quote
  #4  
Old 01-10-2014, 10:42 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Those servers normally have php running in a group, or user configuration that allows them to write to those folders. Running PHP as a specific user via fcgi/cgi can add a lot of overhead, but increases security.

Always going to be tradeoffs, The attachment folder should be below the web root, so I don't see a whole lot of harm in having it there.
Reply With Quote
  #5  
Old 01-10-2014, 11:05 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I agree.

I have not encountered any host ever that has set things up this way. It is really a strange set up. His site is hosted on this one account/server and his database is on a different server completely. This sounds like godaddy but this is not the case. This is not just the database being hosted from another server but from a separate account.

The good news though is that the server his database is on has root access I believe so I am thinking I could serve the attachments files from there. This was not my set up. I would just move things over and have them on the root server to make things easier.

This hosting is aruba which I have only worked with maybe twice before and it is just not what I am familiar with. Without having ssh access I just can do barely anything with their panel.

Anyhow, Thanks Zachery!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:18 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.04972 seconds
  • Memory Usage 2,198KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (1)post_thanks_box_bit
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete