Xymon Mailing List Archive search

Need help. Hobbit installed, but web access fails.

36 messages in this thread

list Ming Qian · Fri, 29 Jan 2010 15:42:55 -0500 ·
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
list Josh Luthman · Fri, 29 Jan 2010 15:47:24 -0500 ·
Two arguing things in your email:

Alias /xymon/  "/home/xymon/server/www/"
quoted from Ming Qian

[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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein
quoted from Ming Qian


On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian <user-2a1222167d38@xymon.invalid>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

list Malcolm Hunter · Fri, 29 Jan 2010 21:52:44 +0100 ·
quoted from Josh Luthman
I installed xymon on my redhat linux. The installation is successful, but
the web access failed.
In your web browser did you use the URL: http://webserver/xymon/ (notice the trailing slash character)?

Malcolm


-- 
Technical copy-editor & proofreader

KDE Proofreading Team
KDE British English Translation Team

http://l10n.kde.org/team-infos.php?teamcode=en_GB

Facebook: http://www.facebook.com/FriendlyAtheist

Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser
list Ming Qian · Fri, 29 Jan 2010 15:57:18 -0500 ·
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
quoted from Josh Luthman
<user-4c45a83f15cb@xymon.invalid>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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian <user-2a1222167d38@xymon.invalid>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

list Ming Qian · Fri, 29 Jan 2010 15:58:22 -0500 ·
Thank you Malcolm.
quoted from Malcolm Hunter

Bruce


On Fri, Jan 29, 2010 at 3:52 PM, Malcolm Hunter <user-b3e590ffeb6d@xymon.invalid>wrote:
I installed xymon on my redhat linux. The installation is successful, but
the web access failed.
In your web browser did you use the URL: http://webserver/xymon/ (notice
the trailing slash character)?

Malcolm


--
Technical copy-editor & proofreader

KDE Proofreading Team
KDE British English Translation Team

http://l10n.kde.org/team-infos.php?teamcode=en_GB

Facebook: http://www.facebook.com/FriendlyAtheist

Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5
• sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser

list Ming Qian · Fri, 29 Jan 2010 15:59:33 -0500 ·
And,

The hobbit-apache.conf is the default file. I copied it from
/home/xymon/server/etc to /etc/httpd/conf.d without any revision.

thanks,
quoted from Ming Qian

Bruce


On Fri, Jan 29, 2010 at 3:57 PM, Ming Qian <user-88faa238dba4@xymon.invalid>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 <user-4c45a83f15cb@xymon.invalid
quoted from Ming Qian
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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian <user-2a1222167d38@xymon.invalid
quoted from Ming Qian
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

list Josh Luthman · Fri, 29 Jan 2010 16:00:58 -0500 ·
quoted from Ming Qian
<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
signature

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


quoted from Ming Qian
On Fri, Jan 29, 2010 at 3:57 PM, Ming Qian <user-88faa238dba4@xymon.invalid>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 <user-4c45a83f15cb@xymon.invalid
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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian <user-2a1222167d38@xymon.invalid
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

list Ming Qian · Fri, 29 Jan 2010 16:08:53 -0500 ·
By the way,

there is a php website in the directory: /var/www/html/php_site
and it works.

I am confused.
I appreciate your help.
quoted from Josh Luthman

Bruce


On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian <user-2a1222167d38@xymon.invalid>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

list Ming Qian · Fri, 29 Jan 2010 16:15:50 -0500 ·
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
quoted from Ming Qian
<user-4c45a83f15cb@xymon.invalid>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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:57 PM, Ming Qian <user-88faa238dba4@xymon.invalid>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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian <
user-2a1222167d38@xymon.invalid> 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

list Josh Luthman · Fri, 29 Jan 2010 16:18:03 -0500 ·
Show us namei -m /home/xymon
signature

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


quoted from Ming Qian
On Fri, Jan 29, 2010 at 4:08 PM, Ming Qian <user-2a1222167d38@xymon.invalid>wrote:
By the way,

there is a php website in the directory: /var/www/html/php_site
and it works.

I am confused.
I appreciate your help.

Bruce


On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian <user-2a1222167d38@xymon.invalid>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

list Ming Qian · Fri, 29 Jan 2010 16:18:49 -0500 ·
And,
In /etc/httpd/conf/httpd.conf

<Directory "/var/www/html">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride None

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

</Directory>


Does it matter?
quoted from Ming Qian

Bruce


On Fri, Jan 29, 2010 at 4:15 PM, Ming Qian <user-88faa238dba4@xymon.invalid>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 <user-4c45a83f15cb@xymon.invalid
quoted from Josh Luthman
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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:57 PM, Ming Qian <user-88faa238dba4@xymon.invalid
quoted from Josh Luthman
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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian <
user-2a1222167d38@xymon.invalid> 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

list Josh Luthman · Fri, 29 Jan 2010 16:24:45 -0500 ·
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
quoted from Ming Qian

<Directory "/home/xymon/server/www">
    Options Indexes FollowSymLinks Includes MultiViews
    Order allow,deny
    Allow from all
</Directory>

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 4:15 PM, Ming Qian <user-88faa238dba4@xymon.invalid>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 <user-4c45a83f15cb@xymon.invalid
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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:57 PM, Ming Qian <user-88faa238dba4@xymon.invalid
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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian <
user-2a1222167d38@xymon.invalid> 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

list Ming Qian · Fri, 29 Jan 2010 16:27:34 -0500 ·
[root at pons /etc/httpd]# namei -m /home/xymon
f: /home/xymon
 drwxr-xr-x /
 drwxr-xr-x home
 drwxr-xr-x xymon


Thank you.

Bruce


On Fri, Jan 29, 2010 at 4:18 PM, Josh Luthman
quoted from Josh Luthman
<user-4c45a83f15cb@xymon.invalid>wrote:
Show us namei -m /home/xymon


Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 4:08 PM, Ming Qian <user-2a1222167d38@xymon.invalid>wrote:
By the way,

there is a php website in the directory: /var/www/html/php_site
and it works.

I am confused.
I appreciate your help.

Bruce


On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian <user-2a1222167d38@xymon.invalid
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

list Josh Luthman · Fri, 29 Jan 2010 16:37:55 -0500 ·
No.  Different Directory.
signature

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


quoted from Ming Qian
On Fri, Jan 29, 2010 at 4:18 PM, Ming Qian <user-88faa238dba4@xymon.invalid>wrote:
And,
In /etc/httpd/conf/httpd.conf

<Directory "/var/www/html">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride None

#
# Controls who can get stuff from this server.

#
    Order allow,deny
    Allow from all

</Directory>


Does it matter?

Bruce


On Fri, Jan 29, 2010 at 4:15 PM, Ming Qian <user-88faa238dba4@xymon.invalid>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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:57 PM, Ming Qian <
user-88faa238dba4@xymon.invalid> 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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian <
user-2a1222167d38@xymon.invalid> 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

list Ming Qian · Fri, 29 Jan 2010 16:42:22 -0500 ·
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
quoted from Josh Luthman
<user-4c45a83f15cb@xymon.invalid>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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 4:15 PM, Ming Qian <user-88faa238dba4@xymon.invalid>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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:57 PM, Ming Qian <
user-88faa238dba4@xymon.invalid> 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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian <
user-2a1222167d38@xymon.invalid> 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

list Kii Noda · Fri, 29 Jan 2010 23:43:29 +0200 ·
Hello,

Your httpd.log shows "File does not exist: /var/www/html/xymon" although you
show you have "Alias /xymon/  /home/xymon/server/www/". This behavior says
to me that the httpd.conf excerpt has not been pasted to the corresponding
virtual host, thus giving you a "File does not exist".

Can you please check that you have that conf added to the correct virtual
host?

-- 
kN

On Fri, Jan 29, 2010 at 10:42 PM, Ming Qian
quoted from Ming Qian
<user-2a1222167d38@xymon.invalid>wrote:
Dear All,

I installed xymon on my redhat linux. The installation is successful, but
the web access failed.

Here is information:

[ snip ]

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
list Ming Qian · Fri, 29 Jan 2010 16:44:24 -0500 ·
The redhat linux which I am using now was used by anther guy before.
He setup a php website in /var/www/html.
So I guess I may need to revise something in apache config?
quoted from Ming Qian

Bruce


On Fri, Jan 29, 2010 at 4:42 PM, Ming Qian <user-88faa238dba4@xymon.invalid>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 <user-4c45a83f15cb@xymon.invalid
quoted from Ming Qian
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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 4:15 PM, Ming Qian <user-88faa238dba4@xymon.invalid
quoted from Ming Qian
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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:57 PM, Ming Qian <
user-88faa238dba4@xymon.invalid> 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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian <
user-2a1222167d38@xymon.invalid> 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

list Josh Luthman · Fri, 29 Jan 2010 16:50:30 -0500 ·
You need to trail it with a slash

Your alias statement is /xymon/ - NOT /xymon
signature

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


quoted from Ming Qian
On Fri, Jan 29, 2010 at 4:42 PM, Ming Qian <user-88faa238dba4@xymon.invalid>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 <user-4c45a83f15cb@xymon.invalid
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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 4:15 PM, Ming Qian <user-88faa238dba4@xymon.invalid
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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:57 PM, Ming Qian <
user-88faa238dba4@xymon.invalid> 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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian <
user-2a1222167d38@xymon.invalid> 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

list Ming Qian · Fri, 29 Jan 2010 17:03:13 -0500 ·
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
quoted from Josh Luthman
<user-4c45a83f15cb@xymon.invalid>wrote:
You need to trail it with a slash

Your alias statement is /xymon/ - NOT /xymon


Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 4:42 PM, Ming Qian <user-88faa238dba4@xymon.invalid>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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 4:15 PM, Ming Qian <
user-88faa238dba4@xymon.invalid> 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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:57 PM, Ming Qian <
user-88faa238dba4@xymon.invalid> 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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian <
user-2a1222167d38@xymon.invalid> 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

list Josh Luthman · Fri, 29 Jan 2010 17:09:50 -0500 ·
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.
signature

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


quoted from Ming Qian
On Fri, Jan 29, 2010 at 5:03 PM, Ming Qian <user-88faa238dba4@xymon.invalid>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 <user-4c45a83f15cb@xymon.invalid
quoted from Ming Qian
wrote:
You need to trail it with a slash

Your alias statement is /xymon/ - NOT /xymon


Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 4:42 PM, Ming Qian <user-88faa238dba4@xymon.invalid
quoted from Ming Qian
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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 4:15 PM, Ming Qian <
user-88faa238dba4@xymon.invalid> 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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:57 PM, Ming Qian <
user-88faa238dba4@xymon.invalid> 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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian <
user-2a1222167d38@xymon.invalid> 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

list Ming Qian · Fri, 29 Jan 2010 17:14:19 -0500 ·
Good Idea.
I will try it now.

Bruce


On Fri, Jan 29, 2010 at 5:09 PM, Josh Luthman
quoted from Josh Luthman
<user-4c45a83f15cb@xymon.invalid>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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 5:03 PM, Ming Qian <user-88faa238dba4@xymon.invalid>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 <
user-4c45a83f15cb@xymon.invalid> wrote:
You need to trail it with a slash

Your alias statement is /xymon/ - NOT /xymon


Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 4:42 PM, Ming Qian <
user-88faa238dba4@xymon.invalid> 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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 4:15 PM, Ming Qian <
user-88faa238dba4@xymon.invalid> 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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:57 PM, Ming Qian <
user-88faa238dba4@xymon.invalid> 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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian <
user-2a1222167d38@xymon.invalid> 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

list Ming Qian · Fri, 29 Jan 2010 17:16:15 -0500 ·
[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]#
quoted from Ming Qian


On Fri, Jan 29, 2010 at 5:14 PM, Ming Qian <user-88faa238dba4@xymon.invalid>wrote:
Good Idea.
I will try it now.

Bruce


On Fri, Jan 29, 2010 at 5:09 PM, Josh Luthman <user-4c45a83f15cb@xymon.invalid
quoted from Ming Qian
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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 5:03 PM, Ming Qian <user-88faa238dba4@xymon.invalid
quoted from Ming Qian
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 <
user-4c45a83f15cb@xymon.invalid> wrote:
You need to trail it with a slash

Your alias statement is /xymon/ - NOT /xymon


Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 4:42 PM, Ming Qian <
user-88faa238dba4@xymon.invalid> 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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 4:15 PM, Ming Qian <
user-88faa238dba4@xymon.invalid> 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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:57 PM, Ming Qian <
user-88faa238dba4@xymon.invalid> 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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian <
user-2a1222167d38@xymon.invalid> 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

