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.

Installing mod_watch for Apache 2.2 and make it work on http://127.0.0.1

Discussion in 'EasyApache' started by ovisopa, Jan 11, 2010.

  1. ovisopa

    ovisopa Member

    Joined:
    Apr 12, 2007
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Hello guys,

    I need to install mod_watch for apache and use it along with a nice plugin for Munin

    MuninExchange

    The plugin monitors apache request for every host separately so it's very easy to see websites traffic spikes

    I could install mod_watch 4.3 for apache 2.2 but I can't make it report the statistics when accessing http://localhost/watch-info or http://127.0.0.1/watch-info

    If I add the directives outside the vhosts i get a 404 error when I try to access the weblink, but if I add the directives inside one virtualhost and access like http://vhost/watch-info it does work ok

    PHP:
    <IfModule mod_watch.c>
        
    # Allows the URL used to query virtual host data:
        #
        # http://www.snert.com/watch-info
        #
        
    <Location /watch-info>
        
    SetHandler watch-info
        Order allow
    ,deny
        Allow from 127.0.0.1
        
    </Location>


        
    # Intended for debugging and analysis of shared memory
        # hash table and weenie files:
        #
        #http://127.0.0.1/watch-table
        #

        
    <Location /watch-table>
        
    SetHandler watch-table
        Order allow
    ,deny
        Allow from 127.0.0.1
        
    </Location>

        <
    Location /watch-list>
        
    SetHandler watch-list
        
    Order allow,deny
        Allow from 127.0.0.1
        
    </Location>
    </
    IfModule>
    Any ideea what I can make to get the statistics on localhost ? (If I didn;t had cPanel on the server everything was very simple but with cPanel something is not working ok, cpanel is blocking the request ??)
     
  2. guilgot

    guilgot Registered

    Joined:
    Mar 19, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    exactly the same !!!!

    Hi,
    I am exactly in the same situation as you. :mad:
    Have you found a solution ???

    Thanx in advanced

    Guilgot
     
Loading...

Share This Page