vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   My hosts PHP choices, which is best? (https://vborg.vbsupport.ru/showthread.php?t=303490)

K4GAP 10-16-2013 10:15 PM

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.

donald1234 10-16-2013 10:49 PM

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.

Thunderbird8 10-17-2013 08:52 AM

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.

K4GAP 10-17-2013 03:41 PM

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.

squidsk 10-17-2013 04:19 PM

Quote:

Originally Posted by GaryT (Post 2454180)
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.

K4GAP 10-17-2013 10:17 PM

Quote:

Originally Posted by squidsk (Post 2454188)
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


All times are GMT. The time now is 03:30 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.01190 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete