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 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
  #2  
Old 08-25-2014, 11:36 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by robbyg View Post
I have been scratching my head for 2 days trying to use Ozzmodz DownloadsII addon with Godaddy under Linux. (yes I know what some will say about GoDaddy).
Umm, I don't have a Downloads mod.
Reply With Quote
  #3  
Old 08-26-2014, 01:37 AM
robbyg robbyg is offline
 
Join Date: Aug 2014
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oops mistake I corrected it.
Sorry :erm:
Reply With Quote
Благодарность от:
ozzy47
  #4  
Old 08-26-2014, 01:42 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not a problem.
Reply With Quote
  #5  
Old 10-15-2014, 11:12 AM
ChiNa ChiNa is offline
 
Join Date: Jul 2012
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edited...

@Good Info @robbyg. Props on that. I didnt knew that about Godaddy's CPANEL. I have been using the old Plesk Like Panel on Godaddy and still are using it.

Here is how you create your own ini File on Godaddy's Old Plesk CPanel:

When you Purchase a Godaddy Hosting Panel with the OLD Plesk Like CPanel, Then as Default you will have a file called php5.ini n your root. And believe me, in some cases you wont see the php5.ini as Default. It happens and it has happened to me a few times befor.

1) If you dont see the php5.ini, then Create a new php5.ini and add it in your root.
2) Since many are still on the old CPanel/Plesk on Godaddy' such as myself. You have to create php5.ini which will be very usefull in future.
3) After you have added the php5.ini file in root of your hosting. Then the same content as @robbyg exaplained above inside your php5.ini file.

Example:


file_uploads = On
post_max_size = 50M
upload_max_filesize = 50M

Save the file and Upload it back in your root. The php5.ini works just like the user.ini in Godaddys CPanel Hosting or the php.ini and has been very usefull to me. The number 5 in php5.ini is for PHP Versions above 5 on Godaddy.
Reply With Quote
Благодарность от:
Black Snow
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: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.03894 seconds
  • Memory Usage 2,215KB
  • 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
  • (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)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
  • 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