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

Reply
 
Thread Tools Display Modes
  #1  
Old 04-29-2014, 06:23 AM
Bonesos Bonesos is offline
 
Join Date: Apr 2014
Location: Poland
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Upload Attachment not working

Hello,

im move my forum to new VPS Server from Hosting and now i have problem.
I use CentOS 6.5 with Plesk panel to admin my forum + Root account and connection via SSH.

I Have vBulletin 4.2.0 LP4

After change server upload attachments doesnt work but old attachemnts work good.
I Keep attachments on my server here: /var/www/vhosts/windowsmania.pl/httpdocs/upload
And forum see old attachments good

I think i have problem in my php.ini configuration
In diagnostic on admincp show me
Code:
file_uploads:	On
open_basedir:	/var/www/vhosts/windowsmania.pl/httpdocs:/var/www/vhosts/windowsmania.pl/httpdocs/tmp
safe_mode:	Off
upload_tmp_dir:	/var/www/vhosts/windowsmania.pl/httpdocs/tmp
upload_max_filesize:	64.00 MB

No file uploaded and no local file found. The test cannot continue.
I tried all combinator for open_basedir and upload_tmp_dir like none, /tmp etc.
with CHMOD 777, 1777 via change FTP CHmod or via root ssh.

i dont know how to repair it. I try search on forum resolve but nothing work for me
This is onerous becouse nobody cant change avatar, sygnature or upload attachments.

Sorry for my english Im from poland
Regards
Reply With Quote
  #2  
Old 04-29-2014, 07:04 AM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

are you using Apache or Nginx??

besides, attachments have two ways to be uploaded to either your vb board tree or Database!! so which one you are doing??
Reply With Quote
  #3  
Old 04-29-2014, 07:06 AM
Bonesos Bonesos is offline
 
Join Date: Apr 2014
Location: Poland
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I use Apache and i use files on ftp (board tree) not database
Reply With Quote
  #4  
Old 04-29-2014, 07:09 AM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bonesos View Post
I use Apache and i use files on ftp (board tree) not database
ok, since this is the case, you need to be sure that Apache allows ftp user to change CHMOD for the folder where you want to store your attachments.

also make sure to insert folder name with ./myattach_folder or whatever you have, not the root file for the web server...

try that and see if that works!!
Reply With Quote
  #5  
Old 04-29-2014, 07:40 AM
Bonesos Bonesos is offline
 
Join Date: Apr 2014
Location: Poland
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I create a 2 folder via root and 2 folder via ftp in forum director
./upload2 ./upload3 ./upload4 ./upload5
upload2/ upload3 upload4 upload5/
and with full path with /var/www/*****
and test file to change director work good but after i got No file uploaded and no local file found. The test cannot continue.

I change to test open_basedir and upload_tmp_dir to none for this test.
i try change chmod via ssh a+rwx upload* chmod 0777 upload 1777, 2777, 777 and nothing work (

--------------- Added [DATE]1398761461[/DATE] at [TIME]1398761461[/TIME] ---------------

i have problem too with change Avatar on forum. Avatar upload too in attachments folder or other?? Or maybe on database ?? i think problem is on my php.ini configurator
Reply With Quote
  #6  
Old 04-29-2014, 07:51 AM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bonesos View Post
I create a 2 folder via root and 2 folder via ftp in forum director
./upload2 ./upload3 ./upload4 ./upload5
upload2/ upload3 upload4 upload5/
and with full path with /var/www/*****
and test file to change director work good but after i got No file uploaded and no local file found. The test cannot continue.

I change to test open_basedir and upload_tmp_dir to none for this test.
i try change chmod via ssh a+rwx upload* chmod 0777 upload 1777, 2777, 777 and nothing work (
I think you get an error message, can you go to Apache log file and check what it says??

it is usually set up by user, but if you didn't set it up in your web server, you can find it on var/log/apache/error.log it could be this apache2 not apache though...

find the error message first because big chance it is permission issue..
Reply With Quote
  #7  
Old 04-29-2014, 07:57 AM
Bonesos Bonesos is offline
 
Join Date: Apr 2014
Location: Poland
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OMG i do a big mistake!

I type upload_max_filesize = 64MB not 64M and thats why i cant upload.
Sorry and thank u for advice!
Please close topic Regards
Reply With Quote
  #8  
Old 04-29-2014, 08:02 AM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bonesos View Post
OMG i do a big mistake!

I type upload_max_filesize = 64MB not 64M and thats why i cant upload.
Sorry and thank u for advice!
Please close topic Regards
glad you found the error.

you could look into Apache log file to see what's happening at first

Good luck!! :up:
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 04:50 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04243 seconds
  • Memory Usage 2,232KB
  • 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)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete