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 01-05-2017, 02:04 AM
Mattwhf Mattwhf is offline
 
Join Date: May 2016
Posts: 190
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Can I install Memcached with PHP 7.1?

I want to use php7.1, memcached and mariadb for my hosting forum but I failed to install memcached on php7.0 around 2 months ago. Recent weeks I heard about PHP7.1 has been released and heard that it supported memcached. !?!?

I want to try again with vB 4.2.5 which supports PHP 7, it will help my vB forum load faster.

My question is, can I install Memcached with PHP 7.1? Did any one try this? and succeeded?


Thanks in advance.
Reply With Quote
  #2  
Old 01-05-2017, 02:18 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe it does not support PHP 7 yet. Just configure PHP OPCache properly and you don't even need memcached.
Reply With Quote
2 благодарности(ей) от:
Kane@airrifle, Mattwhf
  #3  
Old 01-05-2017, 06:23 AM
Mattwhf Mattwhf is offline
 
Join Date: May 2016
Posts: 190
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
I believe it does not support PHP 7 yet. Just configure PHP OPCache properly and you don't even need memcached.
It's not a good news when reading this but I will try to setup a VPS server and test this next weeks or months.

I saw memcached helped our forum load faster (beside Cloudflare) and I could not remove this option though.

I had PHP OPCache installed on the server but to be honest it can not compare with memcached.
Reply With Quote
  #4  
Old 01-05-2017, 01:42 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mattwhf View Post
It's not a good news when reading this but I will try to setup a VPS server and test this next weeks or months.

I saw memcached helped our forum load faster (beside Cloudflare) and I could not remove this option though.

I had PHP OPCache installed on the server but to be honest it can not compare with memcached.
I'd say you don't really need memcached anymore since the performance gain would be minimal due to PHP 7 having tons of optimizations. It's not only faster, it also does not consume a massive amount of memory anymore.
Reply With Quote
  #5  
Old 01-05-2017, 01:56 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mattwhf View Post
I want to use php7.1, memcached and mariadb for my hosting forum but I failed to install memcached on php7.0 around 2 months ago. Recent weeks I heard about PHP7.1 has been released and heard that it supported memcached. !?!?

I want to try again with vB 4.2.5 which supports PHP 7, it will help my vB forum load faster.

My question is, can I install Memcached with PHP 7.1? Did any one try this? and succeeded?


Thanks in advance.
vBulletin supports Memcache, not Memcached, there are Memcache modules available for PHP 7.1

You are better off just using APCu (for the datastore) & OPCache for php caching.

My test server runs php 7.1 like this.
Reply With Quote
2 благодарности(ей) от:
bzcomputers, KevinL
  #6  
Old 01-08-2017, 02:43 AM
Mattwhf Mattwhf is offline
 
Join Date: May 2016
Posts: 190
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
I'd say you don't really need memcached anymore since the performance gain would be minimal due to PHP 7 having tons of optimizations. It's not only faster, it also does not consume a massive amount of memory anymore.
Thanks Dave, I will keep this advice.

Quote:
Originally Posted by Paul M View Post
vBulletin supports Memcache, not Memcached, there are Memcache modules available for PHP 7.1
Not sure memache or memcached but I need to run these codes in config.php file
and that requires memcache

Code:
$config['Datastore']['class'] = 'vB_Datastore_Memcached';
$i = 0;
// First Server
$i++;
$config['Misc']['memcacheserver'][$i]		= '127.0.0.1';
$config['Misc']['memcacheport'][$i]			= 11211;
$config['Misc']['memcachepersistent'][$i]	= true;
$config['Misc']['memcacheweight'][$i]		= 1;
$config['Misc']['memcachetimeout'][$i]		= 1;
$config['Misc']['memcacheretry_interval'][$i] = 15;

Quote:
Originally Posted by Paul M View Post
You are better off just using APCu (for the datastore) & OPCache for php caching.

My test server runs php 7.1 like this.
I installed OPcache but not sure APCu is which you are mentioning to..where can I read tutorisl on how to install it or integrate it with vB 4.

My vB4 is working as a charm and it would be more greater if I run it with php7 and mariadb.

Thank you!
Reply With Quote
  #7  
Old 01-08-2017, 04:38 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mattwhf View Post
Not sure memache or memcached but I need to run these codes in config.php file and that requires memcache
As I said, vB supports Memcache.

The class is badly named as Memcached, I have no idea why, but that's fixed in 4.2.5.

As to APCu, google it
Reply With Quote
  #8  
Old 01-17-2017, 09:03 PM
Code Geass Code Geass is offline
 
Join Date: Jul 2011
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
As I said, vB supports Memcache.

The class is badly named as Memcached, I have no idea why, but that's fixed in 4.2.5.

As to APCu, google it
Hello,

Is their any specific config to edit in APCu to increase performance and compatibility with vBulletin ?

Also another question is 4.2.5 compatible with PHP 7.1 ?

Thanks
Reply With Quote
  #9  
Old 01-18-2017, 10:43 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Code Geass View Post
Is their any specific config to edit in APCu to increase performance and compatibility with vBulletin ?
Just like with any other datastore cache, you should set it up initially, and then monitor the memory it uses, regardless of what application is using it.
My test site has the default single 32M segment and that seems to be far more than it needs, so it runs great.

Quote:
Originally Posted by Code Geass View Post
Also another question is 4.2.5 compatible with PHP 7.1 ?
Aside from any issues not yet encounted, yes.
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 07:10 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.17310 seconds
  • Memory Usage 2,258KB
  • 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
  • (1)bbcode_code
  • (10)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
  • (4)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (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_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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete