1752311 Members
5267 Online
108786 Solutions
New Discussion юеВ

Apache

 
SOLVED
Go to solution
marco_186
Advisor

Apache

dear all;
im trying to install apache and PHP its installed successful
but when im trying to start Apache":

# /usr/local/apache2/bin/apachectl start
(226)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

# /usr/local/apache2/bin/apachectl stop
httpd (pid 2968?) not running

i dont know what is the problem and how i can test the apache.

Thanks
15 REPLIES 15
TwoProc
Honored Contributor

Re: Apache

Something is already running at port 80.

Try this...

telnet 127.0.0.1 80
GET /

Does this return an formatted page of html? If so, then another web servers exists at port 80.
We are the people our parents warned us about --Jimmy Buffett
RAC_1
Honored Contributor

Re: Apache

Something is already listening on port 80.
netstat -an | grep -i 80
to know what proggram/apps is listeneing on it. If you have lsof tools, you can do as follows.

lsof -i tcp:80
There is no substitute to HARDWORK
marco_186
Advisor

Re: Apache

dear all

i did netstet -an | grep -i 80

the result

tcp 0 2 10.0.17.41.23 10.0.48.82.4980 ESTABLISHED
tcp 0 0 *.80 *.* LISTEN
4a671080 dgram 0 0 4a580880 48c37340
0 /opt/dcelocal/var/rpc/local/01051/c-3/7001
49362200 dgram 0 0 48b2e880 48c37bc0
0 /opt/dcelocal/var/rpc/local/01029/c-3/7000
49362380 dgram 0 0 490cd1c0 0 48fd03c
0 /opt/dcelocal/var/rpc/local/01029/c-3/shared
48c62640 dgram 0 0 493e4b80 0
0 /opt/dcelocal/var/rpc/local/01082/reaper
49362680 dgram 0 0 48a0f040 0
0 /opt/dcelocal/var/rpc/local/01060/reaper
48c627c0 dgram 0 0 48df0880 0
0 /opt/dcelocal/var/rpc/local/01664/c-3/shared
49362800 dgram 0 0 493e9880 48c37240
0 /opt/dcelocal/var/rpc/local/01259/c-3/7000
49362980 dgram 0 0 4962c940 0
0 /opt/dcelocal/var/rpc/local/01259/reaper
49362c80 stream 0 0 0 48c375c0
0
4a2a3280 stream 0 0 4a28ba00 0
0 /opt/dcelocal/var/rpc/local/s-0/3275
49493380 stream 0 0 0 48c64440
0 /var/dmi/socket/dmispSocket
49493680 stream 0 0 4911d400 0
0 /opt/dcelocal/var/rpc/local/s-0/2121
49493980 dgram 0 0 4907b400 0
0 /opt/dcelocal/var/rpc/local/s-3/2121
495b4240 dgram 0 0 493e9b80 0
0 /var/spool/sockets/pwgr/client1274
49224880 dgram 0 0 496791c0 0
0 /var/spool/sockets/pwgr/client1454
495b4840 dgram 0 0 496d4280 0
0 /var/spool/sockets/pwgr/client1430
495b49c0 stream 0 0 49615280 0
0 /tmp/mysql.sock
495b4b40 dgram 0 0 49733b80 0
0 /var/spool/sockets/pwgr/client1456
49224e80 dgram 0 0 4911aa00 0
0 /opt/dcelocal/var/rpc/local/01664/reaper
48c35ac0 stream 0 0 48fa7580 0
0 /opt/dcelocal/var/rpc/local/s-0/135
48c861c0 stream 0 0 0 48c88040
0
4a6c6380 dgram 0 0 0 0
0
48c86340 stream 0 0 48c32580 0
0 /etc/vx/vold_diag/socket
4a288280 dgram 0 0 4a28b7c0 0
0 /opt/dcelocal/var/rpc/local/01475/reaper
4a288880 dgram 0 0 490b0f40 0
0 /var/spool/sockets/pwgr/client1518
4a4d90c0 dgram 0 0 4a0f4580 0
0 /opt/dcelocal/var/rpc/local/01819/reaper
492f9080 stream 0 0 0 48c88340
0 /tmp/.AgentSockets/A
492f9380 stream 0 0 0 48c88440
0 /tmp/.AgentSockets/A
492f9680 stream 0 0 49112400 0
0 /var/dmi/socket/dmispSocket
492f9800 dgram 0 0 48b2e7c0 0
0 /opt/dcelocal/var/rpc/local/01051/reaper
4a4ad1c0 dgram 0 0 4968b880 0
0 /opt/dcelocal/var/rpc/local/s-3/49456
4a4ad940 dgram 0 0 4911d580 48c37340
48c376c0 /opt/dcelocal/var/rpc/local/01783/c-3/7001
4a4adac0 dgram 0 0 490df580 0
0 /opt/dcelocal/var/rpc/local/01783/c-3/shared
4939e6c0 dgram 0 0 4947be80 0
0 /var/spool/sockets/pwgr/client1148




--- - - -- -

i dont knw what is the program use port 80
Torsten.
Acclaimed Contributor

Re: Apache

do a really easy test first:
point a browser to the servers IP address - what is the result?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
marco_186
Advisor

Re: Apache

i did test browser

the web site result

This web page is the default web page for the HP Apache-based Web Server on HP-UX. This page is usually replaced with web site content by the web site administrator.



DCE
Honored Contributor

Re: Apache

You might want to check /etc/rc.config.d/hpws_apacheconf. If the flag has been set to 1, then the hp supplied version of Apache is being initiated at startup

Dave
Torsten.
Acclaimed Contributor

Re: Apache

So if your apache isn't starting up, there is another instance already running. Maybe someone already did an installation in the past? How many admins you are? Ask your team members.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
marco_186
Advisor

Re: Apache

dear all
first of all i would like to say thanks for all memebers

im the only admin on this machine i just installed HP unix on it no others allow to use it

Torsten.
Acclaimed Contributor

Re: Apache

Marco,

please run

# swlist|grep -i apache

I guess, there is another installation. Have look here

/opt/apache

if you find something.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!