Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
Prev Previous Post   Next Post Next
  #1  
Old 08-25-2014, 11:34 PM
robbyg robbyg is offline
 
Join Date: Aug 2014
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How To Fix The Godaddy php upload Limit

I have been scratching my head for 2 days trying to use RS_Jelle DownloadsII addon with Godaddy under Linux. (yes I know what some will say about GoDaddy).

When upload a file it will not accept it unless the file is 2mb or smaller. Yes I tried all the permissions and settings in DownloadsII for the various extensions, I set it at 50mb even more for zip files etc and still no solution. I set the groups permissions, just about everything was tried.

What I learned: Forget all the posts you read about using ".htacccess" file and adding code into it.
That just crashes your forum instantly with a 500 error. You then need to go in via the CPanel and edit out all the code to get your forum working again.

THE REAL SOLUTION:

1) Make sure you have your vbulletin addon setup to be able to send files of the type and size you want.

2) Go into Godaddy Cpanel and into files and go into the "Public_Html" root folder and using the cpanel create a file called ".user.ini" (Remember the "." in the front.) This file is made directly in the Public_Html folder and not any sub folder.

3) Now edit the file and add this code to the file

file_uploads = On
post_max_size = 50M
upload_max_filesize = 50M

3A) Now Save the file.

This assumes you want 50mb as the maximum. You can change it to what you want but I think the entry level accounts are 32mb and the level 2 are 128mb. I have level 2 but opted to keep the uploads to a max of 50mb. Call GoDaddy if you want to upgrade your account, but I am sure it will cost a few extra $ per month.

Up to this point I have seen some of the above on the Internet but it still did not work. The next bit was what made it work.

4) Now that you have the file in place go back into the first page of CPanel and at the top right you will have a search area. Type in PHP in the search. On the third row of results you should see "php processes", Click it and at the top right you should see "Kill Processes". Press it to kill the current processes.

5) Go back to the main panel and in the search type in "php" again and look down to the 4th Row and you should see "Select php Version" Press that.

6) If your current version shows as 5.3 your already good to go and can skip the next steps.

7) If it shows 5.4 or 5.5 then you need to use the drop down button next to your version number and select 5.3 then press "Set As Current" and then Press "Save".

8) Now exit and you should be good to with uploading files to the size you set in the .user.ini or whatever limit your account has. If your unsure call Godaddy and they will tell you what your limit is.

Hope this helps someone, I teared out my hair trying to get this to work. I was also lucky enough to talk to a great tech at GoDaddy named Andrew who lead me on the right path.
Reply With Quote
Благодарность от:
ChiNa
 

Thread Tools
Display Modes

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:44 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.10548 seconds
  • Memory Usage 2,363KB
  • Queries Executed 12 (?)
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)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (3)post_thanks_box_bit
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)showthread_list
  • (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_threadedmode.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_threaded
  • showthread_threaded_construct_link
  • 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
  • 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
  • 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