Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-18-2014, 03:11 AM
Rabso Rabso is offline
 
Join Date: Oct 2008
Location: Saudi Arabia
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default The coorrect place for the overrided php.ini

I am planning to increase size the "post_max_size"; my webhost says that I can change my php settings using php.ini file and apache settings using .htaccess file.

1. my trail with .htaccess file:

I tried add the following in my .htaccess that comes with VB5:
php_value post_max_size "15M"

but keeping giving me "Internal Server Error". I did the same with VB4 and it works just fine!

2. my trail with adding php.ini:

My webhost says the following:

Quote:
Using a php.ini file to override the default settings will only alter the PHP settings for all PHP files in the directory where it is saved.

This means that any PHP files in subfolders will not recognize the changes you've made in the php.ini file. You will have to copy the file to any subdirectories needed or created symbolic links in subfolders to the custom php.ini file
and

Quote:
Basically, you do not need to place the php.ini file in every folder of your website files. For example, in wordpress. you need to increase the upload_max_filesize for you to upload larger files in your Wordpress admin. The php.ini file will be then uploaded in the /wp-admin folder only. So you better make sure with of the specific folder where you want the php.ini activated

My question now is which one is better to change? I have feeling that VB5 deals with .htaccess differently so please what is the correct way?

or if I go to php.ini (it is recommended), which place is correct to place my new php.ini?
Reply With Quote
  #2  
Old 12-18-2014, 04:26 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

These are questions for your webhost
Reply With Quote
  #3  
Old 12-18-2014, 04:59 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The php.ini file is located before the public_html folder
Reply With Quote
  #4  
Old 12-18-2014, 05:46 AM
WEBDosser's Avatar
WEBDosser WEBDosser is offline
 
Join Date: Oct 2001
Location: @ MyPC
Posts: 824
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

imo best way is to edit the php.ini file on the server if you have ssh access
Reply With Quote
  #5  
Old 12-18-2014, 06:53 AM
Rabso Rabso is offline
 
Join Date: Oct 2008
Location: Saudi Arabia
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery View Post
These are questions for your webhost
Dear Zachery.

believe me I did a lot I am confused and lost.

my Webhost allows me to change both php.ini or .htaccess and provides for me the limits that I should not exceed.

My question to you why when I edited the .htaccess in VB4 it worked well but in VB5 it gave me "Internal Server Error"?


@ForceHSS and WEBDosser;
I can not edit the global php.ini, my webhost allows me to override the global php.ini but I don't know where I have to place the override php.ini. i.e. in which directory VB5 needs this file to be placed?
Reply With Quote
  #6  
Old 12-18-2014, 07:51 AM
WEBDosser's Avatar
WEBDosser WEBDosser is offline
 
Join Date: Oct 2001
Location: @ MyPC
Posts: 824
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this:
Create a file called php.ini and include this in it.

upload_max_filesize = "15M"
post_max_size = "15M"

Then save it in the same location as your .htaccess file.
Reply With Quote
  #7  
Old 12-18-2014, 08:12 AM
Rabso Rabso is offline
 
Join Date: Oct 2008
Location: Saudi Arabia
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WEBDosser View Post
Try this:
Create a file called php.ini and include this in it.

upload_max_filesize = "15M"
post_max_size = "15M"

Then save it in the same location as your .htaccess file.
I already did this and my admin page shows the results exactly. but my question is does adding the php.ini in same location of .htaccess enough for my fourm work well?

According to the webhost that any PHP files in subfolders will not recognize the changes I have made in the main folder.

this sentence made me confuse and ask where is the right location.
Reply With Quote
  #8  
Old 12-21-2014, 08:21 AM
Rabso Rabso is offline
 
Join Date: Oct 2008
Location: Saudi Arabia
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any confirmation for the above?
Reply With Quote
  #9  
Old 12-22-2014, 01:17 AM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You might want to ask your web host to change the values in your main php.ini file for the server if you do not have direct access to it. It would depend on what type of host setup you have as to whether you would have access to this or not.
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 11:20 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05193 seconds
  • Memory Usage 2,243KB
  • 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
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete