php memcached stats page, using PECL::memcache

3.3k views Asked by At

I'm running php 5.3. I have installed the pecl memcache extension. Once upon a time there was the memcache.php (which I'm aware is still around and usable) for viewing useful memcached stats and other info. At some point this page was committed into the pecl memcached extension (can't get the link to the commit atm).

My question is once the extension is installed how do I view this page?

3

There are 3 answers

2
Pascal MARTIN On BEST ANSWER

To view the result of the memcache.php file, you'll have to :

  • download it (download the .tgz archive from PECL, it should be included)
  • Eventually, configure the memcache.php file, to indicate which servers should be monitored
    • You'll have to configure the $MEMCACHE_SERVERS array
  • Put that memcache.php file somewhere on your server
    • Making sure it's somewhere that's not publicly accessible.
  • Access the file from your browser ;-)


Installing the PECL memcache extension will allow you to use communicate with a memcached server from PHP -- but it'll not install the memcache.php file on your webserver.

Apparently, this file has been added in PECL for these two versions of the extension :

0
rubayeet On

You can use Telnet to connect to the memcached IP address and port and use certain commands to get stats. Here's an article that might help.

1
tszming On