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
# 8  
Old 05-15-2008
In httpd.conf file the directory index is defined as


# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#
DirectoryIndex enter.htm index.html index.htm
# 9  
Old 05-15-2008
Maybe there's another http process has started before your apache.

You have to try to check /etc/init.d /etc/rc2.d /etc/rc3.d

check all the SXX (XX is number, the number denotes the starting sequence)

cd /etc/init.d
grep -i httpd *

cd /etc/rc2.d
grep -i httpd *

cd /etc/rc3.d
grep -i httpd *

look for some other startup script that could be starting http process before apache.

grep -i will search all the scripts in the directory for pattern called "httpd" and list the filename that contains it.
# 10  
Old 05-15-2008
can you post the output of
#> httpd -t -S
# 11  
Old 05-15-2008
The results for the commands are:

cd /etc/init.d
grep -i httpd *

grep: can't open esmrc
grep: can't open netbios
grep: can't open rc.oracle

cd /etc/rc2.d
grep -i httpd *


grep: can't open K69esmrc
grep: can't open S98netbios
grep: can't open S99rc.oracle


cd /etc/rc3.d
grep -i httpd *


grep: can't open S69esmrc



I dont know what these mean.

But in error log file it is showing as

[Thu May 15 14:43:20 2008] [crit] (125)Address already in use: make_sock: could not bind to port 80


Please address me in resolving this issue.

Thanks for replying
# 12  
Old 05-15-2008
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
# 13  
Old 05-15-2008
you need to be root and try grep again
# 14  
Old 05-15-2008
This is the result in root user.

# cd /etc/init.d
# grep -i httpd *
# cd /etc/rc2.d
# grep -i httpd *
# cd /etc/rc3.d
# grep -i httpd *
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