How to install phpMemcachedAdmin?

Terrance

Member
Registered
Joined
Jun 30, 2016
Messages
33
Points
0
I installed Memcached caching on my VPS but I could not find a place to see statistics about memcached. Just google it and I knew phpMemcachedAdmin, this tool is for showing me everything that is happening with memcached but I could not install it. Can you guys share me any tips to install it successfully?

Thanks in advance
Matthew
 

Luxin Host

Well-known member
Registered
Joined
Jun 26, 2016
Messages
543
Points
43
I installed Memcached caching on my VPS but I could not find a place to see statistics about memcached. Just google it and I knew phpMemcachedAdmin, this tool is for showing me everything that is happening with memcached but I could not install it. Can you guys share me any tips to install it successfully?

Thanks in advance
Matthew
Hi Matthew, I can most definitely help you. May I ask what OS you are using?

I will try to tell you what to do and if you face any issues then we can use screen sharing to figure it out.
 

Terrance

Member
Registered
Joined
Jun 30, 2016
Messages
33
Points
0
Terrance
Hi Luxin Host, your reply made me back to the forum and yes, I am using Centos 6.x, I could not exactly remember since I have registered it with my hosting provider. I only know it is version 6.x and 64 bit OS.
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
Hello Terrance,

For phpmemcacheadmin you just have to download the phpfiles in a folder of your web server :
Code:
cd /var/www/example.com/htdocs/
mkdir mem && cd mem
wget http://phpmemcacheadmin.googlecode.com/files/phpMemcachedAdmin-1.2.2-r262.tar.gz
tar -xvzf phpMemcachedAdmin-1.2.2-r262.tar.gz
chmod +r *
chmod 0777 Config/Memcache.php
 

TheCompWiz

Well-known member
Registered
Joined
Apr 20, 2016
Messages
130
Points
18
Hello Terrance,

For phpmemcacheadmin you just have to download the phpfiles in a folder of your web server :
Code:
cd /var/www/example.com/htdocs/
mkdir mem && cd mem
wget http://phpmemcacheadmin.googlecode.com/files/phpMemcachedAdmin-1.2.2-r262.tar.gz
tar -xvzf phpMemcachedAdmin-1.2.2-r262.tar.gz
chmod +r *
chmod 0777 Config/Memcache.php
These for viewing memcached whole server or just for site example.com?

What do these codes mean?

chmod +r *
chmod 0777 Config/Memcache.php
where is the URL to run phpmemcacheadmin and view stats?
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
What do these codes mean?
chmod +r * -> adding rights writing on all the files of the folder
chmod 0777 config/memcache.php -> adding reading, writing and executing for the memcache.php for all the users

These for viewing memcached whole server or just for site example.com?
Only for the virtual domain where you add them


where is the URL to run phpmemcacheadmin and view stats?
If you have download phpMemcacheAdmin in /htdocs/phpmemcacheAdmin/ so the url will be http://yourdomain.com/phpmemcacheAdmin/
But as anyone can access to this url, you have to add an ACL ( access rules) to protect it from visitors.
 

Terrance

Member
Registered
Joined
Jun 30, 2016
Messages
33
Points
0
Hello Terrance,

For phpmemcacheadmin you just have to download the phpfiles in a folder of your web server :
Code:
cd /var/www/example.com/htdocs/
mkdir mem && cd mem
wget http://phpmemcacheadmin.googlecode.com/files/phpMemcachedAdmin-1.2.2-r262.tar.gz
tar -xvzf phpMemcachedAdmin-1.2.2-r262.tar.gz
chmod +r *
chmod 0777 Config/Memcache.php

chmod +r * -> adding rights writing on all the files of the folder
chmod 0777 config/memcache.php -> adding reading, writing and executing for the memcache.php for all the users

Only for the virtual domain where you add them

If you have download phpMemcacheAdmin in /htdocs/phpmemcacheAdmin/ so the url will be http://yourdomain.com/phpmemcacheAdmin/
But as anyone can access to this url, you have to add an ACL ( access rules) to protect it from visitors.
Thanks you for great help!

