Recommended Posts

  • 2 months later...
Posted

Added this is phpp config.php

 

$acm_type = 'memcached';

define('PHPBB_ACM_MEMCACHED_HOST', 'unix:///home/username/.applicationmanager/memcached.sock');
define('PHPBB_ACM_MEMCACHED_PORT', 0);

 

But how do I know if memcached is working? The memcached.sock is zero bytes.

Posted
On 1/12/2018 at 2:27 PM, Draka said:

Phpbb 3.2.2 have been released.

Anyone knows how to enable memcached for it?

https://www.phpbb.com/community/viewtopic.php?f=14&t=2453381

As a minor feature addition, phpBB now also supports Memcached caching.

 

Is there a connection between memcached in php 7.2 and the one in application manager?

All the application manager does is launch a Memcached server it does not change your PHP extensions.  So if your PHP 7.2 does not have memcached extension enabled then you need to enable it.

 

On 1/14/2018 at 12:12 PM, Draka said:

Added this is phpp config.php

 

$acm_type = 'memcached';

define('PHPBB_ACM_MEMCACHED_HOST', 'unix:///home/username/.applicationmanager/memcached.sock');
define('PHPBB_ACM_MEMCACHED_PORT', 0);

 

But how do I know if memcached is working? The memcached.sock is zero bytes.

The socket is going to be 0 bytes as it's not storing data on the socket but in memory.  The way you'd test if it's working is actually checking if there is data in the memcached server meaning you'd need to use PHP/Perl/Ruby/Python etc. to do that.  Also most applications if it's not working tell you or even just get really slow.

Posted
47 minutes ago, Tony said:

All the application manager does is launch a Memcached server it does not change your PHP extensions.  So if your PHP 7.2 does not have memcached extension enabled then you need to enable it.

 

The socket is going to be 0 bytes as it's not storing data on the socket but in memory.  The way you'd test if it's working is actually checking if there is data in the memcached server meaning you'd need to use PHP/Perl/Ruby/Python etc. to do that.  Also most applications if it's not working tell you or even just get really slow.

Thanks.

I searched google for a test script but I didn´t quite understand it...

Do you have a small php script I could test it with? Or maybe enter the code here and I paste it into a test.php

Posted
On 1/15/2018 at 1:15 PM, Draka said:

Thanks.

I searched google for a test script but I didn´t quite understand it...

Do you have a small php script I could test it with? Or maybe enter the code here and I paste it into a test.php

Here's a basic example change username portion with your username.  It should state it's adding the test key refresh it then it should say it's a test variable testing Memcached.

<?php
$memcached = new Memcached();
$memcached->addServer("/home/username/.applicationmanager/memcached.sock",0);
$response = $memcached->get("test");
if ($response)
{
    echo $response;
}
else
{
    echo "Adding test key to Memcached";
    $memcached->set("test","This is a test variable testing Memcached");
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...