The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #16 (permalink)  
Old 05-15-2008
Registered User
 

Join Date: Jan 2008
Posts: 14
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by vamshikrishnab View Post
I had tried these commands in normal and root user, but same result

httpd -t -S
httpd: Command not found

> httpd -t -S
-t: Command not found

> httpd -S
-S: Command not found
ok your httpd executable is not in your $PATH whatever then execute

/usr/lib/httpd -t -S
Reply With Quote
Forum Sponsor
  #17 (permalink)  
Old 05-15-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 2,253
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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?
Reply With Quote
  #18 (permalink)  
Old 05-15-2008
Registered User
 

Join Date: May 2008
Posts: 31
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
# 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.
Reply With Quote
  #19 (permalink)  
Old 05-15-2008
Registered User
 

Join Date: May 2008
Posts: 31
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by era View Post
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?
I am thinking that " because of the non running of apache server only the web page error is coming. But by restarting the main server also the apache server is not started automatically. I don't know which file is missing for that web page. i had found all the files that are in httpd.conf file.

But i dont know which file is missing.
Reply With Quote
  #20 (permalink)  
Old 05-15-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 2,253
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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.
Reply With Quote
  #21 (permalink)  
Old 05-15-2008
Registered User
 

Join Date: May 2008
Posts: 31
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by era View Post
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.
not only the client, we also not able to access the url which consists of:

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
Reply With Quote
  #22 (permalink)  
Old 05-15-2008
Registered User
 

Join Date: Nov 2006
Posts: 235
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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.
Reply With Quote
  #23 (permalink)  
Old 05-15-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 2,253
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Does hawk.htm exist in the right place in the file system?
Reply With Quote
  #24 (permalink)  
Old 05-15-2008
Registered User
 

Join Date: May 2008
Posts: 31
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
hawk.htm is placed in following path:

/usr/local/apache/htdocs/hawk.htm

in this (found in httpd.conf)

ServerRoot "/usr/local/apache"

Port 80

DocumentRoot "/usr/local/apache/htdocs"
Reply With Quote
  #25 (permalink)  
Old 05-15-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 2,253
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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?
Reply With Quote
  #26 (permalink)  
Old 05-16-2008
Registered User
 

Join Date: May 2008
Posts: 31
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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
Reply With Quote
  #27 (permalink)  
Old 05-16-2008
Registered User
 

Join Date: May 2008
Posts: 31
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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.
Reply With Quote
  #28 (permalink)  
Old 05-16-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 2,253
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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.
Reply With Quote
  #29 (permalink)  
Old 05-16-2008
Registered User
 

Join Date: May 2008
Posts: 31
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Can you please tell me the command to see which process is bound to the port 80.

and i want to start my apachectl on port 80.

please suggest me in this regard.
Reply With Quote
  #30 (permalink)  
Old 05-21-2008
Registered User
 

Join Date: May 2008
Posts: 31
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by vamshikrishnab View Post
Can you please tell me the command to see which process is bound to the port 80.

and i want to start my apachectl on port 80.

please suggest me in this regard.
Thanks for your support.......

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...
Reply With Quote
Google UNIX.COM
Reply

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