list Ming Qian · Fri, 29 Jan 2010 17:21:45 -0500 ·
[root at pons /etc/httpd/conf.d]# mv hobbit-apache.conf hobbit-apache.conf.move
[root at pons /etc/httpd/conf.d]# ls
hobbit-apache.conf.move  perl.conf  php.conf  python.conf  README  ssl.conf
webalizer.conf  welcome.conf
[root at pons /etc/httpd/conf.d]# /etc/init.d/httpd status
httpd (pid 32209 32208 32207 32206 32205 32204 32203 32202 32199) is
running...
[root at pons /etc/httpd/conf.d]# /etc/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
[root at pons /etc/httpd/conf.d]#

httpd.conf include the content of hobbit-apache.conf twice.
So the warnings appear.
now, the warnings disappear.

But,
it still doesn't work.
quoted from Ming Qian

Bruce


On Fri, Jan 29, 2010 at 5:16 PM, Ming Qian <user-88faa238dba4@xymon.invalid>wrote:
[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 <user-88faa238dba4@xymon.invalid>wrote:
Good Idea.
I will try it now.

Bruce


On Fri, Jan 29, 2010 at 5:09 PM, Josh Luthman <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 5:03 PM, Ming Qian <
user-88faa238dba4@xymon.invalid> 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 <
user-4c45a83f15cb@xymon.invalid> wrote:
You need to trail it with a slash

Your alias statement is /xymon/ - NOT /xymon


Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 4:42 PM, Ming Qian <
user-88faa238dba4@xymon.invalid> 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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 4:15 PM, Ming Qian <
user-88faa238dba4@xymon.invalid> 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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:57 PM, Ming Qian <
user-88faa238dba4@xymon.invalid> 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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian <
user-2a1222167d38@xymon.invalid> 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

list Kii Noda · Sat, 30 Jan 2010 00:32:12 +0200 ·
Ahhaaaa! :)

Try grepping your way through your configs in order to find where that
previous Alias is declared and remove it. Something like this:

grep -E -r "Alias.*xymon" /etc/httpd

You'll see all the files that match and the actual matches so you'll know
what to remove.

Or maybe even grep for "/var/www/xymon" in there, I have a good feeling that
you'll find where the problem is.

-- 
kN

On Sat, Jan 30, 2010 at 12:16 AM, Ming Qian
quoted from Ming Qian
<user-88faa238dba4@xymon.invalid>wrote:
[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]#
list Kii Noda · Sat, 30 Jan 2010 00:37:15 +0200 ·
Scratch that, it was you who duplicated the config by copying your
httpd.conf to httpd.conf.old. Still, as Josh previously suggested, can you
make sure that your conf.d files are included?
quoted from Kii Noda

On Sat, Jan 30, 2010 at 12:32 AM, Kii NODA <user-d20081af5452@xymon.invalid> wrote:
Ahhaaaa! :)

Try grepping your way through your configs in order to find where that
previous Alias is declared and remove it. Something like this:

grep -E -r "Alias.*xymon" /etc/httpd

You'll see all the files that match and the actual matches so you'll know
what to remove.

Or maybe even grep for "/var/www/xymon" in there, I have a good feeling
that you'll find where the problem is.

--
kN


On Sat, Jan 30, 2010 at 12:16 AM, Ming Qian <user-88faa238dba4@xymon.invalid
quoted from Kii Noda
wrote:
[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]#
-- 

kN
list Josh Luthman · Fri, 29 Jan 2010 17:41:15 -0500 ·
Or mv the conf.d one out and put the config (once) in httpd.conf
signature

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


quoted from Kii Noda
On Fri, Jan 29, 2010 at 5:37 PM, Kii NODA <user-d20081af5452@xymon.invalid> wrote:
Scratch that, it was you who duplicated the config by copying your
httpd.conf to httpd.conf.old. Still, as Josh previously suggested, can you
make sure that your conf.d files are included?


On Sat, Jan 30, 2010 at 12:32 AM, Kii NODA <user-d20081af5452@xymon.invalid> wrote:
Ahhaaaa! :)

Try grepping your way through your configs in order to find where that
previous Alias is declared and remove it. Something like this:

grep -E -r "Alias.*xymon" /etc/httpd

You'll see all the files that match and the actual matches so you'll know
what to remove.

Or maybe even grep for "/var/www/xymon" in there, I have a good feeling
that you'll find where the problem is.

