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
# 1  
Old 05-15-2008
How to fix a fault with apache in SUN server

Hi,

We are logging into the SUN OS 5.9 server by using putty. We are not able to open the webpage that is using the apache server in our main server.

when i checked for my apache server, It is running fine.

It is given as

$ 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

when i am accessing webpage it is giving error as 'File not found' and 'HTTP 404'

I dont know how to fix this issue.


If any one knows please tell me how to check for the process which is responsible for the GUI to run and process of working and loading of a GUI web page.
# 2  
Old 05-15-2008
Can you be a little more specific and tell us what troubleshooting steps you did or didn't do. We unix admins not mind readers.Smilie
# 3  
Old 05-15-2008
when i am trying to start the apache server fro root it is giving error as


[Thu May 15 14:43:20 2008] [crit] (125)Address already in use: make_sock: could not bind to port 80.
# 4  
Old 05-15-2008
on Your main web server do a

telnet localhost 80
GET /

and see what's the ascii output, is it also showing "http 404" error? If it is then do a

netstat -na | grep -i listen | grep \\.80

to see what else is possibily using port 80

If GET / is not showing the "http 404" error, go to a client machine, telnet to the webserver ip address at port 80
example

telnet xxx.xxx.xxx.xxx 80
GET /

and compares the output
# 5  
Old 05-15-2008
hello !
so you try to start the apache while another http is allready running ?
that would explain the error message because the port is allready taken by another http deamon.
Quote:
[Thu May 15 14:43:20 2008] [crit] (125)Address already in use: make_sock: could not bind to port 80.
the message
Quote:
when i am accessing webpage it is giving error as 'File not found' and 'HTTP 404'
only states that there isnt any file to access for the httpd like no index.html in the document root of the apache.
this can only be solved bye verifying the docroot and the accessed files of the configured virtual host in the httpd.conf.

more infos can be found in the httpd logs (error.log access.log) debends on the httpd version but most likely in the apache_root/logs
# 6  
Old 05-15-2008
Hi,

when i given

telnet localhost 80
GET /

on the server it has given a HTML script
and same also resulted when i given

telnet xxx.xxx.xxx.xxx 80
GET /

.It is not given any HTTP404 error.


and for netstat,it resulted following.

netstat -na | grep -i listen | grep \\.80
*.80 *.* 0 0 49152 0 LISTEN


Please help me out in resolving this issue.
# 7  
Old 05-15-2008
I had found the following files in the document root of apache server are

-rw-r--r-- 1 webi other 2326 Jul 3 1996 apache_pb.gif
-rw-r--r-- 1 webi other 3134 Jan 27 2001 index.html.ru.ucs2
-rw-r--r-- 1 webi other 6268 Jan 27 2001 index.html.ru.ucs4
-rw-r--r-- 1 webi other 2035 Mar 22 2001 index.html.pt-br
-rw-r--r-- 1 webi other 1456 May 4 2001 index.html.en
-rw-r--r-- 1 webi other 1884 Jun 26 2001 index.html.ca
-rw-r--r-- 1 webi other 1583 Jun 27 2001 index.html.cz
-rw-r--r-- 1 webi other 1557 Jun 27 2001 index.html.dk
-rw-r--r-- 1 webi other 1877 Jun 27 2001 index.html.ee
-rw-r--r-- 1 webi other 1677 Jun 27 2001 index.html.el
-rw-r--r-- 1 webi other 3706 Jun 27 2001 index.html.he.iso8859-8
-rw-r--r-- 1 webi other 1525 Jun 27 2001 index.html.fr
-rw-r--r-- 1 webi other 1799 Jun 27 2001 index.html.es
-rw-r--r-- 1 webi other 1333 Jun 28 2001 index.html.kr.iso-kr
-rw-r--r-- 1 webi other 1526 Jun 28 2001 index.html.no
-rw-r--r-- 1 webi other 2007 Jun 28 2001 index.html.nl
-rw-r--r-- 1 webi other 1842 Jun 28 2001 index.html.pt
-rw-r--r-- 1 webi other 1497 Jun 28 2001 index.html.po.iso-pl
-rw-r--r-- 1 webi other 1591 Jun 28 2001 index.html.ru.cp-1251
-rw-r--r-- 1 webi other 1585 Jun 28 2001 index.html.ru.cp866
-rw-r--r-- 1 webi other 1589 Jun 28 2001 index.html.ru.iso-ru
-rw-r--r-- 1 webi other 2318 Jun 28 2001 index.html.ru.utf8
-rw-r--r-- 1 webi other 1585 Jun 28 2001 index.html.ru.koi8-r
-rw-r--r-- 1 webi other 1700 Jun 28 2001 index.html.se
-rw-r--r-- 1 webi other 1534 Sep 6 2001 index.html.nn
-rw-r--r-- 1 webi other 2274 Sep 17 2001 index.html.de
-rw-r--r-- 1 webi other 1847 Nov 7 2001 index.html.it
-rw-r--r-- 1 webi other 1799 Dec 14 2001 index.html.ja.jis
-rw-r--r-- 1 webi other 1896 May 21 2002 index.html.lb.utf8
-rw-r--r-- 1 webi other 1062 May 21 2002 index.html.zh
-rw-rw-r-- 1 webi other 1335 Jun 13 2006 index.htm
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