Error 404 HTTP not found

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Re: Error 404 HTTP not found

Postby abrist » Mon Apr 01, 2013 2:50 pm

Try (make sure the vhost config is ok and the serve has the necessary apache modules):
Code: Select all
apache2 -S
apache2 -V

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.).
Code: Select all
ls -la /usr/local/apache2

Add "Listen 77" near the top of your httpd.conf and restart apache (without the quotes).

How did you install apache?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
abrist
Red Shirt
 
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Error 404 HTTP not found

Postby devilsguest » Mon Apr 01, 2013 3:05 pm

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
devilsguest
 
Posts: 76
Joined: Wed Mar 20, 2013 7:15 pm
Location: New York

Re: Error 404 HTTP not found

Postby abrist » Mon Apr 01, 2013 3:13 pm

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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
abrist
Red Shirt
 
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Error 404 HTTP not found

Postby devilsguest » Tue Apr 02, 2013 12:44 pm

I can look into /usr/local/apache2/conf file. I don't have any issues regarding that....
Here is by distro version for linux...
Linux version 2.6.9-42.ELsmp (bhcompile@hs20-bc1-1.build.redhat.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-2)) #1 SMP Wed Jul 12 23:27:17 EDT 2006

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....
Attachments
Untitled.png
Last edited by devilsguest on Tue Apr 02, 2013 12:51 pm, edited 1 time in total.
devilsguest
 
Posts: 76
Joined: Wed Mar 20, 2013 7:15 pm
Location: New York

Re: Error 404 HTTP not found

Postby abrist » Tue Apr 02, 2013 12:49 pm

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:
Code: Select all
which apache2
which httpd

Did you add "Listen 77" to your httpd.conf?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
abrist
Red Shirt
 
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Error 404 HTTP not found

Postby devilsguest » Tue Apr 02, 2013 1:00 pm

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.
devilsguest
 
Posts: 76
Joined: Wed Mar 20, 2013 7:15 pm
Location: New York

Re: Error 404 HTTP not found

Postby abrist » Tue Apr 02, 2013 1:17 pm

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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
abrist
Red Shirt
 
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Error 404 HTTP not found

Postby devilsguest » Tue Apr 02, 2013 3:15 pm

nope....I don't think this was windows because. I have to unpack the tar.gz file before I install apache on my machine.
devilsguest
 
Posts: 76
Joined: Wed Mar 20, 2013 7:15 pm
Location: New York

Re: Error 404 HTTP not found

Postby slansing » Tue Apr 02, 2013 3:50 pm

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.
slansing
 
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Error 404 HTTP not found

Postby Rhobar » Wed Apr 03, 2013 6:03 am

have you tried to use these?

Code: Select all
getenforce
setenforce 0
Rhobar
 
Posts: 41
Joined: Sat Mar 16, 2013 9:23 am
Location: Rome, Italy

PreviousNext

Return to Community Support

Who is online

Users browsing this forum: No registered users and 20 guests