Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2013, 10:15 PM
K4GAP K4GAP is offline
 
Join Date: Mar 2008
Posts: 1,255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default My hosts PHP choices, which is best?

My hosts PHP choices, which is best? Or which should I use and what do i have to do to anything else in preparation for upgrade to 4.2.2 ?



PHP 5.2
All files with the extension .php will be handled by the PHP 5.2 engine.
Legacy PHP with security updates. Compatible with most environments.
PHP 5.2 (Single php.ini)
Same as PHP 5.2, but all subdirectories will use ~/public_html/php.ini

PHP 5.2 (FastCGI)
All files with the extension .php will be handled by PHP 5.2 FastCGI processes.
FastCGI for PHP makes all your PHP applications run through mod_fastcgi instead of mod_suphp. This eliminates the overhead of loading the PHP interpreter on every hit. Since it is always in memory ready for the next hit, the responses will be generated faster.
PHP 5.3
All files with the extension .php will be handled by the PHP 5.3 engine.
Most reliable and compatible version of PHP.

PHP 5.3 (Single php.ini)
Same as PHP 5.3, but all subdirectories will use ~/public_html/php.ini

PHP 5.4
All files with the extension .php will be handled by the PHP 5.4 engine.
Latest version of PHP.

PHP 5.4 (Single php.ini)
Same as PHP 5.4, but all subdirectories will use ~/public_html/php.ini

PHP 5.4 (FastCGI)
All files with the extension .php will be handled by PHP 5.4 FastCGI processes.
FastCGI for PHP makes all your PHP applications run through mod_fastcgi instead of mod_suphp. This eliminates the overhead of loading the PHP interpreter on every hit. Since it is always in memory ready for the next hit, the responses will be generated faster.
Reply With Quote
  #2  
Old 10-16-2013, 10:49 PM
donald1234 donald1234 is offline
 
Join Date: Nov 2011
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

php 5.4 is the obvious choice for vb 4.2.2 as thats what the version is for. By the way 5.4 is not the latest version 5.5 is already available in cpanel.
Reply With Quote
  #3  
Old 10-17-2013, 08:52 AM
Thunderbird8 Thunderbird8 is offline
 
Join Date: Aug 2009
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Using PHP 5.5 will cause a few deprecated errors to show up though, as one of the changes was to make the /e modifier for preg_replace deprecated. vB uses this in a few places. I believe most of them were fixed in 4.2.2, but I've caught a couple instances still occurring in my error logs (though 4.2.2 vastly reduced the error spew from vB to the logs on 5.4 and 5.5).

If you use vBSEO, you'll get even more errors from running PHP 5.5 (I've fixed at least 6 different locations by now in my own installation from that, but there's one in the configuration area that I've not been able to fix without having the configuration get blanked out).

TL;DR version, stick with PHP 5.4 for now, unless you have a need for 5.5.
Reply With Quote
  #4  
Old 10-17-2013, 03:41 PM
K4GAP K4GAP is offline
 
Join Date: Mar 2008
Posts: 1,255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP 5.4 (Single php.ini) or PHP 5.4 (FastCGI) ?

I really don't know the difference as I don't even know what PHP does.
Reply With Quote
  #5  
Old 10-17-2013, 04:19 PM
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Posts: 969
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GaryT View Post
PHP 5.4 (Single php.ini) or PHP 5.4 (FastCGI) ?

I really don't know the difference as I don't even know what PHP does.
A web page (i.e. html, xhtml) is just static, but a browser only knows how to display html. So for content that is dynamic, such as forums, you need some method of converting that dynamic content into the static output required by a browser. PHP is one method of converting dynamic content into a static page that can be displayed by the browser. The different versions specified are different setups for being able to interpret php on the server to generate the webpage that will be displayed to the end user. In most cases you'll want the FastCGI as this will improve the performance of your site unless there's something in the default php.ini your host is giving you that you need to override that you can't do with .htaccess.
Reply With Quote
  #6  
Old 10-17-2013, 10:17 PM
K4GAP K4GAP is offline
 
Join Date: Mar 2008
Posts: 1,255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by squidsk View Post
A web page (i.e. html, xhtml) is just static, but a browser only knows how to display html. So for content that is dynamic, such as forums, you need some method of converting that dynamic content into the static output required by a browser. PHP is one method of converting dynamic content into a static page that can be displayed by the browser. The different versions specified are different setups for being able to interpret php on the server to generate the webpage that will be displayed to the end user. In most cases you'll want the FastCGI as this will improve the performance of your site unless there's something in the default php.ini your host is giving you that you need to override that you can't do with .htaccess.
So if I choose the FastCGI I may get errors? What can I look for in the php.ini to determine if that's going to happen?

--------------- Added [DATE]1382057238[/DATE] at [TIME]1382057238[/TIME] ---------------

I chose the first 5.4 option and I get the following now:

Warning: Non-static method VBSHOUT_CACHE::init() should not be called statically in ..../dbtech/vbshout/hooks/global_start.php on line 26
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 12:55 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.04204 seconds
  • Memory Usage 2,214KB
  • 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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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