The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'General Discussion' started by furquan, Jun 10, 2011.

  1. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    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 ?
     
  2. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Execute those

    Code:
    updatedb
    then

    Code:
    locate wp-*
     
  3. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    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

     
  4. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    You can also do something like that

    Code:
    egrep -R -i 'wp-*' /home/*
    There's a lot of commands to do the job, You may choose what you see appropriate with you.

    BTW, Prefix is wp- not wp_ ;)
     
  5. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    Thank you for the correction ;)
     
  6. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    You are quite welcome! :)
     
  7. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    Ohh man..that gives us too much output than required...a lot of junk
     
  8. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Yes, I could see that, Avoid using egrep and go with locate or find.
     
  9. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    Ohh man...to much of unwanted output using this cmd ...
    :(
     
  10. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    I see that, Sorry, It just hit my mind without thinking of what will appear in results, That's why you shouldn't be wake 48 hours without sleep :D
     
  11. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Look, Go with that *TESTED*

    find /home/*/public_html/ -type f -name wp-*
     
  12. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    On second thoughts...i guess this is the apt cmd :-
    It gives you only what is required...
     
  13. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    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
     
  14. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    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 ;)
     
  15. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Feel free to do what you need, I'm ready to help :)
     
  16. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    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 ?
     
  17. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    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
     
  18. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    That means...i copy this file :-
    from the source server to the destination server
    and then
    on the desitnation server i need to execute this :-
     
  19. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Exactly! :)
     
  20. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    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! :)
     
Loading...

Share This Page