How to fix a fault with apache in SUN server


 
Thread Tools Search this Thread
Operating Systems Solaris How to fix a fault with apache in SUN server
# 15  
Old 05-15-2008
try grep http instead of httpd?
# 16  
Old 05-15-2008
Quote:
Originally Posted by vamshikrishnab
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
# 17  
Old 05-15-2008
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?
# 18  
Old 05-15-2008
# 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.
# 19  
Old 05-15-2008
Quote:
Originally Posted by era
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.
# 20  
Old 05-15-2008
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.
# 21  
Old 05-15-2008
Quote:
Originally Posted by era
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
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. Programming

Problem with Perl script after moving from a Windows/Apache Server to a UNIX server.

I have a Perl script that worked fine before moving it to justhost.com. It was on a Windows/Apache server. Just host is using UNIX. Other Perl scripts on other sites that were also moved work fine so I know Perl is functioning. The script is called cwrmail.pl and is located in my cgi-bin. When I... (9 Replies)
Discussion started by: BigBobbyB
9 Replies

2. UNIX for Dummies Questions & Answers

Info Needed in Seting up An apache Web Server on A Sun Sparc with Solaris 8

I need help in the form of the complete procedures necessary in setting up an Apache web server on a Sun Sparc running Solaris 8 David Johnston P.S New to the Unix arena (1 Reply)
Discussion started by: David Johnston
1 Replies
Login or Register to Ask a Question