Internal server error following login
Re: Internal server error following login
Files are attached. I have no included the SSL output as SSL is not used.
You do not have the required permissions to view the files attached to this post.
Re: Internal server error following login
Is SELinux running? getenforce
Former Nagios Employee.
me.
me.
Re: Internal server error following login
Returns "Disabled".
Re: Internal server error following login
Interesting.
How about:
How about:
Code: Select all
service httpd status
cat /etc/httpd/conf.d/nagiosxi
ls -l /usr/local/nagiosxi/html/
** I really don't think it's IPTables, but doesn't hurt... **
service iptables stop
** Then try to access your XI page **
Former Nagios Employee.
me.
me.
Re: Internal server error following login
[root@spnagios ~]# service httpd status
httpd (pid 1009) is running...
[root@spnagios ~]# ls -l /usr/local/nagiosxi/html/
total 432
drwxr-x--- 2 nagios nagios 4096 Apr 5 2013 about
drwxr-x--- 2 nagios nagios 4096 Apr 5 2013 account
drwxr-x--- 2 nagios nagios 4096 Apr 5 2013 addons
drwxr-x--- 2 nagios nagios 4096 Apr 5 2013 admin
-rwxr-x--- 1 nagios nagios 26932 Nov 25 14:00 ajaxhelper.php
-rwxr-x--- 1 nagios nagios 1652 Nov 25 14:00 ajaxproxy.php
drwxr-x--- 4 nagios nagios 4096 Nov 3 10:57 api
drwxr-x--- 3 nagios nagios 4096 Apr 5 2013 backend
drwxr-x--- 3 nagios nagios 4096 Nov 3 10:57 config
-rwxr-x--- 1 nagios nagios 7942 Nov 25 14:00 config.inc.dist
-rwxr-x--- 1 nagios nagios 7942 Nov 25 14:00 config.inc.php
-rwxr-x--- 1 nagios nagios 7942 Nov 25 14:00 config.inc.saved
drwxr-x--- 2 nagios nagios 4096 Nov 3 10:57 dashboards
drwxr-x--- 4 nagios nagios 4096 Apr 5 2013 db
drwxr-x--- 3 nagios nagios 4096 Apr 5 2013 downloads
drwxr-x--- 2 nagios nagios 4096 Nov 3 10:57 help
drwxr-x--- 4 nagios nagios 12288 Nov 25 08:31 images
drwxr-x--- 12 nagios nagios 4096 Nov 3 10:57 includes
-rwxr-x--- 1 nagios nagios 884 Nov 25 14:00 index.php
-rwxr-x--- 1 nagios nagios 10086 Nov 25 14:00 install.php
-rwxr-x--- 1 nagios nagios 236960 Nov 25 14:00 login.php
-rwxr----- 1 nagios nagios 2303 Nov 25 14:00 loginsplash.inc.dist
-rwxr----- 1 nagios nagios 2212 Nov 25 14:00 loginsplash.inc.php
-rw-r----- 1 nagios nagios 2212 Nov 25 14:00 loginsplash.inc.saved
drwxr-x--- 2 nagios nagios 4096 Apr 5 2013 perfgraphs
drwxr-x--- 2 nagios nagios 4096 May 13 2014 reports
-rwxr----- 1 nagios nagios 20509 Nov 25 14:00 rr.php
-rwxr-x--- 1 nagios nagios 12206 Nov 25 14:00 suggest.php
drwxr-x--- 2 nagios nagios 4096 Apr 5 2013 tools
-rwxr-x--- 1 nagios nagios 2010 Nov 25 14:00 upgrade.php
drwxr-x--- 2 nagios nagios 4096 Nov 3 10:57 views
[root@spnagios ~]# service iptables stop
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]
Still unable to access page. Same results.
Re: Internal server error following login
Can you please post the contents of /etc/httpd/conf/httpd.conf?
Also, from my previous post: cat /etc/httpd/conf.d/nagiosxi
Also, from my previous post: cat /etc/httpd/conf.d/nagiosxi
Former Nagios Employee.
me.
me.
Re: Internal server error following login
File attached.Can you please post the contents of /etc/httpd/conf/httpd.conf?
[root@spnagios ~]# cat /etc/httpd/conf.d/nagiosxiAlso, from my previous post: cat /etc/httpd/conf.d/nagiosxi
cat: /etc/httpd/conf.d/nagiosxi: No such file or directory
Contents of nagiosxi.conf:
<Directory "/usr/local/nagiosxi/html">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
# AuthName "Nagios XI"
# AuthType Basic
# AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
# Require valid-user
</Directory>
Alias /nagiosxi "/usr/local/nagiosxi/html"
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule nagiosxi/api/v1/(.*)$ /usr/local/nagiosxi/html/api/v1/index.php?request=$1 [QSA,NC,L]
</IfModule>
You do not have the required permissions to view the files attached to this post.
Re: Internal server error following login
Odd - looking through your config nothing stands out either. What happens if you try to access it within core at http://yourserverhere/nagios/ rather than http://yourserverhere/nagiosxi/?
When prompt, use the nagiosadmin username and password.
When prompt, use the nagiosadmin username and password.
Former Nagios Employee
Re: Internal server error following login
I can log in to core with no problem.
Re: Internal server error following login
Thanks for the logs but we may have missed the error. Can you run the following tail command as root in a console ion the Xi server and then try to login to XI and post the output of the tail here?
Thanks
Code: Select all
tail -f /var/log/httpd/error_logBe sure to check out our Knowledgebase for helpful articles and solutions!