I have installed memcached on whole VPS before, at root account.

It is possible to see memcached for all domains or using your way to see stats for each site?

Seem your installation is working on each user account, not root account.
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
It is possible to see memcached for all domains or using your way to see stats for each site?
No you can't as each virtual host has his own configuration. It could be possible only without vhosts. But I have tried memcache few minutes ago for a big wordpress to speed up, and Redis is really more efficient.
 

Luxin Host

Well-known member
Registered
Joined
Jun 26, 2016
Messages
543
Points
43
@Terrance
VirtuBox is right, sorry I was offline for a bit upgrading servers.

You would have to run multiple memcached instances.

also if you want to add servers?

Code:
<?php
$m = new Memcached();

$servers = array(
    array('mem1.domain.com', 11211, 33),
    array('mem2.domain.com', 11211, 67)
);
$m->addServers($servers);
?>
 

Terrance

Member
Registered
Joined
Jun 30, 2016
Messages
33
Points
0
Hi friends

you made my day!

I have just installed phpmemcachedadmin successfully on my hosting server.

Here's steps I have done and i want to share here and hope no one will not have the same problem to me.

Creating a folder name phpMemcachedAdmin in your public_html

Code:
# cd /home/path_to/public_html/phpMemcachedAdmin
Download phpMemcachedAdmin

Code:
wget http://phpmemcacheadmin.googlecode.com/files/phpMemcachedAdmin-1.2.2-r262.tar.gz
Extract it into the folder
Code:
tar xzf phpMemcachedAdmin-1.2.2-r262.tar.gz
Back to public_html and chown phpMemcachedAdmin folder

Code:
chown -R username .username phpMemcachedAdmin
Make the folder writable.

Code:
chmod -R 755 phpMemcachedAdmin
In /etc/httpd/conf/ create a config file phpMemcachedAdmin.conf with codes

Code:
# phpMemcachedAdmin - Web based Memcached browser written in php

Alias /phpMemcachedAdmin /home/path_to/public_html/phpMemcachedAdmin
Alias /phpmemcachedadmin /home/path_to/public_html/phpMemcachedAdmin
Restart httpd
Code:
service httpd restart
Now I can run via my domain

Code:
example.com/phpMemcachedAdmin
and see the result that I have done

how-to-install-phpMemcachedAdmin.jpg


Regards
Matthew
 

Polymath

Member
Registered
Joined
Jan 13, 2017
Messages
25
Points
0
How hard is it for a newbie to install phpMemcachedAdmin? Is there anything to keep in mind?
 

Terrance

Member
Registered
Joined
Jun 30, 2016
Messages
33
Points
0
@Terrance

Very glad it worked out for you Matthew :)
Thats what I like to see :yourock:
Thanks guys, from answers I knew I lacked of somethings while install this addon.

How hard is it for a newbie to install phpMemcachedAdmin? Is there anything to keep in mind?
You need to have Memcached running on your hosting server, you will need phpMemcachedAdmin to monitor it
 

vinaya

Well-known member
Registered
Joined
Jun 30, 2017
Messages
229
Points
18
phpmemcacheadmin is a stand-alone graphic administration for memcached to monitor and debug. Memcached is memory caching system for general purpose. phpmemcacheadmin helps you to check stats in real-time with server internal configuration and googlecharts.
First, you will have to create a directory on your web server and then download phpMemcachedAdmin. Second step is to extract the file.
Now you will have to create a new configuration file for phpMemcachedAdmin in apache. For debian and ubuntu users, the process is slightly different.
In order to prevent implement unauthorized access, you will have secure phpMemcachedAdmin url with Apache basic security. Now, restart apache and check the phpMemcachedAdmin url in your browser. You are done.
 
Older Threads
Replies
8
Views
5,849
Replies
6
Views
2,900
fwh
Replies
9
Views
9,717
Replies
3
Views
7,468
Latest Threads
Replies
1
Views
23
Replies
0
Views
175
Replies
1
Views
37
Replies
2
Views
81
Recommended Threads

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top