[hobbit] Need help. Hobbit installed, but web access fails.

Ming Qian childpsych.columbia at gmail.com
Fri Jan 29 23:16:15 CET 2010


[root at pons /etc/httpd/conf]# pwd
/etc/httpd/conf
[root at pons /etc/httpd/conf]# ls
httpd.conf  magic  Makefile  ssl.crl  ssl.crt  ssl.csr  ssl.key  ssl.prm
[root at pons /etc/httpd/conf]# cp httpd.conf httpd.conf.old
[root at pons /etc/httpd/conf]# cat ../conf.d/hobbit-apache.conf >> httpd.conf
[root at pons /etc/httpd/conf]# /etc/init.d/httpd status
httpd (pid 30689 30688 30687 30686 30685 30684 30683 30682 30679) is
running...
[root at pons /etc/httpd/conf]# /etc/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: [Fri Jan 29 17:15:43 2010] [warn] The Alias directive in
/etc/httpd/conf/httpd.conf at line 1043 will probably never match because it
overlaps an earlier Alias.
[Fri Jan 29 17:15:43 2010] [warn] The ScriptAlias directive in
/etc/httpd/conf/httpd.conf at line 1050 will probably never match because it
overlaps an earlier ScriptAlias.
[Fri Jan 29 17:15:43 2010] [warn] The ScriptAlias directive in
/etc/httpd/conf/httpd.conf at line 1058 will probably never match because it
overlaps an earlier ScriptAlias.
                                                           [  OK  ]
[root at pons /etc/httpd/conf]#











On Fri, Jan 29, 2010 at 5:14 PM, Ming Qian <childpsych.columbia at gmail.com>wrote:

