Forked the original implementation from https://github.com/elijaa/phpmemcachedadmin to provide additional features, like key search and listing.
All the assets and scripts are embed into the PHAR file.
- Download the file
phpmemcachedadmin.pharfrom the latest release https://github.com/AlexeyPlodenko/phpmemcachedadmin/releases - Rename
phpmemcachedadmin.phartophpmemcachedadmin.php - Create a file
.config.phpnext to thephpmemcachedadmin.phpscript and put your configuration there:<?php return [ 'servers' =>[ 'Default' => [ 'localhost-server' => [ 'hostname' => '127.0.0.1', 'port' => '11211', ], ], ], ];
- Upload
phpmemcachedadmin.phpand.config.phpto your server to the same directory - Access the script at http://YOUR-DOMAIN-GOES-HERE/phpmemcachedadmin.php
- Clone the repository.
- Create the file
/.config.phpand put your configuration there:<?php return [ 'servers' =>[ 'Default' => [ 'localhost-server' => [ 'hostname' => '127.0.0.1', 'port' => '11211', ], ], ], ];
- In your console, navigate to the root of the project and execute:
composer installto install the PHP Composer packages.npm ito install the JS NPM packages used at the next step.npm run buildto build the JS/CSS assets and publish those to the public directory.
- Deploy all code to your server one level above your website directory.
- The
/src/public/directory should be configured as your website root directory.
- Clone the repository.
- Create the file
/.config.phpand put your configuration there:<?php return [ 'servers' =>[ 'Default' => [ 'docker-server' => [ 'hostname' => 'host.docker.internal', 'port' => '11211', ], ], ], ];
- In your console, navigate to the root of the project and execute:
composer installto install the PHP Composer packages.npm ito install the JS NPM packages used at the next step.npm run buildto build the JS/CSS assets and publish those to the publicdocker compose upto start the Docker containers.
- Now you can access the
phpmemcachedadminat http://localhost
Do not edit the original file, but rather create /docker-compose.override.yml and put your configuration there. That is the official Docker way.
This program allows to see in real-time (top-like) or from the start of the server, stats for get, set, delete, increment, decrement, evictions, reclaimed, cas command, as well as server stats (network, items, server version) with Google Charts and server internal configuration
You can go further to see each server slabs, occupation, memory wasted and items (key & value).
Another part can execute commands to any memcached server : get, set, delete, flush_all, as well as execute any commands (like stats) with telnet
- Stats for each or all memcached servers, items, evicted, reclaimed ...
- Stats for every command : set, get, delete, incr, decr, cas ...
- Slabs stats (Memory, pages, memory wasted, items)
- Items stats (View items in slabs, then data for each key)
- Network stats (Traffic, bandwidth)
- Execute commands : get, set, delete, flush_all on servers to administrate or debug it
- Get data with key on servers
- Delete keys on servers
- Flush servers
- Execute telnet command directly from phpMemcachedAdmin
- Search for specific pattern into all keys
- Top-like real time stats with configurable alerts
- Edit configuration directly from web page
- phpMemcachedAdmin can use socket communication, PECL Memcache or Memcached API
- Organize your servers into cluster
phpMemcachedAdmin does not provide any security system, you need to add this feature by yourself.
You can change the default temporary directory used in the script (by default the result of the PHP function sys_get_temp_dir(), for ex. /tmp/), by specifying in your .config.php file the key temp_dir_path:
<?php
return [
'temp_dir_path' => '/var/www/my-website/custom-temp-dir/', // <<< Like that
'servers' =>[
'Default' => [
'docker-server' => [
'hostname' => 'host.docker.internal',
'port' => '11211',
],
],
],
];$tempDirPath = $this->config['temp_dir_path'] ?? sys_get_temp_dir();