Memcached help needed

Get help with installation and running phpBB 3.1.x here. Please do not post bug reports, feature requests, or extension related questions here.
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: phpBB 3.1.x is at its End of Life stage and support will NOT be provided after July 1st, 2018.
Locked
wrkalot
Registered User
Posts: 108
Joined: Tue Oct 02, 2012 10:07 pm

Memcached help needed

Post by wrkalot »

I need some help getting memcached running.

I have the memcached.php file in phpbb/cache/driver directory

I changed this in config.php $acm_type = 'memcached';

All I get is a blank page after purging the cache from the ACP

My host used unix sockets and I have no idea how to get this running. When I enable memcached in cPanel I get the following

Code: Select all

Your Memcached instance is online and listening at /home/mysite/.hostdata/memcached.sock
Can anyone explain how to make this work?
Tutorial: How to add ads to your forum viewtopic.php?f=64&t=2417316
wrkalot
Registered User
Posts: 108
Joined: Tue Oct 02, 2012 10:07 pm

Re: Memcached help needed

Post by wrkalot »

Anyone?
Tutorial: How to add ads to your forum viewtopic.php?f=64&t=2417316
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Memcached help needed

Post by RMcGirr83 »

wrkalot wrote: Sun Oct 15, 2017 3:34 pm All I get is a blank page after purging the cache from the ACP
You need to get the server error logs when this happens (ask your host to look into it). They will state where the problem is.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
wrkalot
Registered User
Posts: 108
Joined: Tue Oct 02, 2012 10:07 pm

Re: Memcached help needed

Post by wrkalot »

I'll do that but I would first like to know how to properly point to the unix socket /home/mysite/.hostdata/memcached.sock

They don't provide a host or port number and I can't find any instructions for setting it up phpbb3 using a unix socket
Tutorial: How to add ads to your forum viewtopic.php?f=64&t=2417316
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Memcached help needed

Post by RMcGirr83 »

Sorry you're at the wrong site for that question. This is a forum for phpBB support not on how to configure a server.

Some kind soul may jump in and assist but I wouldn't expect it.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
wrkalot
Registered User
Posts: 108
Joined: Tue Oct 02, 2012 10:07 pm

Re: Memcached help needed

Post by wrkalot »

RMcGirr83 wrote: Wed Oct 18, 2017 12:53 pm Sorry you're at the wrong site for that question. This is a forum for phpBB support not on how to configure a server.

Some kind soul may jump in and assist but I wouldn't expect it.
I'm not asking for help configuring a server. I am asking how to configure memcached within phpbb3 using phpbb3's memcached.php extension using unix sockets. Maybe that wasn't clear enough.
Tutorial: How to add ads to your forum viewtopic.php?f=64&t=2417316
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Memcached help needed

Post by RMcGirr83 »

RMcGirr83 wrote: Tue Oct 17, 2017 1:46 pm You need to get the server error logs when this happens (ask your host to look into it). They will state where the problem is.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10552
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: Memcached help needed

Post by Noxwizard »

If you want to use unix sockets, you'll need to add these to your config.php:

Code: Select all

define('PHPBB_ACM_MEMCACHED_PORT', 0);
define('PHPBB_ACM_MEMCACHED_HOST', '/path/to/socket');
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.
wrkalot
Registered User
Posts: 108
Joined: Tue Oct 02, 2012 10:07 pm

Re: Memcached help needed

Post by wrkalot »

Noxwizard wrote: Sat Oct 21, 2017 8:37 pm If you want to use unix sockets, you'll need to add these to your config.php:

Code: Select all

define('PHPBB_ACM_MEMCACHED_PORT', 0);
define('PHPBB_ACM_MEMCACHED_HOST', '/path/to/socket');
Thank you for your help. I actually put them in memcached.php and it seems to be working but will verify with my host.

Interestingly enough, the blank page was being caused by RMcGirr83 National Flags ext. Once that was disabled it worked as it should :ugeek:
Tutorial: How to add ads to your forum viewtopic.php?f=64&t=2417316
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Memcached help needed

Post by RMcGirr83 »

wrkalot wrote: Sun Oct 22, 2017 11:21 am Interestingly enough, the blank page was being caused by RMcGirr83 National Flags ext. Once that was disabled it worked as it should :ugeek:
Do you know why it was causing the issue (server error logs). That extension was just recently, yesterday, updated as there was a bug in it. But it would be nice to know.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
wrkalot
Registered User
Posts: 108
Joined: Tue Oct 02, 2012 10:07 pm

Re: Memcached help needed

Post by wrkalot »

The error log in cPanel doesn't show anything. See the link below

https://www.phpbb.com/customise/db/exte ... pic/184191
Tutorial: How to add ads to your forum viewtopic.php?f=64&t=2417316
User avatar
zoldos
Registered User
Posts: 48
Joined: Sun Dec 07, 2014 7:28 pm
Name: zoldos Vex
Contact:

Re: Memcached help needed

Post by zoldos »

Memcached/Memcache is very tricky. I never managed to get it working on any of my sites despite considerable effort. I suggest Opcache, which should be standard on UNIX servers and very easy to use.
The Syndicate Lounge ~ https://thesyndicatelounge.com | General Lounge & Mental Health Support
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Memcached help needed

Post by RMcGirr83 »

wrkalot wrote: Mon Oct 23, 2017 10:40 am The error log in cPanel doesn't show anything. See the link below

https://www.phpbb.com/customise/db/exte ... pic/184191
Great! Now how about answering the questions I asked within that topic.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
Locked

Return to “[3.1.x] Support Forum”