Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 05 Jan 2017, 03:04
Mattwhf Mattwhf is offline
 
Join Date: May 2016
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 05 Jan 2017, 03:18
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
I believe it does not support PHP 7 yet. Just configure PHP OPCache properly and you don't even need memcached.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #3  
Old 05 Jan 2017, 07:23
Mattwhf Mattwhf is offline
 
Join Date: May 2016
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.
__________________
Web Hosting Forum - Learn web hosting and offer your hosting services for FREE!
Bếp từ nhập khẩu châu âu chất lượng cao.
Reply With Quote
  #4  
Old 05 Jan 2017, 14:42
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
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.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #5  
Old 05 Jan 2017, 14:56
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
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.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #6  
Old 08 Jan 2017, 03:43
Mattwhf Mattwhf is offline
 
Join Date: May 2016
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.

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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


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!
__________________
Web Hosting Forum - Learn web hosting and offer your hosting services for FREE!
Bếp từ nhập khẩu châu âu chất lượng cao.
Reply With Quote
  #7  
Old 08 Jan 2017, 17:38
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
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
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #8  
Old 17 Jan 2017, 22:03
Code Geass's Avatar
Code Geass Code Geass is offline
 
Join Date: Jul 2011
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 18 Jan 2017, 11:43
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
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.

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.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 09:26.

Layout Options | Width: Wide Color: