2.8.5.1. PHPMemcacheAdmin

Attention!

Version 1.3 was released in March 2017. The project may currently be on hold.

The PHPMemcacheAdmin app allows you to monitor Memcache memory usage via its own web interface.

You can configure Memcache(d) using the instruction.
  1. Connect to the hosting via SSH.
  2. Go to the directory where you want to install the Memcache(d) manager using the following command:
    cd ~/example.com/subdomain/dir/ 

    Replace example.com/subdomain/dir with the correct path.

  3. Run the command to install the manager in the current working directory:
    git clone https://github.com/elijaa/phpmemcachedadmin .
  4. Configure the connection to Memcache(d).

Attention!

It is not recommended to use the web interface for configuration, as issues may arise during its operation.

To add a Memcache(d) server in the manager, follow these steps:

  1. Go to the directory where PHPMemcacheAdmin was installed and open the file Config/Memcache.php.
  2. In the file, specify the configuration without any changes:
    <?php
    return array (
      'stats_api' => 'Server',
      'slabs_api' => 'Server',
      'items_api' => 'Server',
      'get_api' => 'Server',
      'set_api' => 'Server',
      'delete_api' => 'Server',
      'flush_all_api' => 'Server',
      'connection_timeout' => '1',
      'max_item_dump' => '100',
      'refresh_rate' => 2,
      'memory_alert' => '80',
      'hit_rate_alert' => '90',
      'eviction_alert' => '0',
      'file_path' => 'Temp/',
      'servers' => array (
        'Default' => array (
          explode("/",__DIR__)[2] => array (
            'hostname' => 'unix:///home/' . explode("/",__DIR__)[2] . '/.system/memcache/socket',
            'port' => '0',
          )
        ),
      ),
    );
Content