--
kN


On Sat, Jan 30, 2010 at 12:16 AM, Ming Qian <
user-88faa238dba4@xymon.invalid> wrote:
[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]#
--
kN
list Ming Qian · Fri, 29 Jan 2010 18:39:37 -0500 ·
Thank you guys for your warmful help.

I did put the conf content into httpd.conf
and, also rm conf.d/hobbit-apache.conf

But, it still doesn't work. there is no change.

Bruce


On Fri, Jan 29, 2010 at 5:41 PM, Josh Luthman
quoted from Josh Luthman
<user-4c45a83f15cb@xymon.invalid>wrote:
Or mv the conf.d one out and put the config (once) in httpd.conf


Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 5:37 PM, Kii NODA <user-d20081af5452@xymon.invalid> wrote:
Scratch that, it was you who duplicated the config by copying your
httpd.conf to httpd.conf.old. Still, as Josh previously suggested, can you
make sure that your conf.d files are included?


On Sat, Jan 30, 2010 at 12:32 AM, Kii NODA <user-d20081af5452@xymon.invalid> wrote:
Ahhaaaa! :)

Try grepping your way through your configs in order to find where that
previous Alias is declared and remove it. Something like this:

grep -E -r "Alias.*xymon" /etc/httpd

You'll see all the files that match and the actual matches so you'll know
what to remove.

Or maybe even grep for "/var/www/xymon" in there, I have a good feeling
that you'll find where the problem is.

--
kN


On Sat, Jan 30, 2010 at 12:16 AM, Ming Qian <
user-88faa238dba4@xymon.invalid> wrote:
[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]#
--
kN
list Josh Luthman · Fri, 29 Jan 2010 19:22:46 -0500 ·
If this is a new Apache install can you post your httpd.conf?  Use
pastebin.com or pastebin.ca

What error is in error_log?
signature

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


quoted from Ming Qian
On Fri, Jan 29, 2010 at 6:39 PM, Ming Qian <user-88faa238dba4@xymon.invalid>wrote:
Thank you guys for your warmful help.

I did put the conf content into httpd.conf
and, also rm conf.d/hobbit-apache.conf

But, it still doesn't work. there is no change.

Bruce


On Fri, Jan 29, 2010 at 5:41 PM, Josh Luthman <user-4c45a83f15cb@xymon.invalid
quoted from Ming Qian
wrote:
Or mv the conf.d one out and put the config (once) in httpd.conf


Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 5:37 PM, Kii NODA <user-d20081af5452@xymon.invalid> wrote:
Scratch that, it was you who duplicated the config by copying your
httpd.conf to httpd.conf.old. Still, as Josh previously suggested, can you
make sure that your conf.d files are included?


On Sat, Jan 30, 2010 at 12:32 AM, Kii NODA <user-d20081af5452@xymon.invalid> wrote:
Ahhaaaa! :)

Try grepping your way through your configs in order to find where that
previous Alias is declared and remove it. Something like this:

grep -E -r "Alias.*xymon" /etc/httpd

You'll see all the files that match and the actual matches so you'll
know what to remove.

Or maybe even grep for "/var/www/xymon" in there, I have a good feeling
that you'll find where the problem is.

--
kN


On Sat, Jan 30, 2010 at 12:16 AM, Ming Qian <
user-88faa238dba4@xymon.invalid> wrote:
[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]#
--
kN
list Malcolm Hunter · Sat, 30 Jan 2010 02:15:20 +0100 ·
quoted from Josh Luthman
I did put the conf content into httpd.conf
and, also rm conf.d/hobbit-apache.conf

But, it still doesn't work. there is no change.
I use CentOS, which is basically the same as Redhat. I've setup several Xymon servers and only ever copy hobbit-apache.conf into /etc/httpd/conf.d and never touch httpd.conf. The only other action I do that affects Apache web server is to set /home/xymon to 755.
quoted from Ming Qian

Malcolm


-- 
Technical copy-editor & proofreader

KDE Proofreading Team
KDE British English Translation Team

http://l10n.kde.org/team-infos.php?teamcode=en_GB

Facebook: http://www.facebook.com/FriendlyAtheist

Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser
list Josh Luthman · Fri, 29 Jan 2010 20:33:49 -0500 ·
Something I just thought of - SElinux.  Is that on?  I know SElinux
gets irritated when it comes to ~/ directories.
quoted from Josh Luthman

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

