elijaa / phpmemcachedadmin Goto Github PK
View Code? Open in Web Editor NEWGraphic stand-alone administration for memcached
License: Apache License 2.0
Graphic stand-alone administration for memcached
License: Apache License 2.0
Can phpmemcachedadmin being configured using a local socket or TCP only?
When looking at the uptime of each of my server, I have something like:
Uptime 143 days 8 hrs 11 min
But when looking at the same stat in 'All servers', I have the following:
Uptime 860 days 3 hrs 39 min
It appears phpmemcacheadmin is summing the uptime of the 6 servers
Original issue reported on code.google.com by [email protected]
on 3 Dec 2010 at 5:09
This CSS rule is fixing problem:
.list > option {
background-color: #B5463F;
}
Original issue reported on code.google.com by [email protected]
on 28 Feb 2012 at 3:50
I have been using your tool for about a week now and really like it. However
when it comes to getting an overall view of servers it is difficult. If I have
multiple servers in dev, staging and production, I cannot get an overview for
each segmentation, just all of them combined.
My suggestion would be to add a pool flag to each server in the configuration
so that you can flag it as dev, staging or production. Then in the dropdown for
servers, you could have the following:
All servers
Production
web1
web2
webn
Staging
staging1
stagingn
Dev
dev1
Then, I could easily see how space I have used in my production pool.
Original issue reported on code.google.com by visseraj
on 12 Oct 2010 at 2:13
I was looking to provide developers an easy GUI to look at and understand memcached and clear and post keys.
phpmemcachedadmin meets everything except, it isn't particularly easy for python/node developers to install if they are completely unfamiliar with php based web apps. #33 allows me to build a distribute a custom docker-compose.yml file and developers can use phpmemcachedadmin with just docker-compose up -d
and going to http://localhost:8888/ or whatever port gets mapped.
The Hits and Misses Column Graphic doesn't render any thing. error in the Ternary logic.
Link to https://blog.elijaa.org/phpmemcachedadmin-installation-guide/ in README.md do not work.
The URLs for memcache keys were not being encoded properly when trying to view
them via the slab pages.
To fix this issue, we changed $key to encodeurl($key) in /View/Stats/Items.tpl,
example below.
# diff View/Stats/Items.tpl View/Stats/Items.tpl.orig
35c35
< onclick="javascript:executeHideShow('console', 'hide',
true);javascript:executeCommand('container', 'request_key=<?php echo
urlencode($key); ?>&request_api=<?php echo $_ini->get('get_api');
?>&request_command=get&request_server=<?php echo $_GET['server'];
?>');"><?php echo ((strlen($key) > 70) ? substr($key, 0, 70) . '[..]' : $key);
?></a>
---
> onclick="javascript:executeHideShow('console', 'hide',
true);javascript:executeCommand('container', 'request_key=<?php echo $key;
?>&request_api=<?php echo $_ini->get('get_api');
?>&request_command=get&request_server=<?php echo $_GET['server'];
?>');"><?php echo ((strlen($key) > 70) ? substr($key, 0, 70) . '[..]' : $key);
?></a>
Original issue reported on code.google.com by [email protected]
on 20 Jun 2013 at 3:31
What steps will reproduce the problem?
1. Take a fully functional phpMemcachedAdmin monitoring 2 memcache instances
(1.4.4-3.el6) without SASL enabled;
2. Upgrade memcache to version 1.4.21 with SASL enabled;
3. Run the instances with the same parameters from before, except by the
addition of "-S" at the command.
What is the expected output? What do you see instead?
Problem is: prior the upgrade I could monitor the instances.
Now the page keeps "waiting" but don't show any stats.
What version of the product are you using? On what operating system?
- CentOS 6.5
- Compiled memcached-1.4.21-1.el6.x86_64
- phpMemcachedAdmin-1.2.2-5.svn262.el6.noarch
Please provide any additional information below.
I wonder if phpMemcachedAdmin isn't capable of reading data "binary protocol"
instances. If that's the case, is it possible to add this functionality?
Thank you and Happy New Year.
Original issue reported on code.google.com by [email protected]
on 2 Jan 2015 at 12:28
What steps will reproduce the problem?
1. Navigate to /commands.php
2. In 'Execute predefined Command', choose the 'set' command.
3. Enter any key and value.
4. Choose 'Memcache' for API.
What is the expected output? What do you see instead?
In the console I expect:
Server 127.0.0.1:11211
SUCCESS
Instead, I receive a warning:
( ! ) Warning: Memcache::set() expects parameter 4 to be long, string given in
/path/to/phpmemcachedadmin/phpMemcachedAdmin-1.2.2-r262/Library/Command/Memcache
.php on line 191
What version of the product are you using? On what operating system?
- phpmemcachedadmin 1.2.2-r262
- Mac OS X 10.9.3
- PHP Version 5.4.24
- Apache/2.2.26 (Unix)
Please provide any additional information below.
Library/Command/Memcache.php, line 191 is currently:
if(self::$_memcache->set($key, $data, 0, $duration))
It's missing some type casting, and should be:
if(self::$_memcache->set($key, $data, 0, (int) $duration))
Original issue reported on code.google.com by [email protected]
on 27 May 2014 at 3:57
Hello,
cache size graph is not very interesting as it show the ratio of cached data
size over maximum allocated size, ignoring waste space. It means even when the
cache is full, the graph will not be at 100% space used.
Here is a patch replacing it with an overview of non-allocated pages available.
It also changes the color of the box when ratio of free pages becomes too low
(using styles introduced in the patch I submitted in #7).
I needed to change the merge function so that it can merge slabs information
(maybe some other fields would need to be simply kept as is instead of being
summed).
Having the slabs information in the main page should also be useful for other
interesting global indicators.
Regards,
Colin
Original issue reported on code.google.com by [email protected]
on 12 Jan 2011 at 2:52
Attachments:
We are extensively use phpmemcachedadmin for optimizing our cache layer. and found the 'Rate' of hits, misses, evictions are not real time things. And found the code calculation it with the formula of 'total no.of activities' (hits/misses/evictions...) / time from the start of system.
Though the formula is kind of technically right. It doesn't give the realtime rates. Ideally it should be for a window of time period (like last 1 hour or 1 day).
We spent lot of time in debugging this issue and observed the root cause. We were tuning our application and not seeing the change in Stats.
What steps will reproduce the problem?
1. I downloaded and put on the server
2. went to page:
/index.php?server=localhost:11211&show=items&slab=2&request_key=sweeps:user/sweepstake:991664/2858&request_api=Server&request_command=get
What is the expected output? What do you see instead?
I get a Warning:
Warning: preg_replace() [function.preg-replace]: Unknown modifier 'w' in
/mnt/hgfs/vhosts/memcacheadmin/Library/Command/Server.php on line 275
What version of the product are you using? On what operating system?
- phpMemCacheAdmin-1.1.3r161
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 4 Jan 2011 at 10:29
What steps will reproduce the problem?
1. goto commands.php
2. search a key that return utf-8 caracters (for example "ñ")
What is the expected output? What do you see instead?
expected:
Server 127.0.0.1:11211
suggest=ñ
returned:
Server 127.0.0.1:11211
suggest=ñ
What version of the product are you using? On what operating system?
1.2.0
Please provide any additional information below.
change the line 110 for
return $header . htmlentities($return, ENT_NOQUOTES | ENT_IGNORE, "UTF-8") . "\r\n";
instead of
return $header . htmlentities($return) . "\r\n";
Original issue reported on code.google.com by [email protected]
on 7 Apr 2011 at 7:39
Can we get a new release with support for php >=7.2?
PLEASE
We create our configuration using a script and a config looks like this:
'servers' =>
array (
'production-memcached' =>
array (
'db7-s0' =>
array (
'port' => '28800',
'hostname' => '10.28.38.70',
),
's0010-s3' =>
array (
'port' => '28830',
'hostname' => '10.28.38.78',
),
etc.
So the keys for the server are actual short names. The attached patch changes
the code so that these names are used everywhere, which makes for our (pretty
large installation), the tool way more useful because we do not drown in a
large sea of 10.x.x.x IPs and almost the same ports everywhere. :-)
It is straightforward. Please apply.
Original issue reported on code.google.com by [email protected]
on 21 Jan 2012 at 2:13
Attachments:
Currently, it's only possible to configure phpmemcacheadmin for one memcached
farm. It would be nice to be able to have multiple farms in order to have one
single instance handling multiple applications and still having the "All
servers" capability per application.
We have two memcached farms and the way we do it currently is running two
instances of phpmemcacheadmin but this couldn't scale very well if we were to
have more applications using memcached.
Original issue reported on code.google.com by [email protected]
on 3 Dec 2010 at 4:51
What steps will reproduce the problem?
1. display stats for two servers using phpmemcacheadmin and
/usr/share/pear/doc/memcache/memcache.php
What is the expected output? What do you see instead?
The stats for cache used in phpmemcacheadmin is far higher that the stats for
memcache.php
Am I missing something or is there a problem?
Original issue reported on code.google.com by visseraj
on 23 Nov 2011 at 5:07
Attachments:
if you are running phpmemcacheadmin on a https server the page complains about
mixed usage
because of calls to:
<img src="http://chart.apis.google.com/chart?
using 1.2.2
Original issue reported on code.google.com by [email protected]
on 24 Sep 2014 at 10:06
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-8732
Cross-site scripting (XSS) vulnerability in phpMemcachedAdmin 1.2.2 and earlier
allows remote attackers to inject arbitrary web script or HTML via unspecified
vectors.
Are you going to fix this vulnerability?
Original issue reported on code.google.com by [email protected]
on 6 Jan 2015 at 2:15
> What steps will reproduce the problem?
1. install phpmecacheadmin, memcached and php-memcache
2. use it for some time period
3. get wrong statistic data
> What is the expected output? What do you see instead?
As you can see on screenshot we have 100% of hits and 100% of misses.
Also we have a very big amount of free space on pie chart.
http://img718.imageshack.us/img718/1994/selection021.png
> What version of the product are you using? On what operating system?
several servers, several linux distributions (ubuntu server, centos)
phpmecacheadmin 1.2.1
memcached 1.4.2\1.4.5\1.4.7
php 5.2\5.3
Original issue reported on code.google.com by [email protected]
on 15 Sep 2011 at 5:58
This library is not safe to use and probably will not be patched anytime soon.
A Path traversal vulnerability has been reported in elijaa/phpmemcachedadmin affecting version 1.3.0. This vulnerability allows an attacker to delete files stored on the server due to lack of proper verification of user-supplied input.
What steps will reproduce the problem?
1. Created Language Files
2. Adding Multi Lang.
What is the expected output? What do you see instead?
PhpMemcachedAdmin supported multi lang.
What version of the product are you using? On what operating system?
PhpMemcachedAdmin 1.2.2 - All OS.
Please provide any additional information below.
Ask the team to be included me as a committer. I can adding MultiLang support
and translate files.
Original issue reported on code.google.com by [email protected]
on 15 Jul 2013 at 8:20
Hi,
I've got a problem with cache size stats and graphic.
Do you know what is the problem?
Wasted seems very big! And there is no used on the graphic.
Screenshot:
http://img849.imageshack.us/img849/8132/phpmemecacheadmin.jpg
Need some help please.
Thanks.
Original issue reported on code.google.com by [email protected]
on 12 Apr 2012 at 1:12
What steps will reproduce the problem?
1. Insert some keys in memcache
2. Go to slab stats and from there to slab item stats
3. Click on the link to view the content of the key
Expected to see the content at the top, but instead, get another page inside
the content pane.
v.1.2.2
Sample Key:
SUBJECT#31201#ea3b223e-24c2-4512-b9-1c-a3-b9-b7-4e-47-63#0-WORKINGCONTEXT#1-203#
C
Original issue reported on code.google.com by [email protected]
on 25 Apr 2014 at 2:31
chart.apis.google.com
Needs to be changed to:
chart.googleapis.com
chart.apis.google.com has a ssl cert issue, and its out dated.
Original issue reported on code.google.com by [email protected]
on 30 Sep 2012 at 10:54
I'm going to integrate phpMemcachedAdmin in Fedora/EPEL official repositories
(see review request at https://bugzilla.redhat.com/show_bug.cgi?id=879016).
License ASL 2.0 requires that a copy of the license text be distributed along
with the binaries and/or source code
(see:http://fedoraproject.org/wiki/Packaging:LicensingGuidelines#License_Text).
Could you please consider adding that file?
Thank you :)
Original issue reported on code.google.com by [email protected]
on 23 Nov 2012 at 10:45
I cannot seem to fix the Temp is not writable error. I have opened this directory more than I feel comfortable with (world writable???) and it's still not working. Why is the config file world writable?
I am presented with the error:
Warning : Temporary directory '/usr/share/phpMemcachedAdmin/Temp/' is not writable, please fix this error and try again.
A quick recap of my current permissions...
# ls -la /usr/share/phpMemcachedAdmin/
drwxr-xr-x. 7 root root 4096 Aug 2 17:53 .
drwxr-xr-x. 96 root root 4096 Aug 2 17:27 ..
-rwxr-xr-x. 1 apache apache 14841 Mar 15 09:27 commands.php
drwxrwxr-x. 2 apache apache 4096 Aug 2 17:41 Config
-rwxr-xr-x. 1 apache apache 3654 Mar 15 09:27 configure.php
-rw-r--r--. 1 root root 1541 Aug 2 17:53 httpd.pp
-rw-r--r--. 1 root root 485 Aug 2 17:53 httpd.te
-rwxr-xr-x. 1 apache apache 5488 Mar 15 09:27 index.php
drwxr-xr-x. 6 apache apache 4096 Mar 15 09:27 Library
drwxr-xr-x. 4 apache apache 4096 Mar 15 09:27 Public
-rwxr-xr-x. 1 apache apache 2126 Mar 15 09:27 README.md
-rwxr-xr-x. 1 apache apache 378 Mar 15 09:27 spam.php
-rwxr-xr-x. 1 apache apache 5437 Mar 15 09:27 stats.php
drwxrwxrwx. 2 apache apache 4096 Mar 15 09:27 Temp
drwxr-xr-x. 6 apache apache 4096 Mar 15 09:27 View
# ls -la /usr/share/phpMemcachedAdmin/Temp/
drwxrwxrwx. 2 apache apache 4096 Mar 15 09:27 .
drwxr-xr-x. 7 root root 4096 Aug 2 17:53 ..
-rwxr-xr-x. 1 apache apache 15 Mar 15 09:27 .version
I am on an AWS EC2 instance if that helps. I am running CentOS 6 (for now, legacy site for a few months). I had to manually install version 1.3.0 and I added theses rules to SELinux.
setsebool -P httpd_can_network_connect=1
setsebool -P httpd_can_network_memcache 1
I used the installation guide but still having errors on the Temp folder.
What steps will reproduce the problem?
1. Just load it
What is the expected output? What do you see instead?
No PHP Warnings
What version of the product are you using? On what operating system?
phpmemcacheadmin 1.2.2 - Windows 7 x64, PHP 5.3.14, newest memcached for windows
Original issue reported on code.google.com by [email protected]
on 15 Feb 2013 at 9:12
dont know if some functionalities are broken because of this but for now i am
not able to get out in file as CSV or JSON ...may be i am looking into wrong
place.
PHP Warning: Module 'pcntl' already loaded in Unknown on line 0
PHP Deprecated: Function ereg() is deprecated in
/var/www/html/brutis-read-only/lib/functions.php on line 117
PHP Deprecated: Function split() is deprecated in
/var/www/html/brutis-read-only/lib/functions.php on line 118
PHP Deprecated: Function ereg() is deprecated in
/var/www/html/brutis-read-only/lib/functions.php on line 123
PHP Deprecated: Function ereg() is deprecated in
/var/www/html/brutis-read-only/lib/functions.php on line 123
Starting collector
PHP Warning: Module 'pcntl' already loaded in Unknown on line 0
PHP Warning: Module 'pcntl' already loaded in Unknown on line 0
Original issue reported on code.google.com by [email protected]
on 7 May 2013 at 5:44
Doing tar -xzf phpMemcachedAdmin-1.2.0-beta-r219.tar.gz doesn't work, nor does
gunzip straight. 7-zip reports the file as being in the zip format.
Original issue reported on code.google.com by [email protected]
on 21 Mar 2011 at 10:37
What steps will reproduce the problem?
1. Open the Dash board and look for "Slab Reassign & Automove"
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
2.2
Please provide any additional information below.
Hi,
I can see in the code that this section is hardcoded to "N/A".
can you please ellaborate how can we get results for this section?
Many thanks,
Oded
Original issue reported on code.google.com by [email protected]
on 25 Dec 2012 at 9:20
2 instances:
Deprecated: Implicit conversion from float 60.05361111111111 to int loses precision in C:\inetpub\Intranet_Local\phpmemcachedadmin\Library\Data\Analysis.php on line 253
Deprecated: Implicit conversion from float 3603.2166666666667 to int loses precision in C:\inetpub\Intranet_Local\phpmemcachedadmin\Library\Data\Analysis.php on line 254
public static function uptime($uptime, $compact = false)
{
if ($uptime > 0) {
$days = floor($uptime / 60 / 60 / 24);
$hours = $uptime / 60 / 60 % 24; <----line:253
$mins = $uptime / 60 % 60; <---line:254
if (($days + $hours + $mins) == 0) {
return ' less than 1 min';
}
if ($compact == false) {
return $days . ' day' . (($days > 1) ? 's' : '') . ' ' . $hours . ' hr' . (($hours > 1) ? 's' : '') . ' ' . $mins . ' min' . (($mins > 1) ? 's' : '');
} else {
return $days . 'd ' . $hours . 'h ' . $mins . 'm';
}
}
return ' - ';
}
Go to http://blog.elijaa.org/ to see the hack
Original issue reported on code.google.com by [email protected]
on 1 Jul 2015 at 7:20
Warning Warning: htmlentities() expects parameter 1 to be string, array given in phpMemcachedAdmin/Library/Bootstrap.php on line 16
when saving server configuration under Server List
Hi,
this is not a bug but an enhancement.
Here is a small patch to allow coloring slots for which eviction occured. There
are three different colors available depending on the "evicted_time" value for
the slot.
Concerning this field, note that evicted_time is the time the last evicted item
stayed in cache. This can be confusing in the way it is displayed currently as
the label is "Eviction Last" which first made me think it was the time when the
last eviction occured. However it's hard to find a short label that would be
less misleading (maybe "Last evicted lifetime").
Regards,
Colin
Original issue reported on code.google.com by [email protected]
on 12 Jan 2011 at 12:58
What steps will reproduce the problem?
Start the phpmemcachedadmin for the "problematic" server.
What is the expected output? What do you see instead?
The expected output should be correct information on interface, instead I get
division by zero messages and incorrectly displayed information.
What version of the product are you using? On what operating system?
I'm using phpmemcachedadmin 1.2.2 on Windows 7 x64 for Memcached 1.4.15 server
on Solaris 10 x86.
Additional information that may help:
I've just installed a new Memcached server and in phpmemcachedadmin the stats
are not displayed as expected. (see screenshot 1)
The problem is not reproducing for another server (see screenshot 2) and I
don't know what I've missed on my installation process that may cause this
problem. Memcached server seems to start OK the number of hits/misses,
current/total items are displayed correctly but the rest are messed up.
Original issue reported on code.google.com by [email protected]
on 25 Oct 2013 at 9:43
Attachments:
Just updated host to php8.1 from php7.3 and got error while restarting apache. Turns out problem was with ___autoloader (not supported anymore in php8+) in ./Library/Bootstrap.php.
# Autoloader
function __autoload($class)
{
require_once str_replace('_', DIRECTORY_SEPARATOR, $class) . '.php';
}
Replaced with:
spl_autoload_register(function($class) {
require_once str_replace('_', DIRECTORY_SEPARATOR, $class) . '.php';
}
);
and all seems ok now.
Warning with PHP 7.2.x => "PHP Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in C:\wamp\apps\phpmemcachedadmin\Library\Bootstrap.php on line 20"
How to correct that ?
Greetings,
Sylvain Legrand
What steps will reproduce the problem?
1. download v1.1.3
2. unzip to directory
3. run the app
What is the expected output? What do you see instead?
I expected there would be a link to "slabs" report, but I only see links to
live stats, stats, issue command, and edit configuration
What version of the product are you using? On what operating system?
1.1.3 on windows server 2008
Please provide any additional information below.
I looked through the PHP code and could not find a reference to the slabs
report url.
Original issue reported on code.google.com by jason%[email protected]
on 19 Oct 2010 at 12:50
What steps will reproduce the problem?
1. Download one of the packaged releases.
2. Untar it.
3. Observe that the contents explode all over your working directory.
Original issue reported on code.google.com by [email protected]
on 5 Feb 2015 at 10:12
The configuration of phpmemcacheadmin is stored in *.php file. Thus, when you
use opcode cache (APC, ZendOptimizer+, etc.) with 'timestamp revalidation'
setting turned off, you will see that the configuration is not updated and the
phpmemcacheadmin does not work at all.
Possible solution: change extension of config file from *.php to, for instance,
*.json, or read the config directly from a file instead of including/requiring
it via PHP.
Original issue reported on code.google.com by [email protected]
on 25 Mar 2014 at 10:42
What steps will reproduce the problem?
1. Go to "Execute commands on server"
2. Select "flush all"
3. execute
What is the expected output? What do you see instead?
Should flush all the cache.
Does nothing.
(the "OK" response from the server shows up, though)
What version of the product are you using? On what operating system?
1.2.2 on Debian
Please provide any additional information below.
Is this software being maintained, or am I wasting my time reporting bugs?
Original issue reported on code.google.com by [email protected]
on 20 Mar 2015 at 6:01
Having the ability to flush, add, set and delete directly from phpmemcacheadmin
is a little bit dangerous. It would be nice - although it brings no security at
all as it will always be possible to do it through telnet - to be able to mask
these possibilities in order to avoid an undesired click on "flush all servers"
by a user.
Original issue reported on code.google.com by [email protected]
on 3 Dec 2010 at 4:45
highcharts has a dual licensing model. Is the used version fully MIT?
A replacement would be chart.js
https://www.chartjs.org/
https://github.com/chartjs/Chart.js
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.