Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Web Hosting Forum


You are currently viewing our Web Hosting Forum as a guest. Please register to participate.
Login



Reply
Trouble starting apache
Old 02-19-2005, 04:16 PM Trouble starting apache
Novice Talker

Posts: 9
Location: Indiana
Trades: 0
I just ordered a virtual hosting package from Ipower.com, and I was given the program 'Webmin' to use (I'd rather it be Cpanel). Whenever I click 'Start Apache' (which would be really nice to be able to do), I get this error message.


Sat Feb 19 07:22:22 2005] [crit] (48)Address already in use: make_sock: could not bind to port 80
[Sat Feb 19 18:11:02 2005] [crit] (48)Address already in use: make_sock: could not bind to port 80
[Sat Feb 19 18:30:28 2005] [crit] (48)Address already in use: make_sock: could not bind to port 80
[Sat Feb 19 21:22:31 2005] [crit] (48)Address already in use: make_sock: could not bind to port 80
[Sat Feb 19 21:23:28 2005] [crit] (48)Address already in use: make_sock: could not bind to port 80

What is going on?
John2 is offline
Reply With Quote
View Public Profile Visit John2's homepage!
 
 
Register now for full access!
Old 02-19-2005, 05:14 PM
Novice Talker

Posts: 9
Location: Indiana
Trades: 0
uh...I changed the port that Apache would listen to to '81', and now apache works. Am I correct in thinking that the problem lies in another program that is using port 80?
John2 is offline
Reply With Quote
View Public Profile Visit John2's homepage!
 
Old 02-19-2005, 05:20 PM
ParasHaria's Avatar
Extreme Talker

Posts: 155
Location: London, UK
Trades: 0
http exists on port 80
__________________

Please login or register to view this content. Registration is FREE

Design | Development | Hosting | SEO
ParasHaria is offline
Reply With Quote
View Public Profile Visit ParasHaria's homepage!
 
Old 02-19-2005, 05:44 PM
Novice Talker

Posts: 9
Location: Indiana
Trades: 0
So which port should apache run on?
John2 is offline
Reply With Quote
View Public Profile Visit John2's homepage!
 
Old 02-19-2005, 05:48 PM
ParasHaria's Avatar
Extreme Talker

Posts: 155
Location: London, UK
Trades: 0
from the best of my knowlegde Apache should also run on 80. someone please confirm this....you may need someone to look at your server for you.
__________________

Please login or register to view this content. Registration is FREE

Design | Development | Hosting | SEO
ParasHaria is offline
Reply With Quote
View Public Profile Visit ParasHaria's homepage!
 
Old 02-20-2005, 10:27 AM
Super Talker

Posts: 110
Trades: 1
You're probably getting that error because apache is already running.

Webmin's apache module may not be picking up the correct configuration. Click on Module Config to see if the paths to stop / start apache are correct etc.

To check if apache is already running click on Systems, Running Processes

You can also check Others, System and Server Status and see if apache has the green tick. But again, the install of apache may not be the same as what Webmin expects thus the status could be showing the red cross. Check module config.
Frank Rizzo is offline
Reply With Quote
View Public Profile Visit Frank Rizzo's homepage!
 
Old 02-21-2005, 11:35 AM
Novice Talker

Posts: 9
Location: Indiana
Trades: 0
Command to start apache *Use apachectl or start manually
Command to stop apache *Use apachectl or kill process

^That is my current configuration.
John2 is offline
Reply With Quote
View Public Profile Visit John2's homepage!
 
Old 02-21-2005, 04:33 PM
Duport's Avatar
Ultra Talker

Posts: 323
Trades: 0
Apache runs on port 80
__________________

Please login or register to view this content. Registration is FREE
- Shared / Reseller / Cloud / VPS / Dedicated
Multiple Domain Hosting .... 24/7 Technical Support -
Please login or register to view this content. Registration is FREE
Duport is offline
Reply With Quote
View Public Profile Visit Duport's homepage!
 
Old 02-21-2005, 09:57 PM
meganisonfire's Avatar
Novice Talker

Posts: 5
Location: stafford, va
Trades: 0
I get that same error and I have no clue how to change the port for it, I really want to use apache again
meganisonfire is offline
Reply With Quote
View Public Profile Visit meganisonfire's homepage!
 
Old 02-21-2005, 10:37 PM
Duport's Avatar
Ultra Talker

Posts: 323
Trades: 0
Quote:
Originally Posted by John
I just ordered a virtual hosting package from Ipower.com, and I was given the program 'Webmin' to use (I'd rather it be Cpanel). Whenever I click 'Start Apache' (which would be really nice to be able to do), I get this error message.


Sat Feb 19 07:22:22 2005] [crit] (48)Address already in use: make_sock: could not bind to port 80
[Sat Feb 19 18:11:02 2005] [crit] (48)Address already in use: make_sock: could not bind to port 80
[Sat Feb 19 18:30:28 2005] [crit] (48)Address already in use: make_sock: could not bind to port 80
[Sat Feb 19 21:22:31 2005] [crit] (48)Address already in use: make_sock: could not bind to port 80
[Sat Feb 19 21:23:28 2005] [crit] (48)Address already in use: make_sock: could not bind to port 80

What is going on?
Something is already bound to port 80. Try killing all your old apache processes manually. sockstat -c will show what processes are bound to your ports in BSD.

A broken apache config will make the apachectl stop/start command useless. Make sure the PID file locations are correct.

Quote:
Originally Posted by meganisonfire
I get that same error and I have no clue how to change the port for it, I really want to use apache again
You can change the port number in httpd.conf, on linux

pico /etc/httdp/conf/httpd.conf
__________________

Please login or register to view this content. Registration is FREE
- Shared / Reseller / Cloud / VPS / Dedicated
Multiple Domain Hosting .... 24/7 Technical Support -
Please login or register to view this content. Registration is FREE

Last edited by Duport; 02-21-2005 at 10:40 PM..
Duport is offline
Reply With Quote
View Public Profile Visit Duport's homepage!
 
Old 02-22-2005, 06:38 AM
Super Talker

Posts: 110
Trades: 1
As I say, have you checked that apache is not already running? The fact that you are seeing an error when starting apache is that it could already be running.

Webmin -> System -> Running Processes

Press Ctrl-F on the page or use the search option and check for

apache

If you have root access to the server you could try this:

ps aux | grep apache

If it's there in either case then it's already running and you don't need to start it again.

If it's not running then to find out what is using port 80 already try:

netstat -pan

or

netstat -lnp | grep :80'

That should give you a clue as to what is using port 80.

Last edited by Frank Rizzo; 02-22-2005 at 06:45 AM..
Frank Rizzo is offline
Reply With Quote
View Public Profile Visit Frank Rizzo's homepage!
 
Reply     « Reply to Trouble starting apache
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31907 seconds with 12 queries