Pages: 12Next
Current Page: 1 of 2
Apache stopped working
Posted by: trashy (---.pilotpoint.tx.cebridge.net)
Date: November 22, 2006 02:19AM

I had my Apache server up and running for about a day, now I can't install the service, even though it finds nothing on port 80 and no other server software is running.

I just reinstalled the entire WAMP package and it still won't run.

HELP!

Win XP - no modifications to httpd.conf -

Options: ReplyQuote
Re: Apache stopped working
Posted by: CyberSpatium (71.237.217.---)
Date: November 22, 2006 11:31AM

make sure you have administrator privileges with your windows os.



CyberSpatium
WAMP English Forum Admin

Options: ReplyQuote
Re: Apache stopped working
Posted by: trashy (---.google.com)
Date: November 22, 2006 04:04PM

as I said - I already had this running before! Yes, I have full admin priveleges on this box...

Options: ReplyQuote
Re: Apache stopped working
Posted by: binaryspiral (---.mdsnwikw.tds.net)
Date: November 22, 2006 11:34PM

I have the same problem - it's reoccurring on my installation.

I've nuked the install, and scrubbed all traces of the installation from my laptop. Then reinstalled and left it all alone. No software, no changes, nothing...

It starts fine on restarts - apache is answering and I can view the wamp page hosted on localhost port 80.

After a few days - apache just refuses to start.

NT Event Log entries from my OS:
The wampapache service terminated with service-specific error 1 (0x1).


I'm not an apache guru - so I'm not sure where to start trouble shooting this. If there is a way to increase logging so I can see wtf is going on, I'll be glad to share my findings with anyone who cares.

Otherwise, it's just a useless systray icon and a broke service. :-(

Options: ReplyQuote
Re: Apache stopped working
Posted by: trashy (---.pilotpoint.tx.cebridge.net)
Date: November 23, 2006 03:55AM

OK, evidently when I reinstalled the default httpd.conf needed to be re-customized.

If you want to find out what error is stopping Apache, just run it from the command line - it will give you the line number in httpd.conf and a brief description.

After tweaking this file my server service is running again, but every time I try to add the virtual hosting section the services crashes again.

Any ideas on that? Again, I did have this working originally........

Options: ReplyQuote
Re: Apache stopped working
Posted by: binaryspiral (---.mdsnwikw.tds.net)
Date: November 23, 2006 06:21AM

Ah, that helps...

Here is the errors:

Syntax error on line 479 of D:/wamp/Apache2/conf/httpd.conf:
Invalid command 'Alias', perhaps mis-spelled or defined by a module not included in the server configuration

---

So when I dig into the httpd.conf file, I see this:


---
Alias /manual/ "D:/wamp/Apache2/htdocs/manual/"
---

So... why is apache bitching about this line all of the sudden?

Options: ReplyQuote
Re: Apache stopped working
Posted by: trashy (---.pilotpoint.tx.cebridge.net)
Date: November 23, 2006 06:47AM

try removing the quotes from the path - evidently not required unless you have a directory with spaces....

Options: ReplyQuote
Re: Apache stopped working
Posted by: CyberSpatium (71.237.217.---)
Date: November 23, 2006 12:29PM

binaryspiral, make sure you have mod_alias enabled in your httpd.conf file.


trashy, post the virtual host settings in your httpd.conf file here so I can see it for myself


CyberSpatium
WAMP English Forum Admin

PS: Happy Turkey Day smiling smiley

Options: ReplyQuote
Re: Apache stopped working
Posted by: trashy (---.pilotpoint.tx.cebridge.net)
Date: November 23, 2006 01:37PM

binaryspiral,

Thanks for the assist. I finally got the httpd.conf tweaked so apache is back up and running, but now I have other issues. I'll start a new thread if I can't find an answer here...

Options: ReplyQuote
Re: Apache stopped working
Posted by: rchrd (---.260-1-64736c20.cust.bredbandsbolaget.se)
Date: November 23, 2006 02:28PM

I also have problems with Apache not starting. It used to work fine but now it doesn't. If I start Apache from the command line i get this error message (translated from swedish):

"(OS 10048) Normally only one user is allowed per socket address (protocol/networkaddress/port). : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs"

What exactly does this mean?

Options: ReplyQuote
Re: Apache stopped working
Posted by: trashy (---.pilotpoint.tx.cebridge.net)
Date: November 23, 2006 02:36PM

