Вопрос

I have installed WAMP2.4 on windows 7 - 64bit. Its working fine and also i am able to connect it from localhost and from outside. Skype, IIS or VMware is not installed on the system. In "services" the mysql and apache both are set to start automatically and are in started state. All services of WAMP is working and the icon is green.

Now, the problem is, the website goes down very often. When its down, the WAMP icon is still green, mysql and apache are still in "started" state. Then I just click on "Restart all services" every time and it starts working.

When its down, I checked the "Test port 80" of Apache>Services and it says that the port is not being used. Same time when i check port 80 with "netstat" on command prompt it show the process id of apache. If i don't do any action, after some time it start working. Is there any way to set Apache not to free the port 80? Or, any batch command which check the port 80 and if its free, restart the wamp services?

Это было полезно?

Решение

I have heard of this issue before now I come to think of it.

Try adding these 2 parameters to your httpd.conf file.

Put them after this line that should already exists in httpd.conf # EnableSendfile on

# AcceptFilter: Windows, none uses accept () instead of AcceptEx ()
# And do not recycle sockets between connections. This is useful
# Network interfaces for which the pilot is defective, and for
# Some network providers like vpn pilots or filters
# Anti-spam, anti-virus or anti-spyware.
AcceptFilter http none
AcceptFilter https none

With luck this should stop Apache from hanging, which I think is your main problem.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top