hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Install mod_watch_4.3 on Apache 2.2.14 and cPanel server
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Install mod_watch_4.3 on Apache 2.2.14 and cPanel server

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 01-09-2010, 09:13 AM
ovisopa ovisopa is offline
Junior Guru
 
Join Date: Dec 2002
Location: Sibiu, Romania
Posts: 202

Install mod_watch_4.3 on Apache 2.2.14 and cPanel server


Hello guys,

I try to install mod_watch_4.3 on a new VDS with cPanel/WHM and apache_watch_ plugin for Munin monitoring service.

I think the mod_watch is successfully installed because I can see this in the phpinfo()

PHP Code:
SERVER_SIGNATURE     <address>Apache/2.2.14 (Unixmod_ssl/2.2.14 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_watch/4.3 </address
SERVER_SOFTWARE     Apache/2.2.14 (Unixmod_ssl/2.2.14 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_watch/4.3 
As I saw the notice to not edit manualy the httpd.conf, I did so and added the directive in WHM > Apache Configuration > Include Editor on the "Pre Main Include"

here is what I added there :

PHP Code:
  <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 localhost
    
</Location>

    
# Allows the URL used to query file owner and web
    # server data:
    #
    #   http://www.snert.com/~achowe/watch-info
    #   http://www.snert.com/~SERVER/watch-info
    #
    
<Location /~*/watch-info>
    
SetHandler watch-info
    
</Location>
  </
IfModule
when I try to test the plugin, running the command:

# ./mod_watch.pl -f ifRequests,ifDocuments http://127.0.0.1/watch-list/

I get this error in apache error_log

[Sat Jan 09 15:06:31 2010] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/htdocs/watch-list

I followed instructions mainly from this website http://www.freshnet.org/wordpress/20...st-with-munin/

Any ideea what might be the issue ?

Thank you advance.

Reply With Quote


Sponsored Links
  #2  
Old 01-10-2010, 08:44 AM
ovisopa ovisopa is offline
Junior Guru
 
Join Date: Dec 2002
Location: Sibiu, Romania
Posts: 202
After more hours of testing and trying different configs I still can't make http://localhost/watch-info display what it should.

But now I'm 100% sure mod_watch is installed corectly, I have added the directives <IfModule mod_watch.c> .... into one of the vhosts and access the link like http://vhost/watch-info and it displayed corectly.

The only problem is that I can't make it work for http://localhost because of cPanel

i have tried adding the directive in different places, at the beggining of httpd.conf, at the end, in the main server vhost, just above all vhosts, after another directive which works just fine (paste the code bellow) but still not working,

PHP Code:
<Location /whm-server-status>
    
SetHandler server-status
    Order deny
,allow
    Deny from all
    Allow from 127.0.0.1
</Location>

<
IfModule mod_watch.c>
.... 

This is what I get:
PHP Code:
# ./mod_watch.pl -f ifRequests,ifDocuments http://localhost/watch-info

localhost:80 (Not Found
Anyone can help me with this? How to make it work on this cPanel server? I'm 99,9% sure this is all about cPanel

Reply With Quote
  #3  
Old 01-11-2010, 02:18 AM
LeaTrueman LeaTrueman is offline
Web Hosting Guru
 
Join Date: Oct 2009
Posts: 275
Hello,

Are you getting the same result for http://127.0.0/watch-info after you have finished the installation completely?

Reply With Quote
Sponsored Links
  #4  
Old 01-11-2010, 02:59 AM
ovisopa ovisopa is offline
Junior Guru
 
Join Date: Dec 2002
Location: Sibiu, Romania
Posts: 202
If you mean if I tested with bouth localhost and 127.0.0.1, yes I have tried to access watch-info using bouth ways, and also changed the directives in httpd.conf from localhost to 127.0.0.1

It was a mistake when you wrote 127.0.0 (without .1) ? I have not tried without .1 but I'm sure this is not a valid IP address.

Reply With Quote
  #5  
Old 09-20-2010, 04:18 PM
powerflash powerflash is offline
Newbie
 
Join Date: Sep 2004
Posts: 21
Hi ovisopa, I installed mod_watch and set url in localhost: server-status, etc... all url work and I set plugin in munin but dont see graph in munin seciton of WHM panel, you can help me?

Reply With Quote
  #6  
Old 09-20-2010, 05:01 PM
ovisopa ovisopa is offline
Junior Guru
 
Join Date: Dec 2002
Location: Sibiu, Romania
Posts: 202
sorry but I couldn't make it work and I gave up. If you can resolve the issues let us know.

In WHM Munin's page you see a section called Apache Watch, but is empty or you don't see any change in WHM at all ?

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
using existing apache vhosts with a new cpanel install mindframe Hosting Software and Control Panels 2 11-12-2005 07:49 PM
Need someone to install apache/mysql/etc on my server Mark L Employment / Job Offers 2 09-10-2005 07:54 PM
How to install Cpanel on an Apache off XAMPP? Kerean Hosting Software and Control Panels 4 08-09-2005 02:49 PM
How To Install a Second Apache in cPanel? alexis Hosting Software and Control Panels 2 02-24-2005 02:16 PM
Need quote for mod_auth_mysql install on cPanel/Apache 1.3 setup peruda.com Other Web Hosting Related Offers 3 02-07-2005 11:39 AM

Related posts from TheWhir.com
Title Type Date Posted
Weekend Reading: Top Web Hosting News from the Week of October 8-12, 2012 Web Hosting News 2012-10-13 13:26:54
Apache Web Server Adds Cloud Capabilities with First Major Update in 5 Years Web Hosting News 2012-02-21 16:05:02
Control Panel cPanel Launches New Apache Configuration Script Web Hosting News 2011-12-28 19:41:39
Oracle is the Latest Vendor to Apply Patch for Apache Killer Flaw Web Hosting News 2011-09-19 14:43:58
Softaculous Adds 17 New Apps to Auto Installer Library Web Hosting News 2011-09-12 17:51:10


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?