I'm no expert, but it looks like something is already listening on port 80

run this from a command line:

netstat -a -n

Results will look something like this:

Proto Local Address Foreign Address State
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING

If you see port 80 already there then something is already listening on that port - usually a server like apache or IIS, or sometimes I think Skype uses that port.....

Options: ReplyQuote
Re: Apache stopped working
Posted by: rchrd (---.260-1-64736c20.cust.bredbandsbolaget.se)
Date: November 23, 2006 02:39PM

Thanks for answering fast! smiling smiley
Of course, now with Skype turned off Apache is working just fine. Thanks!

Options: ReplyQuote
Re: Apache stopped working
Posted by: CyberSpatium (71.237.217.---)
Date: November 23, 2006 04:08PM

yes, I dont know why the developers of skype decided to use port 80 for their program since all web servers use that port. there are thousands of free ports available skype could have chosen to use without causing any problems by using port 80.

CyberSpatium
WAMP English Forum Admin

~~ Happy Turkey Day smiling smiley ~~

Options: ReplyQuote
Re: Apache stopped working
Posted by: trashy (---.pilotpoint.tx.cebridge.net)
Date: November 23, 2006 04:24PM

I'm assuming they used Port 80 to allow usage of Skype at businesses which typically block most ports. If anything is open, it's usually 80.'

That's my guess any way.

Options: ReplyQuote
Re: Apache stopped working
Posted by: binaryspiral (64.73.12.---)
Date: November 24, 2006 01:31AM

Back on topic...

I found that mod_alias was commented out in the httpd.conf file... I removed the comment and Apache happily started again. (wtf?!)

Two questions then:

1. Why did it work when I originally installed it?
2. What commented that line out and broke it?


P.S. Happy Thanksgiving to any Americans reading this board. Have a safe and happy holiday.



Post Edited (11-24-06 01:35)

Options: ReplyQuote
Re: Apache stopped working
Posted by: CyberSpatium (71.237.217.---)
Date: November 24, 2006 02:05AM

i am not sure, some how you swaped httpd.conf files, or maybe you have more than 1 httpd.conf files on your pc for some reason and edited the wrong one.


CyberSpatium
WAMP English Forum Admin

Options: ReplyQuote
Re: Apache stopped working
Posted by: binaryspiral (64.73.12.---)
Date: November 25, 2006 06:44AM

That's funny... I don't remember mentioning anything about editing any file when I originally posted my issue.

"
I've nuked the install, and scrubbed all traces of the installation from my laptop. Then reinstalled and left it all alone. No software, no changes, nothing...

It starts fine on restarts - apache is answering and I can view the wamp page hosted on localhost port 80.

After a few days - apache just refuses to start.

"

Hrm. nope, no mention of editing a file. Oh actually yeah... right there it says "no changes".

If you don't believe me - that's fine. I've had end users lie to me too when I'm supporting them and their PCs. But man... at least give me a chance to prove there might be something amiss in your code that needs some serious un-borking.

If it happens again, I'll know what to look for... and I'll be back. >:-)

Until then - thanks for the help.

Options: ReplyQuote
Re: Apache stopped working
Posted by: CyberSpatium (71.237.217.---)
Date: November 25, 2006 03:49PM

you know what, I am just the english forum admin. I do not own/run this site. i dont make any money for anything I do here. I just volunteer my time trying to help other people out when they need some support with wamp, apache, php, etc.

I dont have time to get berated by some ungrateful person who I am trying to help.

I am no longer offering you any type of support for your problem since you dont seem to appreciate the effort I am/have made to try to help you.

CyberSpatium
WAMP English Forum Admin

Options: ReplyQuote
Re: Apache stopped working
Posted by: trashy (---.pilotpoint.tx.cebridge.net)
Date: November 25, 2006 05:34PM

I just thought I would mention that it was I, trashy, who started this thread, not Mr. BinarySpiral..........

and I may need more support in the future! yawning smiley)

Options: ReplyQuote
Re: Apache stopped working
Posted by: CyberSpatium (71.237.217.---)
Date: November 25, 2006 07:04PM

dont worry I will continue to help others out.


CyberSpatium
WAMP English Forum Admin

Options: ReplyQuote
Pages: 12Next
Current Page: 1 of 2


Sorry, only registered users may post in this forum.