<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">Hi Craig,</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3"> </font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">How can I give read permission to apache user?</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">My “www” and “web” folder is present in the path “/home/xymon/server/www”</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">If find apache from root then following output I got:</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">/usr/sbin/apachectl</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3"> </font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">[root@RHEL5 sbin]# pwd</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">/usr/sbin</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">[root@RHEL5 sbin]# ls -lrt apachectl</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">-rwxr-xr-x 1 root root 3916 Jul 15<span style="mso-spacerun: yes">  </span>2009 apachectl</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">[root@RHEL5 sbin]#</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3"> </font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">Also Kindly let me know "how accessing a simple /index.html in my root web directory"</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3"> </font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">With Regards,</font></p><span style="FONT-SIZE: 11pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Calibri','sans-serif'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">Jayanta.</span><br>
<br>
<div class="gmail_quote">On Wed, Jan 19, 2011 at 9:27 PM, Craig Whilding <span dir="ltr"><<a href="mailto:craig_whilding@mentor.com">craig_whilding@mentor.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div bgcolor="#ffffff" text="#000000">Yes that is what was meant, thanks for elaborating Paul.<br><br>Jayanta, have you tried just accessing a simple /index.html in your root web directory to make sure your apache user can access it? I normally use Redhat or Fedora and keep the default directory at /var/www/html for the web root and the file Xymon provided placed as Paul mentions sorts out allowing apache access to the subdirectories which in my case are installed under /usr/local which apache has read on.<br>
<br>Regards,<br><font color="#888888">Craig</font> 
<div>
<div></div>
<div class="h5"><br><br>On 19/01/11 14:45, Root, Paul wrote: 
<blockquote type="cite">
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">No, that's not what was stated.</font></span></div>
<div dir="ltr" align="left"><span></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">You need the original httpd.conf file. It lives in /etc/httpd/conf</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Then you put the hobbit-apache.conf file, named as is, into /etc/httpd/conf.d. This is a directory for additional config files. </font></span></div>

<div dir="ltr" align="left"><span></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">I still think your problem is file and directory ownership. Your web directory, which I'm going to guess is </font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">/home/hobbit/server/www is owned by the xymon or hobbit user. Next your web server is being run by apache, and apache has no permissions to get to /home/hobbit/server/www.</font></span></div>

<div dir="ltr" align="left"><span></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">You need to do one of a couple of things. The best of which is to get apache and xymon users in the same group and have the web directory and it's files in that group.  This is basic Unix admin stuff, not an issue with Xymon.</font></span></div>

<div> </div>
<p><font size="2">Paul Root<br>Lead Internet Systems Eng<br>Qwest Network Services<br><br></font></p>
<div> </div><br>
<blockquote style="MARGIN-RIGHT: 0px">
<div lang="en-us" dir="ltr" align="left">
<hr>
<font face="Tahoma" size="2"><b>From:</b> Jayanta Kundu [<a href="mailto:jayantak007@gmail.com" target="_blank">mailto:jayantak007@gmail.com</a>] <br><b>Sent:</b> Wednesday, January 19, 2011 8:29 AM<br><b>To:</b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
<b>Subject:</b> Re: [xymon] Forbidden : You don't have permission to access /xymon/index.html on this server.<br></font><br></div>
<div>Hi Craig,</div>
<div> </div>
<div>If i put the whole file(hobbit-apache.conf) in the /etc/httpd/conf/ path and rename it into httpd.conf and restart the service httpd then its getting failed.</div>
<div> </div>
<div>With Regards,</div>
<div>Jayanta.<br><br></div>
<div class="gmail_quote">On Wed, Jan 19, 2011 at 7:18 PM, Whilding, Craig <span dir="ltr"><<a href="mailto:Craig_Whilding@mentor.com" target="_blank">Craig_Whilding@mentor.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div><br>
<p><font size="2">Just put the whole file in the httpd/conf.d directory and then restart apache, its easier to update it in the future if you keep the file separate.<br><br>Regards,<br><font color="#888888">Craig</font> </font></p>

<div><font size="2"><br><br>-----Original Message-----<br>From: Jayanta Kundu [<a href="mailto:jayantak007@gmail.com" target="_blank">mailto:jayantak007@gmail.com</a>]<br>Sent: Wed 19/01/2011 13:02<br>To: <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
Subject: Re: [xymon] Forbidden : You don't have permission to access /xymon/index.html on this server.<br><br>Hi Henrik,<br><br><br>I already appended following:<br><br>#cat /home/xymon/server/etc/hobbit-apache.conf >> /etc/httpd/conf/httpd.conf<br>
<br>After that I restart apache.<br>Still i am facing following error.<br><br>With Regards,<br>Jayanta.<br><br>On Wed, Jan 19, 2011 at 6:20 PM, Henrik Střrner <<a href="mailto:henrik@hswn.dk" target="_blank">henrik@hswn.dk</a>> wrote:<br>
<br><br></font></div>
<div><font size="2">        In <<a href="mailto:AANLkTinz%2BoMdOF9afYTURQE7cje6x27XxsDNpRAVpvnC@mail.gmail.com" target="_blank">AANLkTinz+oMdOF9afYTURQE7cje6x27XxsDNpRAVpvnC@mail.gmail.com</a> <<a href="mailto:AANLkTinz%2BoMdOF9afYTURQE7cje6x27XxsDNpRAVpvnC@mail.gmail.com" target="_blank">mailto:AANLkTinz%2BoMdOF9afYTURQE7cje6x27XxsDNpRAVpvnC@mail.gmail.com</a>> > Jayanta Kundu <<a href="mailto:jayantak007@gmail.com" target="_blank">jayantak007@gmail.com</a>> writes:<br>
       <br>        >I install xymon collector server and agent in the same machine. Apache<br>        >server is running in the same server.<br>       <br>       <br>        >I am getting following error:<br>       <br>
        >*Forbidden*<br>       <br>        >You don't have permission to access /xymon/index.html on this server.<br>       <br>        > ------------------------------<br>       <br>       <br>        Make sure you have configured Apache with the configuration<br>
        provided in the $XYMONHOME/etc/xymon-apache.conf, and done a<br>        reload of the Apache configuration.<br>       <br>       <br>        Regards,<br>        Henrik<br>       <br>       <br>        To unsubscribe from the xymon list, send an e-mail to<br>
        <a href="mailto:xymon-unsubscribe@xymon.com" target="_blank">xymon-unsubscribe@xymon.com</a><br>       <br>       <br>       <br><br><br><br></font></div></div></blockquote></div><br></blockquote><br>
<hr>
<font face="Arial" color="gray" size="1">This communication is the property of Qwest and may contain confidential or<br>privileged information. Unauthorized use of this communication is strictly<br>prohibited and may be unlawful. If you have received this communication<br>
in error, please immediately notify the sender by reply e-mail and destroy<br>all copies of the communication and any attachments.<br></font></blockquote><br></div></div></div></blockquote></div><br>