Check, who all are using WordPress or any other third party SF

furquan

Well-Known Member
Jul 27, 2002
473
4
168
Hello All :

I have a small request, How is it that one can find out which clients on the server are using wordpress

Can we do that ?
 

furquan

Well-Known Member
Jul 27, 2002
473
4
168
infact i did find out one way and very similar to what you say :)

we can grep for wp_ files or folders in /home/ partition

The wordpress files and folders are using the prefix wp_
find -iname wp_*
[/home]# find -iname wp_*
 

furquan

Well-Known Member
Jul 27, 2002
473
4
168

furquan

Well-Known Member
Jul 27, 2002
473
4
168
egrep -R -i 'wp-*' /home/*
Ohh man..that gives us too much output than required...a lot of junk
 

furquan

Well-Known Member
Jul 27, 2002
473
4
168
Ohh man...to much of unwanted output using this cmd ...
egrep -R -i 'wp-*' /home/*
:(
 

furquan

Well-Known Member
Jul 27, 2002
473
4
168
On second thoughts...i guess this is the apt cmd :-
find -iname wp_*
It gives you only what is required...
 

ModServ

Well-Known Member
Oct 17, 2006
337
5
168
Egypt
cPanel Access Level
Root Administrator
These are tested and working like charm

Code:
find /home/*/public_html/ -type f -name wp-*
You can put the result inside a text file by using this

Code:
find /home/*/public_html/ -type f -name wp-* > result.txt
Or you could revise manually the results by this

Code:
find /home/*/public_html/ -type f -name wp-* | more
Note: Hit SPACE to move through results
 

furquan

Well-Known Member
Jul 27, 2002
473
4
168
Fantastic :) That is a lot of information .....

I will open this thread again if i need to find out any other services used by the user ;)
 

furquan

Well-Known Member
Jul 27, 2002
473
4
168
Ok, Another quick query,

How is it Or from where can we get a copy of the tweak settings ofr the server..so that i can directly upload it to one of my other servers which will be using the same settings ?

Any idea ?
 

ModServ

Well-Known Member
Oct 17, 2006
337
5
168
Egypt
cPanel Access Level
Root Administrator
You can find them in:
Code:
/var/cpanel/cpanel.config

After uploading the file execute this command to make the configuration takes effect:
Code:
/usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings
 

furquan

Well-Known Member
Jul 27, 2002
473
4
168
That means...i copy this file :-
/var/cpanel/cpanel.config
from the source server to the destination server
and then
on the desitnation server i need to execute this :-
/usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings
 

ModServ

Well-Known Member
Oct 17, 2006
337
5
168
Egypt
cPanel Access Level
Root Administrator
You could use these *Just two commands*

Source Server:
Code:
cd /var/cpanel; tar -cpzf cpconfig.tar.gz cpanel.config; mv cpconfig.tar.gz /usr/local/apache/htdocs/
Destination Server:
Code:
wget http://IPADDRESS/cpconfig.tar.gz; tar -xzf cpconfig.tar.gz; rm -rf cpconfig.tar.gz; mv cpanel.config /var/cpanel/
IPADDRESS: Your source server IP Address
Then click Y for replace

After that execute the final command

Code:
/usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings
Done! :)