![]() |
|
|
|
|
|||||||
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Apache Virtual Server Help | ratnamg | Linux | 0 | 02-05-2008 04:44 PM |
| Apache Server | ppychu | UNIX for Dummies Questions & Answers | 1 | 09-10-2002 03:46 PM |
| Apache /server-status | solvman | UNIX for Advanced & Expert Users | 3 | 01-21-2002 11:51 PM |
| Apache Web Server | anent | UNIX for Dummies Questions & Answers | 9 | 11-16-2001 01:11 PM |
| Apache Server | cfir | UNIX for Dummies Questions & Answers | 4 | 07-04-2001 05:17 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Quote:
/usr/lib/httpd -t -S |
| Forum Sponsor | ||
|
|
|
|||
|
Perhaps you should decide whether you are trying to restart your web server, or trying to find out why you get a 404. What is the URL you get the 404 for and do you have reason to believe that the requested document ought to exist in the document tree at the given path?
|
|
|||
|
# cd /etc/rc2.d
# grep -i http * S95http: touch $BASEDIR/var/http/.initialized S95svm.sync: echo "Troubleshooting section, at http://docs.sun.com or from" # cd /etc/rc3.d # grep -i http * # cd /etc/init.d # grep -i http * httpd: touch $BASEDIR/var/http/.initialized svm.sync: echo "Troubleshooting section, at http://docs.sun.com or from" and for /usr/lib/httpd -t -S the result i got is : Usage: {<flag>} -a Start administration server. -c <config file name> Server configuration file. -i <instance name> Server instance name. -I Run as child of inetd. -v Check configuration file syntax. -V Display SWS version number. |
|
|||
|
Quote:
But i dont know which file is missing. |
|
|||
|
You should be able to see from error.log which URL the client tried to retrieve. Unless there is mod_rewrite voodoo or CGI involved, it should map straightforwardly to a local file. If you have seen that 404 error then you should be able to figure out which URL it was for.
|
|
|||
|
Quote:
http://xxx.xx.xx.xx/hawk.htm and the error page is: The page cannot be found The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. -------------------------------------------------------------------------------- Please try the following: If you typed the page address in the Address bar, make sure that it is spelled correctly. Open the 172.20.10.57 home page, and then look for links to the information you want. Click the Back button to try another link. Click Search to look for information on the Internet. HTTP 404 - File not found Internet Explorer |
|
|||
|
You first said when you try to surf to yur url you get 404 error.
I told you to telnet localhost 80 GET / but you told me no error in the ascii output. And you also said socket cannot bind to port 80. So I really assumed that another webprocess started up before apache did. Because when you telnet to port 80 and GET / if you dun see an ascii output of the error page that means port 80 is really in use and a webserver is running. But you never pasted the output here so I assumed you don't want to reveal too much info abt your site, fair enuf, thats why I told you to go into /etc/init.d directories to do a quick check to see if there is a startup script for another possible http webserver application. I'm assuming here that your apache installation is 100% perfect and that you previously able to bring up and use your webserver but now couldn't probably due to some network related or config issue which causing your problem. if my assumption is wrong you better say so because from what I gather you dun seem to know very much abt the server you are managing even when I told you to grep you use a non-root account to do it which strikes me as quite odd. anyway I'm thinking 2 more possibilities here. Go to your webserver, open up the web browser on the server and type http://localhost and see what you get? Do you see your webpage or do you see another webpage? The other one is quite remote but sometimes can be affected. Clear your browser cache delete all the cookies or go to another PC and try to surf to the website. |
|
|||
|
So can we conclude that the Apache you currently have running is using a different httpd.conf? Can you figure out where it's being started from and where it's getting its configuration? If you are root and don't know why it's running, is simply killing it an option?
|
|
|||
|
I dont know whether the apache is running currently or not. i am giving the results of httpd&apache processes, can u figure out whether the apache and httpd running or not.
ps -ef|grep httpd root 421 1 0 08:57:11 ? 0:00 //usr/lib/httpd -i admin -a root 414 1 0 08:57:11 ? 0:00 //usr/lib/httpd -i sws_server nrmsa 7642 7619 0 08:04:58 pts/17 0:00 grep httpd ps -ef|grep apache nrmsa 7644 7619 0 08:05:17 pts/17 0:00 grep apache yesterday i tried to start the apache(in root) by the following command. /usr/local/apache/bin/apachectl start But this given the following error [Thu May 15 14:43:20 2008] [crit] (125)Address already in use: make_sock: could not bind to port 80 |
|
|||
|
one more thing i observed in error log and access log is that when i accessed the webpage on 29 april, it has given following details in....
access_log: 10.240.7.118 - - [29/Apr/2008:00:00:20 +0100] "GET / HTTP/1.0" 200 1623 "-" "-" 10.240.7.118 - - [29/Apr/2008:02:21:36 +0100] "GET / HTTP/1.0" 200 1623 "-" "-" 10.240.7.118 - - [29/Apr/2008:03:51:41 +0100] "GET / HTTP/1.0" 200 1623 "-" "-" 10.240.7.118 - - [29/Apr/2008:05:19:03 +0100] "GET / HTTP/1.0" 200 1623 "-" "-" 10.240.7.118 - - [29/Apr/2008:06:12:50 +0100] "GET / HTTP/1.0" 200 1623 "-" "-" 10.240.7.118 - - [29/Apr/2008:07:24:16 +0100] "GET / HTTP/1.0" 200 1623 "-" "-" 172.21.67.130 - - [29/Apr/2008:08:46:44 +0100] "GET / HTTP/1.1" 200 1623 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)" 172.21.67.130 - - [29/Apr/2008:08:46:44 +0100] "GET /Dispatcher.js HTTP/1.1" 200 16788 "http://172.20.10.57/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)" 172.21.67.130 - - [29/Apr/2008:08:46:46 +0100] "GET /mshaw/index.htm HTTP/1.1" 404 290 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)" 10.240.7.118 - - [29/Apr/2008:09:35:18 +0100] "GET / HTTP/1.0" 200 1623 "-" "-" 10.240.7.118 - - [29/Apr/2008:11:58:01 +0100] "GET / HTTP/1.0" 200 1623 "-" "-" 10.240.7.118 - - [29/Apr/2008:13:35:01 +0100] "GET / HTTP/1.0" 200 1623 "-" "-" 172.21.65.9 - - [29/Apr/2008:14:43:19 +0100] "GET /cgi-bin/nrmsalog-cgi HTTP/1.1" 200 2726 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)" 10.240.7.118 - - [29/Apr/2008:14:54:30 +0100] "GET / HTTP/1.0" 200 1623 "-" "-" 172.21.65.9 - - [29/Apr/2008:14:55:57 +0100] "GET /hawk.htm HTTP/1.1" 304 - "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)" 172.21.65.9 - - [29/Apr/2008:14:55:57 +0100] "GET /npeweb/MAINBKGD.GIF HTTP/1.1" 304 - "http://172.20.10.57/hawk.htm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)" 172.21.65.9 - - [29/Apr/2008:14:55:58 +0100] "GET /npeweb/neon.gif HTTP/1.1" 304 - "http://172.20.10.57/hawk.htm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)" 172.21.65.9 - - [29/Apr/2008:14:55:58 +0100] "GET /npeweb/BTLOGO.GIF HTTP/1.1" 304 - "http://172.20.10.57/hawk.htm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)" 172.21.65.9 - - [29/Apr/2008:14:56:03 +0100] "POST /cgi-bin/nrmsalog-cgi HTTP/1.1" 200 2771 "http://172.20.10.57/hawk.htm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)" 10.240.7.118 - - [29/Apr/2008:17:12:38 +0100] "GET / HTTP/1.0" 200 1623 "-" "-" 10.240.7.118 - - [29/Apr/2008:17:53:49 +0100] "GET / HTTP/1.0" 200 1623 "-" "-" 10.240.7.118 - - [29/Apr/2008:20:38:05 +0100] "GET / HTTP/1.0" 200 1623 "-" "-" 10.240.7.118 - - [29/Apr/2008:21:53:33 +0100] "GET / HTTP/1.0" 200 1623 "-" "-" 10.240.7.118 - - [29/Apr/2008:23:18:15 +0100] "GET / HTTP/1.0" 200 1623 "-" "-" from error_log on same day: [Tue Apr 29 08:46:46 2008] [error] [client 172.21.67.130] File does not exist: /usr/local/apache/htdocs/mshaw/index.htm But index.htm is placed in /usr/local/apache/htdocs/index.htm But we had accessed the web page fine there. |
|
|||
|
Somebody tried to fetch /mshaw/ (or /mshaw/index.html), that's all it means.
Your ps output shows that you have two httpds running, the question is which one is bound to port 80, and whether you can safely kill that one and start the one you want on that port. It's refusing to start because the port is already in use because you already have one httpd (aka apache) running. You can't have two server processes on the same single port. |
|
|||
|
Quote:
My problem is resolved.... The problem is that some SWS process is running on port 80. We stopped that process and started the apache server. Thanks for your support... |
|||
| Google UNIX.COM |
| Thread Tools | |
| Display Modes | |
|
|
|
The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
|
| "inappropriate ioctl for device" 421 service not available, remote server has closed connection ^m autosys awk trim bash eval bash exec bash for loop boot: cannot open kernel/sparcv9/unix close_wait |