xzyfer
xzyfer

Reputation: 14125

php memcached stats page, using PECL::memcache

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?

Upvotes: 3

Views: 3320

Answers (3)

Pascal MARTIN
Pascal MARTIN

Reputation: 400932

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 :

Upvotes: 1

tszming
tszming

Reputation: 2084

The file you needed is here: http://svn.php.net/viewvc/pecl/memcache/trunk/memcache.php?view=markup

Upvotes: 0

rubayeet
rubayeet

Reputation: 9400

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.

Upvotes: 0

Related Questions