LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-23-2006, 09:01 AM   #1
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 12.04 64-bit
Posts: 230

Rep: Reputation: 30
service httpd status shows some error doc too


I got this vps which has FC2 and wanted to know the service status.
Code:
root@server [/]# service httpd status

                                   Not Found

   The requested URL /server-status was not found on this server.

   Additionally, a 404 Not Found error was encountered while trying to use an
   ErrorDocument to handle the request.
     _________________________________________________________________


    Apache/1.3.34 Server at server.domain.com Port 80
root@server [/]#
Whats this Not Found abt ?
 
Old 05-23-2006, 09:23 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 53
By default server-status is not enabled, you have to uncomment the lines in your http configuration file (/etc/apache/httpd.conf on my machine).
404 error so your apache is alive
 
Old 05-23-2006, 11:10 AM   #3
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 12.04 64-bit
Posts: 230

Original Poster
Rep: Reputation: 30
I dont to have etc/apache - but I have usr/local/apache - is this correct ? Are installations done here too ?
 
Old 05-23-2006, 11:33 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 53
Don't mix the directory where the configuration files are and the directory where the apache binary are.
On debian, its at its place (etc/apache or etc/apache2) but on others flavours.. don't know (/etc/httpd?):

To find it:
Code:
find /etc -name httpd.conf
find /etc -name apache.conf
Then as root, edit it to remove comments for server-status and restart the service:
Code:
apachectl restart
 
Old 05-23-2006, 11:46 AM   #5
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 12.04 64-bit
Posts: 230

Original Poster
Rep: Reputation: 30
Code:
root@server [/]# find /etc -name httpd.conf
/etc/httpd.old/conf/httpd.conf
root@server [/]#
I seem to have httpd.old ?
 
Old 05-23-2006, 11:50 AM   #6
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 53
No its not this one, maybe try the search from the root directory. (find / -name..)

By the way, isn't Fedora Core 2 a bit too recent?
You won't get so much support with this thing.
 
Old 05-23-2006, 11:58 AM   #7
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 12.04 64-bit
Posts: 230

Original Poster
Rep: Reputation: 30
Code:
root@server [/]# pwd
/
root@server [/]# locate httpd.conf
/installd/buildapache/httpd.conf.tmpeditlib
/installd/buildapache/apache_1.3.34/conf/httpd.conf-dist
/installd/buildapache/apache_1.3.34/conf/httpd.conf-dist-nw
/installd/buildapache/apache_1.3.34/conf/httpd.conf-dist-win
/usr/local/apache/conf/httpd.conf.default
/usr/local/apache/conf/httpd.conf
/usr/local/apache/conf/httpd.conf.bak
/usr/local/apache/conf/httpd.conf.tmpeditlib
/usr/local/apache/conf/httpd.conf,v
/usr/local/apache/conf/httpd.conf.datastore
/etc/httpd.old/conf/httpd.conf
/etc/httpd.old/conf/httpd.conf.gd.bak
root@server [/]#
How come I got so many of them ? I've been working on Apache for 2 yrs now on Windows and I never find the need for more than 1 httpd.conf file.
 
Old 05-23-2006, 12:04 PM   #8
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 53
Quote:
Originally Posted by anjanesh
How come I got so many of them ? I've been working on Apache for 2 yrs now on Windows and I never find the need for more than 1 httpd.conf file.
Because somebody created them. You need 1 httpd.conf (unless you make includes), thats it.
Windows apache is very similar to linux apache.

I would say:

/usr/local/apache/conf/httpd.conf
 
Old 05-23-2006, 12:15 PM   #9
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 12.04 64-bit
Posts: 230

Original Poster
Rep: Reputation: 30
Quote:
Because somebody created them
- This is a problem - now that I got control over it, how do I get rid of Apache 1.3.34 and have all these files removed ?

I want to do this because I got to install Apache 2.0.58 instead - this server is new and no sites exists - but somebody tried isntalling something and ended up the older versions.

Last edited by anjanesh; 05-23-2006 at 12:17 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
httpd -v shows nothing pollo Linux - Newbie 3 04-06-2005 03:35 PM
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 11:31 PM
Error Starting httpd Service - Please Help Speednow Linux - Networking 3 05-24-2003 03:10 PM
Error Starting httpd Service - Please Help Speednow Linux - Newbie 0 05-24-2003 02:16 PM
Program that shows status of CPU, Ram etc... face_master Linux - Software 2 04-01-2003 01:38 AM


All times are GMT -5. The time now is 03:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration