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

Reply
 
Thread Tools Display Modes
  #1  
Old 02-19-2006, 10:18 AM
elite1 elite1 is offline
 
Join Date: Oct 2005
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default PHP Maximum Upload Size

Hi

Im having problems uploading files larger than 2mb as attachments. Ive read about having to increase the size on the server, but my server owner will not do this. Is there any other way? I find it rather bad that this needs to be done, as many people will be in the same situation as me as the change affects all accounts on the server doesnt it?

Any help would be really appreciated.

Regards

Ben
undergroundportal.co.uk
Reply With Quote
  #2  
Old 02-19-2006, 11:58 AM
Hellcat Hellcat is offline
 
Join Date: May 2003
Location: Germany
Posts: 560
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you don't have access to the PHP config and your hoster will not change it - I'm afraid there's nothing you can do....
Reply With Quote
  #3  
Old 02-19-2006, 03:40 PM
elite1 elite1 is offline
 
Join Date: Oct 2005
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hellcat
If you don't have access to the PHP config and your hoster will not change it - I'm afraid there's nothing you can do....
Thanks for the reply. Its a shame this isnt mentioned before people purchase vbulletin. I now have a forum thats going to cost even more money to keep things moving and keep members pleased. I read something about a php.ini file and editing a .conf file in the includes folder, ive managed to increase the php memory limit to 16mb but am still stuck with 2mb max upload size :-(

Thanks

Ben
Reply With Quote
  #4  
Old 02-19-2006, 04:16 PM
LincolnForums LincolnForums is offline
 
Join Date: Oct 2005
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can move hosts, I'm sure there are plenty of hosts out there for you that allow larger then 2MB uploads, I know www.dreamhost.com is one and ASO allows 15MB i beleive.

Their service is probably better, and you might even save a few $$
Reply With Quote
  #5  
Old 02-19-2006, 04:23 PM
elite1 elite1 is offline
 
Join Date: Oct 2005
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

I dont really want to move hosts, ive tried before, done an sql backup, went to the new server and it wouldnt restore. I got given a load of crap from both hosts about versions etc but they were both running the same version. Is there any way to make a universal backup of the sql that will work with any my sql server? Also I dont think I will get hosting any cheaper, 4.99, unlimited everything, lifetime membership. If anyones interested please pm me, obviously not suitable for uploads greater than 2mb! :devious:

Thanks
Reply With Quote
  #6  
Old 02-19-2006, 05:15 PM
hbalagh1's Avatar
hbalagh1 hbalagh1 is offline
 
Join Date: Jun 2005
Location: San Diego
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

drop this in your htaccess file

php_value upload_max_filesize 10M // max size in Mb
Reply With Quote
  #7  
Old 02-13-2007, 01:49 AM
cash7c3 cash7c3 is offline
 
Join Date: Sep 2006
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have quite a few .htaccess files for various things on my server. how would i go about determining which one is correct?

thanx
Reply With Quote
  #8  
Old 02-13-2007, 01:54 AM
l2-inferno l2-inferno is offline
 
Join Date: Jul 2006
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hbalagh1 View Post
drop this in your htaccess file

php_value upload_max_filesize 10M // max size in Mb
please specify this
Reply With Quote
  #9  
Old 02-13-2007, 02:48 AM
Analogpoint's Avatar
Analogpoint Analogpoint is offline
 
Join Date: Feb 2007
Posts: 656
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by l2-inferno View Post
please specify this

hbalagh1 is right about this.

The upload_max_filesize directive defaults to 2Megs. It can be set from php.ini, httpd.conf or .htaccess from version 4.2.4 on. Before that it could be set from anywhere

As he says, just add this line to the .htaccess file in the root directory of your forum. If there isn't a .htaccess file there, create one.

Quote:
php_value upload_max_filesize 10M // max size in Mb
Reply With Quote
  #10  
Old 02-13-2007, 05:27 AM
cash7c3 cash7c3 is offline
 
Join Date: Sep 2006
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i tried adding a .htaccess and every directory below where i would add it went offline.
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 03:09 AM.


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.04085 seconds
  • Memory Usage 2,255KB
  • Queries Executed 13 (?)
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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete