Page 2 of 3
Re: Error 404 HTTP not found
Posted: Mon Apr 01, 2013 2:50 pm
by abrist
Try (make sure the vhost config is ok and the serve has the necessary apache modules):
You do not have the "Listen" directive declared in your httpd.conf. Additionally, you should check the path to "ServerRoot" for your config files (vhosts etc.).
Add "
Listen 77" near the top of your httpd.conf and restart apache (without the quotes).
How did you install apache?
Re: Error 404 HTTP not found
Posted: Mon Apr 01, 2013 3:05 pm
by devilsguest
apache2 -S and apache2 -V gives me the same result, -bash : apache2 command not found. Here is ls -la /usr/local/apache2
Code: Select all
total 120
drwxr-xr-x 14 nagios nagios 4096 Apr 1 09:40 .
drwxr-xr-x 19 root root 4096 Apr 1 09:45 ..
drwxr-xr-x 2 root root 4096 Apr 1 10:52 bin
drwxr-xr-x 2 root root 4096 Apr 1 10:53 build
drwxr-xr-x 2 root root 4096 Apr 1 09:40 cgi-bin
drwxr-xr-x 4 root root 4096 Apr 1 14:42 conf
drwxr-xr-x 3 root root 4096 Apr 1 09:40 error
drwxr-xr-x 2 root root 4096 Apr 1 14:42 htdocs
drwxr-xr-x 3 root root 4096 Apr 1 09:40 icons
drwxr-xr-x 2 root root 4096 Apr 1 10:53 include
drwxr-xr-x 2 root root 4096 Apr 1 13:55 logs
drwxr-xr-x 4 root root 4096 Apr 1 09:40 man
drwxr-xr-x 14 root root 12288 Feb 20 16:14 manual
drwxr-xr-x 2 root root 4096 Apr 1 10:59 modules
Re: Error 404 HTTP not found
Posted: Mon Apr 01, 2013 3:13 pm
by abrist
We need to stop for a moment here. If neither the apache2 nor httpd bin exists, something is not right.
How did you install apache?
What distribution are you running?
Just for your information, you should find your apache configs in the directory: /usr/local/apache2/conf
Re: Error 404 HTTP not found
Posted: Tue Apr 02, 2013 12:44 pm
by devilsguest
I can look into /usr/local/apache2/conf file. I don't have any issues regarding that....
Here is by distro version for linux...
I have installed my apache using the tar file which was downloaded from apache.org website..... I don't think with out those files my apache would start or stop mainly httpd.conf....
Today's I see this message after I hit my username and password....
Re: Error 404 HTTP not found
Posted: Tue Apr 02, 2013 12:49 pm
by abrist
You may have wanted to install apache from the rehat repos as I bet that you are missing a number of important apache modules. If you want to stick with your current install, be ready for a long road of support to get it working. It looks like you do not have have certain scripts and the location of the apache bin is a mystery. Lets find the bin:
Did you add "Listen 77" to your httpd.conf?
Re: Error 404 HTTP not found
Posted: Tue Apr 02, 2013 1:00 pm
by devilsguest
which apache2
Code: Select all
/usr/bin/which: no apache2 in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
which httpd
Code: Select all
/usr/bin/which: no httpd in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
Correct me If I am wrong. So, You would want me to reinstall apache? As you said, I see only two files in my modules directory i.e., phplib5.so and httpd.exe
Also, Can you help me providing the link to download correct set of apache for nagios. It might sound funny to ask you,but please do help.
Re: Error 404 HTTP not found
Posted: Tue Apr 02, 2013 1:17 pm
by abrist
devilsguest wrote:phplib5.so and httpd.exe
Did you by chance download the *windows* tarball? You normally do not see .exe file extensions for linux binaries.
Re: Error 404 HTTP not found
Posted: Tue Apr 02, 2013 3:15 pm
by devilsguest
nope....I don't think this was windows because. I have to unpack the tar.gz file before I install apache on my machine.
Re: Error 404 HTTP not found
Posted: Tue Apr 02, 2013 3:50 pm
by slansing
Due to the nature of this problem, it is becoming increasingly hard to support your installation as the problems we are seeing are not with Nagios but rather Apache. While we do our best to support all issues, we generally only support installations based on a fresh system and not installations which try to work in per-existing configurations of packages Nagios depends on to run properly. In this case, we recommend that you either bring up a fresh system on one of the supported operating systems which will already have a cleanly configured version of Apache and from there we can support the Nagios side of the server. We also recommend that if you do plan to try and work in your choice of Apache packages that you contact the Apache support group in order to verify that you have correctly installed and integrated Apache into the server.
The Apache support is located at:
http://httpd.apache.org/docs/2.0/faq/support.html
There are also a variety of Apache based support groups other than their own available elsewhere.
Re: Error 404 HTTP not found
Posted: Wed Apr 03, 2013 6:03 am
by Rhobar
have you tried to use these?