> Good Idea.
> I will try it now.
>
> Bruce
>
>
> On Fri, Jan 29, 2010 at 5:09 PM, Josh Luthman <josh at imaginenetworksllc.com
> > wrote:
>
>> I don't think your configuration in conf.d is getting loaded in that
>> case.  My guess would be permissions.
>>
>> I'd add it to the httpd.conf to be certain.
>>
>>
>> Josh Luthman
>> Office: 937-552-2340
>> Direct: 937-552-2343
>> 1100 Wayne St
>> Suite 1337
>> Troy, OH 45373
>>
>> "The secret to creativity is knowing how to hide your sources."
>> --- Albert Einstein
>>
>>
>> On Fri, Jan 29, 2010 at 5:03 PM, Ming Qian <childpsych.columbia at gmail.com
>> > wrote:
>>
>>> If I trail it with a slash,
>>> apache log said:
>>> [Fri Jan 29 17:01:18 2010] [error] [client 192.168.71.55] (13)Permission
>>> denied: access to /xymon/ denied
>>>
>>> thank you.
>>>
>>> Bruce
>>>
>>>
>>>
>>> On Fri, Jan 29, 2010 at 4:50 PM, Josh Luthman <
>>> josh at imaginenetworksllc.com> wrote:
>>>
>>>> You need to trail it with a slash
>>>>
>>>> Your alias statement is /xymon/ - NOT /xymon
>>>>
>>>>
>>>> Josh Luthman
>>>> Office: 937-552-2340
>>>> Direct: 937-552-2343
>>>> 1100 Wayne St
>>>> Suite 1337
>>>> Troy, OH 45373
>>>>
>>>> "The secret to creativity is knowing how to hide your sources."
>>>> --- Albert Einstein
>>>>
>>>>
>>>> On Fri, Jan 29, 2010 at 4:42 PM, Ming Qian <
>>>> childpsych.columbia at gmail.com> wrote:
>>>>
>>>>> It seems like below:
>>>>>
>>>>> [root at pons /etc/httpd]# namei -m /home/xymon/server/www/
>>>>> f: /home/xymon/server/www/
>>>>>
>>>>>  drwxr-xr-x /
>>>>>  drwxr-xr-x home
>>>>>  drwxr-xr-x xymon
>>>>>  drwxr-xr-x server
>>>>>  drwxr-xr-x www
>>>>>
>>>>> Yeah.
>>>>> But according to apache error_log,
>>>>> It seems that it wants to access /var/www/html/xymon
>>>>> Because in the error_log, there is:
>>>>> [Fri Jan 29 16:40:39 2010] [error] [client 192.168.71.55] File does not
>>>>> exist: /var/www/html/xymon
>>>>> If I use browser to access http://*.*.*.*/xymon,
>>>>> it will result in another new same line.
>>>>> [Fri Jan 29 16:40:39 2010] [error] [client 192.168.71.55] File does not
>>>>> exist: /var/www/html/xymon
>>>>>
>>>>>
>>>>> thanks,
>>>>> bruce
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Jan 29, 2010 at 4:24 PM, Josh Luthman <
>>>>> josh at imaginenetworksllc.com> wrote:
>>>>>
>>>>>> If you request /xymon/ it's doing this:
>>>>>>
>>>>>> /home/xymon/server/www/
>>>>>>
>>>>>> Can you namei -m /home/xymon/server/www/ and make sure the permissions
>>>>>> are there?
>>>>>>
>>>>>> Apache has it set to allow as per
>>>>>>
>>>>>>
>>>>>> <Directory "/home/xymon/server/www">
>>>>>>     Options Indexes FollowSymLinks Includes MultiViews
>>>>>>     Order allow,deny
>>>>>>     Allow from all
>>>>>> </Directory>
>>>>>>
>>>>>> Josh Luthman
>>>>>> Office: 937-552-2340
>>>>>> Direct: 937-552-2343
>>>>>> 1100 Wayne St
>>>>>> Suite 1337
>>>>>> Troy, OH 45373
>>>>>>
>>>>>> "The secret to creativity is knowing how to hide your sources."
>>>>>> --- Albert Einstein
>>>>>>
>>>>>>
>>>>>> On Fri, Jan 29, 2010 at 4:15 PM, Ming Qian <
>>>>>> childpsych.columbia at gmail.com> wrote:
>>>>>>
>>>>>>> Thanks,
>>>>>>>
>>>>>>> drwxr-xr-x   8 xymon    xymon    4096 Jan 28 16:44 xymon
>>>>>>>
>>>>>>> /home/xymon is already been set 755.
>>>>>>>
>>>>>>> Bruce
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Jan 29, 2010 at 4:00 PM, Josh Luthman <
>>>>>>> josh at imaginenetworksllc.com> wrote:
>>>>>>>
>>>>>>>> <Directory "/home/xymon/server/www">
>>>>>>>>     Options Indexes FollowSymLinks Includes MultiViews
>>>>>>>>     Order allow,deny
>>>>>>>>     Allow from all
>>>>>>>> </Directory>
>>>>>>>>
>>>>>>>> Apache has access
>>>>>>>>
>>>>>>>> I'd bet since you're on RHEL the /home/xymon is 700
>>>>>>>>
>>>>>>>> Try
>>>>>>>>
>>>>>>>> chmod 755 /home/xymon
>>>>>>>>
>>>>>>>>
>>>>>>>> Josh Luthman
>>>>>>>> Office: 937-552-2340
>>>>>>>> Direct: 937-552-2343
>>>>>>>> 1100 Wayne St
>>>>>>>> Suite 1337
>>>>>>>> Troy, OH 45373
>>>>>>>>
>>>>>>>> "The secret to creativity is knowing how to hide your sources."
>>>>>>>> --- Albert Einstein
>>>>>>>>
>>>>>>>>
>>>>>>>> On Fri, Jan 29, 2010 at 3:57 PM, Ming Qian <
>>>>>>>> childpsych.columbia at gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Thank you very much.
>>>>>>>>>
>>>>>>>>> I tried like  http://192.168.1.50/xymon/
>>>>>>>>> But
>>>>>>>>> /var/log/httpd/error_log said:
>>>>>>>>>
>>>>>>>>> [Fri Jan 29 15:55:22 2010] [error] [client 192.168.71.55]
>>>>>>>>> (13)Permission denied: access to /xymon/ denied
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thank you.
>>>>>>>>>
>>>>>>>>> Bruce
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Fri, Jan 29, 2010 at 3:47 PM, Josh Luthman <
>>>>>>>>> josh at imaginenetworksllc.com> wrote:
>>>>>>>>>
>>>>>>>>>> Two arguing things in your email:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Alias /xymon/  "/home/xymon/server/www/"
>>>>>>>>>>
>>>>>>>>>> [Fri Jan 29 15:01:20 2010] [error] [client 192.168.71.55] File
>>>>>>>>>> does not exist: /var/www/html/xymon
>>>>>>>>>>
>>>>>>>>>> I think your trying http://192.168.1.50/xymon
>>>>>>>>>>
>>>>>>>>>> you should be trying http://192.168.1.50/xymon/
>>>>>>>>>>
>>>>>>>>>> Josh Luthman
>>>>>>>>>> Office: 937-552-2340
>>>>>>>>>> Direct: 937-552-2343
>>>>>>>>>> 1100 Wayne St
>>>>>>>>>> Suite 1337
>>>>>>>>>> Troy, OH 45373
>>>>>>>>>>
>>>>>>>>>> "The secret to creativity is knowing how to hide your sources."
>>>>>>>>>> --- Albert Einstein
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian <
>>>>>>>>>> qianm at childpsych.columbia.edu> wrote:
>>>>>>>>>>
>>>>>>>>>>> Dear All,
>>>>>>>>>>>
>>>>>>>>>>> I installed xymon on my redhat linux. The installation is
>>>>>>>>>>> successful, but the web access failed.
>>>>>>>>>>>
>>>>>>>>>>> Here is information:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> [root at pons /home]# ll | grep xymon
>>>>>>>>>>> drwxr-xr-x   8 xymon    xymon    4096 Jan 28 16:44 xymon
>>>>>>>>>>> [root at pons /home]# cd xymon/
>>>>>>>>>>> [root at pons /home/xymon]# ll
>>>>>>>>>>> total 40
>>>>>>>>>>> drwxr-xr-x   2 xymon xymon 4096 Jan 28 16:39 cgi-bin
>>>>>>>>>>> drwxr-xr-x   2 xymon xymon 4096 Jan 28 16:39 cgi-secure
>>>>>>>>>>> drwxr-xr-x   7 xymon root  4096 Jan 28 16:39 client
>>>>>>>>>>> drwxr-xr-x  10 xymon xymon 4096 Jan 28 16:39 data
>>>>>>>>>>> drwxr-xr-x   9 xymon xymon 4096 Jan 28 16:39 server
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> [root at pons /home/xymon]# uname -a
>>>>>>>>>>> Linux pons 2.6.9-67.0.4.ELsmp #1 SMP Fri Jan 18 05:00:00 EST 2008
>>>>>>>>>>> x86_64 x86_64 x86_64 GNU/Linux
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> [root at pons /etc/httpd/conf.d]# pwd
>>>>>>>>>>> /etc/httpd/conf.d
>>>>>>>>>>> [root at pons /etc/httpd/conf.d]# ls
>>>>>>>>>>> hobbit-apache.conf  perl.conf  php.conf  python.conf  README
>>>>>>>>>>> ssl.conf  webalizer.conf  welcome.conf
>>>>>>>>>>> [root at pons /etc/httpd/conf.d]#
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> # This file is for Apache 1.3.x and Apache 2.0.x
>>>>>>>>>>> #
>>>>>>>>>>> # Add this to your Apache configuration, it makes
>>>>>>>>>>> # the Xymon webpages and cgi-scripts available in the
>>>>>>>>>>> # "/xymon" and "/xymon-cgi" URLs.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> # NB: The "Alias" line below must NOT be used if you have
>>>>>>>>>>> #     the Xymon webfiles as the root URL. In that case,
>>>>>>>>>>> #     you should instead set this:
>>>>>>>>>>> #
>>>>>>>>>>> #DocumentRoot "/home/xymon/server/www"
>>>>>>>>>>>
>>>>>>>>>>> Alias /xymon/  "/home/xymon/server/www/"
>>>>>>>>>>> <Directory "/home/xymon/server/www">
>>>>>>>>>>>     Options Indexes FollowSymLinks Includes MultiViews
>>>>>>>>>>>     Order allow,deny
>>>>>>>>>>>     Allow from all
>>>>>>>>>>> </Directory>
>>>>>>>>>>>
>>>>>>>>>>> ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"
>>>>>>>>>>> <Directory "/home/xymon/cgi-bin">
>>>>>>>>>>>     AllowOverride None
>>>>>>>>>>>     Options ExecCGI Includes
>>>>>>>>>>>     Order allow,deny
>>>>>>>>>>>     Allow from all
>>>>>>>>>>> </Directory>
>>>>>>>>>>>
>>>>>>>>>>> ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"
>>>>>>>>>>> <Directory "/home/xymon/cgi-secure">
>>>>>>>>>>>     AllowOverride None
>>>>>>>>>>>     Options ExecCGI Includes
>>>>>>>>>>>     Order allow,deny
>>>>>>>>>>>     Allow from all
>>>>>>>>>>>
>>>>>>>>>>>     # Password file where users with access to these scripts are
>>>>>>>>>>> kept.
>>>>>>>>>>>     # Create it with "htpasswd -c
>>>>>>>>>>> /home/xymon/server/etc/hobbitpasswd USERNAME"
>>>>>>>>>>>     # Add more users / change passwords with "htpasswd
>>>>>>>>>>> /home/xymon/server/etc/hobbitpasswd USERNAME"
>>>>>>>>>>>     #
>>>>>>>>>>>     # You can also use a group file to restrict admin access to
>>>>>>>>>>> members of a
>>>>>>>>>>>     # group, instead of anyone who is logged in. In that case you
>>>>>>>>>>> must setup
>>>>>>>>>>>     # the "hobbitgroups" file, and change the "Require" settings
>>>>>>>>>>> to require
>>>>>>>>>>>     # a specific group membership. See the Apache docs for more
>>>>>>>>>>> details.
>>>>>>>>>>>
>>>>>>>>>>>     AuthUserFile /home/xymon/server/etc/hobbitpasswd
>>>>>>>>>>>     AuthGroupFile /home/xymon/server/etc/hobbitgroups
>>>>>>>>>>>     AuthType Basic
>>>>>>>>>>>     AuthName "Xymon Administration"
>>>>>>>>>>>
>>>>>>>>>>>     # "valid-user" restricts access to anyone who is logged in.
>>>>>>>>>>>     Require valid-user
>>>>>>>>>>>
>>>>>>>>>>>     # "group admins" restricts access to users who have logged
>>>>>>>>>>> in, AND
>>>>>>>>>>>     # are members of the "admins" group in hobbitgroups.
>>>>>>>>>>>     # Require group admins
>>>>>>>>>>>
>>>>>>>>>>> </Directory>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> And,
>>>>>>>>>>>
>>>>>>>>>>> the httpd log shows:
>>>>>>>>>>>
>>>>>>>>>>> [Fri Jan 29 15:01:20 2010] [error] [client 192.168.71.55] File
>>>>>>>>>>> does not exist: /var/www/html/xymon
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Thanks a lot,
>>>>>>>>>>> Best,
>>>>>>>>>>> Ming
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20100129/50b169fe/attachment.html>


More information about the Xymon mailing list