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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-23-2006, 08:01 AM
|
#1
|
|
Member
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 12.04 64-bit
Posts: 230
Rep:
|
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 ?
|
|
|
|
05-23-2006, 08:23 AM
|
#2
|
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
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
|
|
|
|
05-23-2006, 10:10 AM
|
#3
|
|
Member
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 12.04 64-bit
Posts: 230
Original Poster
Rep:
|
I dont to have etc/apache - but I have usr/local/apache - is this correct ? Are installations done here too ?
|
|
|
|
05-23-2006, 10:33 AM
|
#4
|
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
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:
|
|
|
|
05-23-2006, 10:46 AM
|
#5
|
|
Member
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 12.04 64-bit
Posts: 230
Original Poster
Rep:
|
Code:
root@server [/]# find /etc -name httpd.conf
/etc/httpd.old/conf/httpd.conf
root@server [/]#
I seem to have httpd.old ?
|
|
|
|
05-23-2006, 10:50 AM
|
#6
|
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
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.
|
|
|
|
05-23-2006, 10:58 AM
|
#7
|
|
Member
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 12.04 64-bit
Posts: 230
Original Poster
Rep:
|
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.
|
|
|
|
05-23-2006, 11:04 AM
|
#8
|
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
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
|
|
|
|
05-23-2006, 11:15 AM
|
#9
|
|
Member
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 12.04 64-bit
Posts: 230
Original Poster
Rep:
|
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 11:17 AM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:25 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|