“Success is not final, failure is not fatal: it is the courage to
continue that counts.”
--- Winston Churchill


On Fri, Jan 29, 2010 at 8:15 PM, Malcolm Hunter
quoted from Malcolm Hunter
<user-b3e590ffeb6d@xymon.invalid> wrote:
I did put the conf content into httpd.conf
and, also rm conf.d/hobbit-apache.conf

But, it still doesn't work. there is no change.
I use CentOS, which is basically the same as Redhat. I've setup several Xymon servers and only ever copy hobbit-apache.conf into /etc/httpd/conf.d and never touch httpd.conf. The only other action I do that affects Apache web server is to set /home/xymon to 755.

Malcolm


--
Technical copy-editor & proofreader

KDE Proofreading Team
KDE British English Translation Team

http://l10n.kde.org/team-infos.php?teamcode=en_GB

Facebook: http://www.facebook.com/FriendlyAtheist

Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser

list Ming Qian · Fri, 29 Jan 2010 20:55:18 -0500 ·
Thank you very much.
I will try to install xymon on another centos.
Hope it will work well.
:-)

Good Night.

Bruce


On Fri, Jan 29, 2010 at 8:33 PM, Josh Luthman
quoted from Josh Luthman
<user-4c45a83f15cb@xymon.invalid>wrote:
Something I just thought of - SElinux.  Is that on?  I know SElinux
gets irritated when it comes to ~/ directories.

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

“Success is not final, failure is not fatal: it is the courage to
continue that counts.”
--- Winston Churchill


On Fri, Jan 29, 2010 at 8:15 PM, Malcolm Hunter
<user-b3e590ffeb6d@xymon.invalid> wrote:
I did put the conf content into httpd.conf
and, also rm conf.d/hobbit-apache.conf

But, it still doesn't work. there is no change.
I use CentOS, which is basically the same as Redhat. I've setup several
Xymon servers and only ever copy hobbit-apache.conf into /etc/httpd/conf.d
and never touch httpd.conf. The only other action I do that affects Apache
web server is to set /home/xymon to 755.
Malcolm


--
Technical copy-editor & proofreader

KDE Proofreading Team
KDE British English Translation Team

http://l10n.kde.org/team-infos.php?teamcode=en_GB

Facebook: http://www.facebook.com/FriendlyAtheist

Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox
3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser

list Josh Luthman · Fri, 29 Jan 2010 21:09:42 -0500 ·
You might want to find my CentOS guide.  It is quite literally step by step.
quoted from Ming Qian

On 1/29/10, Ming Qian <user-88faa238dba4@xymon.invalid> wrote:
Thank you very much.
I will try to install xymon on another centos.
Hope it will work well.

:-)
quoted from Ming Qian

Good Night.

Bruce


On Fri, Jan 29, 2010 at 8:33 PM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid>wrote:
Something I just thought of - SElinux.  Is that on?  I know SElinux
gets irritated when it comes to ~/ directories.

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

“Success is not final, failure is not fatal: it is the courage to
continue that counts.”
--- Winston Churchill


On Fri, Jan 29, 2010 at 8:15 PM, Malcolm Hunter
<user-b3e590ffeb6d@xymon.invalid> wrote:
I did put the conf content into httpd.conf
and, also rm conf.d/hobbit-apache.conf

But, it still doesn't work. there is no change.
I use CentOS, which is basically the same as Redhat. I've setup several
Xymon servers and only ever copy hobbit-apache.conf into /etc/httpd/conf.d
and never touch httpd.conf. The only other action I do that affects Apache
web server is to set /home/xymon to 755.
Malcolm


--
Technical copy-editor & proofreader

KDE Proofreading Team
KDE British English Translation Team

http://l10n.kde.org/team-infos.php?teamcode=en_GB

Facebook: http://www.facebook.com/FriendlyAtheist

Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox
3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser

-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

“Success is not final, failure is not fatal: it is the courage to
continue that counts.”
--- Winston Churchill
list Ming Qian · Fri, 29 Jan 2010 21:22:34 -0500 ·
thanks. :-)

Bruce


On Fri, Jan 29, 2010 at 9:09 PM, Josh Luthman
quoted from Josh Luthman
<user-4c45a83f15cb@xymon.invalid>wrote:
You might want to find my CentOS guide.  It is quite literally step by
step.

On 1/29/10, Ming Qian <user-88faa238dba4@xymon.invalid> wrote:
Thank you very much.
I will try to install xymon on another centos.
Hope it will work well.

:-)
quoted from Josh Luthman

Good Night.

Bruce


On Fri, Jan 29, 2010 at 8:33 PM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid>wrote:
Something I just thought of - SElinux.  Is that on?  I know SElinux
gets irritated when it comes to ~/ directories.

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

“Success is not final, failure is not fatal: it is the courage to
continue that counts.”
--- Winston Churchill


On Fri, Jan 29, 2010 at 8:15 PM, Malcolm Hunter
<user-b3e590ffeb6d@xymon.invalid> wrote:
I did put the conf content into httpd.conf
and, also rm conf.d/hobbit-apache.conf

But, it still doesn't work. there is no change.
I use CentOS, which is basically the same as Redhat. I've setup
several
Xymon servers and only ever copy hobbit-apache.conf into
/etc/httpd/conf.d
and never touch httpd.conf. The only other action I do that affects
Apache
web server is to set /home/xymon to 755.
Malcolm


--
Technical copy-editor & proofreader

KDE Proofreading Team
KDE British English Translation Team

http://l10n.kde.org/team-infos.php?teamcode=en_GB

Facebook: http://www.facebook.com/FriendlyAtheist

Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox
3.5 -
sicherer, schneller und einfacher!
http://portal.gmx.net/de/go/atbrowser
--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

“Success is not final, failure is not fatal: it is the courage to
continue that counts.”
--- Winston Churchill

list Bruce White · Tue, 2 Feb 2010 12:32:34 -0600 ·
Did you input the correct User/Group for the web user when you
configured/installed Xymon?
quoted from Ming Qian

 
From: Ming Qian [mailto:user-88faa238dba4@xymon.invalid] 
Sent: Friday, January 29, 2010 2:57 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Need help. Hobbit installed, but web access fails.

 
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
<user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian
<user-2a1222167d38@xymon.invalid> 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
list Ming Qian · Tue, 2 Feb 2010 14:27:56 -0500 ·
Hello Bruce,

What group-ID does your webserver use [nobody] ?
apache

xymon:x:50108:50108::/home/xymon:/bin/bash

thanks.

Bruce
quoted from Bruce White


On Tue, Feb 2, 2010 at 1:32 PM, White, Bruce <user-58f975e8bf9d@xymon.invalid> wrote:
 Did you input the correct User/Group for the web user when you
configured/installed Xymon?


*From:* Ming Qian [mailto:user-88faa238dba4@xymon.invalid]
*Sent:* Friday, January 29, 2010 2:57 PM
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* Re: [hobbit] Need help. Hobbit installed, but web access fails.


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 <
user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


 On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian <user-2a1222167d38@xymon.invalid>
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

list Bruce White · Tue, 2 Feb 2010 14:20:27 -0600 ·
I am running hobbit 4.2 on HPUX 11.11 - Web group other.

Xymon 4.3.0-0.beta2 - Web Group apache (default from Red Hat install
CDs).

 
The point is if the user running your web server does not have access,
then you will get permission problems.   You have to specify the correct
group for the web user at configuration time, so the install can get
permissions correct.

 
      ......Bruce
quoted from Ming Qian

 
From: Ming Qian [mailto:user-88faa238dba4@xymon.invalid] 
Sent: Tuesday, February 02, 2010 1:28 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Need help. Hobbit installed, but web access fails.

 
Hello Bruce,

What group-ID does your webserver use [nobody] ?
apache

xymon:x:50108:50108::/home/xymon:/bin/bash

thanks.

Bruce


On Tue, Feb 2, 2010 at 1:32 PM, White, Bruce <user-58f975e8bf9d@xymon.invalid>
wrote:

Did you input the correct User/Group for the web user when you
configured/installed Xymon?

 
From: Ming Qian [mailto:user-88faa238dba4@xymon.invalid] 
Sent: Friday, January 29, 2010 2:57 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Need help. Hobbit installed, but web access fails.

 
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
<user-4c45a83f15cb@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein

 
On Fri, Jan 29, 2010 at 3:42 PM, Ming Qian
<user-2a1222167d38@xymon.invalid> 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