You posted a MySQL error. The error you should be seeing will be in the apache logs. I'm kind of confused.<br><br><br><br><div class="gmail_quote">On Mon, Mar 8, 2010 at 3:47 PM, Gezina Dekker <span dir="ltr"><<a href="mailto:gezinker@gmail.com">gezinker@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>James,</div>
<div> </div><div class="im">
<div>Thank you for the reply.</div>
<div> </div>
<div>I am over the first hurdle, changing the pernissions to +rx fixed it, and nagios now gives me a signon panel, however, as I explained, it does not accept the nagiosadmin username.</div>
<div> </div>
</div><div class="im"><div>This is the messages I am getting:<br> <br>[Mon Mar 08 19:22:22 2010] [error] [client 10.164.100.232] MySQL ERROR: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)<br>
[Mon Mar 08 19:22:22 2010] [error] [client 10.164.100.232] MySQL user nagiosadmin not found: /nagios<br>
<br></div>
</div><div class="gmail_quote"><div class="im">2010/3/8 James Pratt <span dir="ltr"><<a href="mailto:jpratt@norwich.edu" target="_blank">jpratt@norwich.edu</a>></span><br>
</div><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote"><br><div><div></div><div class="h5">>From what I can see, the perms shouldn't be a big problem , mine are all<br>
owned by nagios:nagios -<br>
<br>if you remove the .htaccess auth parts, can you get in and view the<br>CGI's normally?<br><br>what do your Apache error and access logs say?<br><br>Hth<br><br><br>Cheers,<br>jamie<br>
<div>
<div></div>
<div>>> -----Original Message-----<br>>> From: Robert Wolfe [mailto:<a href="mailto:rwolfe@i-evolve.com" target="_blank">rwolfe@i-evolve.com</a>]<br>>> Sent: Monday, March 08, 2010 1:20 PM<br>>> To: 'Gezina Dekker'; <a href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br>
>> Subject: Re: [Nagios-users] You do not have permission to access<br>/nagios on this server<br>>><br>>> Try setting ownership of these files to user nagios, group nagios.<br>>><br>>><br>>><br>
>><br>>><br>>><br>>><br>>> From: Gezina Dekker [mailto:<a href="mailto:gezinker@gmail.com" target="_blank">gezinker@gmail.com</a>]<br>>> Sent: Monday, March 08, 2010 1:17 PM<br>>> To: <a href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br>
>> Subject: [Nagios-users] You do not have permission to access /nagios<br>on this server<br>>><br>>><br>>><br>>> Hi all,<br>>><br>>> I have looked at all the questions so far, and nothing that brings<br>
any comfort.<br>>><br>>> I followed the Fedore QuickStart even though I am on RHEL 4<br>(2.6.9-5.EL)<br>>><br>>> I have all the following installed:<br>>> Apache<br>>> PHP<br>>> GCC compiler<br>
>> GD development libraries<br>>><br>>> I have nagios and nagcmd defined<br>>><br>>> I have installed nagios and the plugins<br>>><br>>> I have a passwd in htpasswd, and it is read acces for all.<br>
>><br>>> SELinux is disabled<br>>><br>>> In terms of my nagios.conf, this is it...<br>>><br>>> ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"<br>>><br>>> <Directory "/usr/local/nagios/sbin"><br>
>> # SSLRequireSSL<br>>> Options FollowSymLinks ExecCGI<br>>> AllowOverride AuthConfig<br>>> Order allow,deny<br>>> Allow from all<br>>> AuthName "Nagios Access"<br>
>> AuthType Basic<br>>> AuthUserFile /usr/local/nagios/etc/htpasswd.users<br>>> Require valid-user<br>>> </Directory><br>>><br>>> Alias /nagios "/usr/local/nagios/share"<br>
>><br>>> <Directory "/usr/local/nagios/share"><br>>> # SSLRequireSSL<br>>> Options FollowSymLinks<br>>> DirectoryIndex index.html<br>>> AllowOverride AuthConfig<br>
>> Order allow,deny<br>>> Allow from all<br>>> AuthName "Nagios Access"<br>>> AuthType Basic<br>>> AuthUserFile /usr/local/nagios/etc/htpasswd.users<br>>> Require valid-user<br>
>> </Directory><br>>><br>>><br>>> The contents of my /share is the following:<br>>> drwxrwxr-x 9 nagios nagcmd 4096 mrt 8 11:39 .<br>>> drwx------ 12 nagios nagcmd 4096 mrt 8 11:39 ..<br>
>> drwxrwxr-x 2 nagios nagcmd 4096 mrt 5 12:23 contexthelp<br>>> drwxrwxr-x 3 nagios nagcmd 4096 mrt 5 12:23 docs<br>>> drwxrwxr-x 3 nagios nagcmd 4096 mrt 5 12:23 images<br>>> -rw-rw-r-- 1 nagios nagcmd 726 mrt 5 12:23 index.html<br>
>> drwxr-xr-x 4 root root 4096 mrt 8 11:39 locale<br>>> -rw-rw-r-- 1 nagios nagcmd 3480 mrt 5 12:23 main.html<br>>> drwxrwxr-x 2 nagios nagcmd 4096 mrt 5 12:23 media<br>>> -rw-rw-r-- 1 nagios nagcmd 26 mrt 5 12:23 robots.txt<br>
>> -rw-rw-r-- 1 nagios nagcmd 13532 mrt 5 12:23 side.html<br>>> drwxrwxr-x 2 nagios nagcmd 4096 mrt 5 12:23 ssi<br>>> drwxrwxr-x 2 nagios nagcmd 4096 mrt 5 12:23 stylesheets<br>>><br>>><br>
>> The errors I am getting is the following:<br>>><br>>> Forbidden<br>>> You don't have permission to access /nagios on this server.<br>>> Additionally, a 403 Forbidden error was encountered while trying to<br>
use an<br>>> ErrorDocument to handle the request.<br>>><br>>><br>>><br>>> Apache/2.0.52 (Red Hat) Server at 172.17.16.56 Port 80<br>>><br>>><br>>> I am making the assumption that the 403 is less serious, and that it<br>
is actually the<br>>> permissions that needs fixing...<br>>><br>>> Thanks in advance for your willingness to look at this with me.<br>>><br>>> Regards<br>>><br>>><br>>><br>
>> Gezina<br>
<br><br></div></div>
<div>
<div></div>
<div>------------------------------------------------------------------------------<br>Download Intel® Parallel Studio Eval<br>Try the new software tools for yourself. Speed compiling, find bugs<br>proactively, and fine-tune applications for parallel performance.<br>
See why Intel Parallel Studio got high marks during beta.<br><a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>_______________________________________________<br>Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br></div></div></div></div></blockquote></div><br>
<br>------------------------------------------------------------------------------<br>
Download Intel® Parallel Studio Eval<br>
Try the new software tools for yourself. Speed compiling, find bugs<br>
proactively, and fine-tune applications for parallel performance.<br>
See why Intel Parallel Studio got high marks during beta.<br>
<a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>