How to install phpMemcachedAdmin?

Joined
Jun 30, 2016
Messages
33
Best answers
0
Ratings
2
Points
0
#1
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
Joined
Jun 26, 2016
Messages
544
Best answers
0
Ratings
103
Points
43
#2
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.
 
Joined
Jun 30, 2016
Messages
33
Best answers
0
Ratings
2
Points
0
#3
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

Global Mod
Staff Member
Joined
May 3, 2016
Messages
1,551
Best answers
4
Ratings
412 13
Points
83
#4
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
Joined
Apr 20, 2016
Messages
114
Best answers
0
Ratings
5
Points
18
#5
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

Global Mod
Staff Member
Joined
May 3, 2016
Messages
1,551
Best answers
4
Ratings
412 13
Points
83
#6
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.
 
Joined
Jun 30, 2016
Messages
33
Best answers
0
Ratings
2
Points
0
#7
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

Global Mod
Staff Member
Joined
May 3, 2016
Messages
1,551
Best answers
4
Ratings
412 13
Points
83
#8
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
Joined
Jun 26, 2016
Messages
544
Best answers
0
Ratings
103
Points
43
#9
@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);
?>
 
Joined
Jun 30, 2016
Messages
33
Best answers
0
Ratings
2
Points
0
#10
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
 
Joined
Jan 13, 2017
Messages
25
Best answers
0
Ratings
1
Points
0
#12
How hard is it for a newbie to install phpMemcachedAdmin? Is there anything to keep in mind?
 
Joined
Jun 30, 2016
Messages
33
Best answers
0
Ratings
2
Points
0
#13
@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
Joined
Jun 30, 2017
Messages
229
Best answers
0
Ratings
10
Points
18
#14
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
1,193
Replies
6
Views
756
fwh
Replies
9
Views
5,623
Replies
3
Views
5,274
Recommended Threads
Replies
9
Views
230
Replies
9
Views
1,337
Replies
5
Views
1,169

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

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