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.
Suggested Hosts
Post Reply
wrkalot
Registered User
Posts: 107
Joined: Tue Oct 02, 2012 10:07 pm

Memcached help needed

Post by wrkalot » Sun Oct 15, 2017 3:34 pm

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: 107
Joined: Tue Oct 02, 2012 10:07 pm

Re: Memcached help needed

Post by wrkalot » Tue Oct 17, 2017 12:01 pm

Anyone?
Tutorial: How to add ads to your forum viewtopic.php?f=64&t=2417316

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 20372
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Memcached help needed

Post by RMcGirr83 » Tue Oct 17, 2017 1:46 pm

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.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

wrkalot
Registered User
Posts: 107
Joined: Tue Oct 02, 2012 10:07 pm

Re: Memcached help needed

Post by wrkalot » Wed Oct 18, 2017 11:51 am

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
Recognised Extension Developer
Posts: 20372
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Memcached help needed

Post by RMcGirr83 » 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.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

wrkalot
Registered User
Posts: 107
Joined: Tue Oct 02, 2012 10:07 pm

Re: Memcached help needed

Post by wrkalot » Fri Oct 20, 2017 10:59 am

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
Recognised Extension Developer
Posts: 20372
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Memcached help needed

Post by RMcGirr83 » Fri Oct 20, 2017 2:08 pm

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.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10232
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: Memcached help needed

Post by Noxwizard » 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');
[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: 107
Joined: Tue Oct 02, 2012 10:07 pm

Re: Memcached help needed

Post by wrkalot » Sun Oct 22, 2017 11:21 am

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
Recognised Extension Developer
Posts: 20372
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Memcached help needed

Post by RMcGirr83 » Mon Oct 23, 2017 9:00 am

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.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

wrkalot
Registered User
Posts: 107
Joined: Tue Oct 02, 2012 10:07 pm

Re: Memcached help needed

Post by wrkalot » 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
Tutorial: How to add ads to your forum viewtopic.php?f=64&t=2417316

User avatar
zoldos
Registered User
Posts: 21
Joined: Sun Dec 07, 2014 7:28 pm

Re: Memcached help needed

Post by zoldos » Wed Oct 25, 2017 6:49 pm

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.

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 20372
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Memcached help needed

Post by RMcGirr83 » Wed Oct 25, 2017 7:06 pm

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.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

Post Reply

Return to “[3.1.x] Support Forum”

Who is online

Users browsing this forum: No registered users and 25 guests

cron