Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 02-21-2007, 05:37 AM
Rude Awakening Rude Awakening is offline
 
Join Date: Feb 2006
Location: St.Paul Minnesota
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default I hate coding and PHP!

I hate coding as well. (no pun to you pros out there, lots of respect )

We all know that the default upload size for an attachment is at 2mb, and for a post its 8mb. I'm having a hard time increasing this. I noticed a lot of people saying you have to talk to your host, and this is what they said:

Quote:
The following may assist you on how to change the upload_max_filesize settings
on your account.

Because we use suPHP to parse php files, you have the option of using a custom
php.ini file.

Your account can have multiple php.ini files on your account in different
folders so you can customize the php processing in different folders should
your script require it. Bla Bla Bla

How the hell am I supposed to create a compatible php.ini when there isnt even one in the damn root folder. I go to php.net, download the zip file, make the two adjustments I needed (upload size and post size). I throw it into the forum root and it tells me it has to be Zend optimized, plus I dont see any changes on the admincp panel of vbulletin (still shows 2mb upload, 8 total). I download the Zend optimizer and realize that I have no idea what Im doing from this point on. I'm basically stuck, confused and pissed!

I always hated coding and thats the main reason I left my stupid computer engineering degree to continue in business and marketing. Oh well!
Reply With Quote
  #2  
Old 02-21-2007, 12:24 PM
nico_swd's Avatar
nico_swd nico_swd is offline
 
Join Date: Dec 2005
Location: Spain
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try .htaccess.
Code:
php_value upload_max_filesize 300M
php_value post_max_size 300M
php_value memory_limit 300M
php_value max_execution_time 500000
Reply With Quote
  #3  
Old 02-21-2007, 03:05 PM
Rude Awakening Rude Awakening is offline
 
Join Date: Feb 2006
Location: St.Paul Minnesota
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried it. It wont work only with .htaccess I have to configure a php.ini file as well and I dont know how!
Reply With Quote
  #4  
Old 02-21-2007, 03:33 PM
MarkPW MarkPW is offline
 
Join Date: Apr 2006
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure where the file is supposed to be located/created (ask your host). But once created, it should automatically inherit the global php.ini's settings, and then it should be a simple case of specifying your custom settings.
Reply With Quote
  #5  
Old 02-21-2007, 11:49 PM
Rude Awakening Rude Awakening is offline
 
Join Date: Feb 2006
Location: St.Paul Minnesota
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont think I'll have a hard time with customizing the settings. It's the creation part that I totally get lost in.
Reply With Quote
  #6  
Old 02-22-2007, 04:28 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rude Awakening View Post
I dont think I'll have a hard time with customizing the settings. It's the creation part that I totally get lost in.
If you've got VB up and running, then go to the admincp/maintenance/phpinfo.

The results will tell you whereabouts the system is reading the standard php.ini

Alternatively create a short php script like the following:

Code:
<?php

phpinfo();

?>
and run it.

Then ask you hosts for a copy
Reply With Quote
  #7  
Old 02-22-2007, 06:24 AM
Digitalus Digitalus is offline
 
Join Date: Aug 2006
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

login with ssh and do whereis php.ini
that give you de location of your php.ini
Reply With Quote
  #8  
Old 02-22-2007, 01:44 PM
Rude Awakening Rude Awakening is offline
 
Join Date: Feb 2006
Location: St.Paul Minnesota
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Apparently I dont have access to the "main" php.ini
Because they use SuPhp I'm allowed to create a php.ini file that I can set to affect all folders beneath it.
Reply With Quote
Reply

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 12:41 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.06184 seconds
  • Memory Usage 2,223KB
  • 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
  • (2)bbcode_code
  • (2)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