Jump to content

Recommended Posts

I've installed Vista and now Apache keeps crashing on me! Everytime I open my local version of my website it loads 50% of the page, "waits" like 10 or 15 seconds and than proceeds and finishes the page. Windows gives me a nice message "Apache HTTP Server has encountered an error" followed by a "Apache had to be closed down" message.

 

In the log it shows this:

[Thu Jun 28 21:34:33 2007] [notice] Child 2540: Child process is running

[Thu Jun 28 21:34:33 2007] [notice] Child 2540: Acquired the start mutex.

[Thu Jun 28 21:34:33 2007] [notice] Child 2540: Starting 250 worker threads.

[Thu Jun 28 21:34:33 2007] [notice] Child 2540: Starting thread to listen on port 80.

[Thu Jun 28 21:36:26 2007] [notice] Parent: child process exited with status 255 -- Restarting.

[Thu Jun 28 21:36:27 2007] [notice] Apache/2.2.4 (Win32) PHP/5.2.3 configured -- resuming normal operations

[Thu Jun 28 21:36:27 2007] [notice] Server built: Jan 9 2007 23:17:20

[Thu Jun 28 21:36:27 2007] [notice] Parent: Created child process 1128

[Thu Jun 28 21:36:27 2007] [notice] Child 1128: Child process is running

[Thu Jun 28 21:36:27 2007] [notice] Child 1128: Acquired the start mutex.

[Thu Jun 28 21:36:27 2007] [notice] Child 1128: Starting 250 worker threads.

[Thu Jun 28 21:36:27 2007] [notice] Child 1128: Starting thread to listen on port 80.

 

 

So, apache is alive, I open my site (wich runs fine on the www AND previously under Windows XP!), outputs like 50%, crashes, restarts and finishes the page. But WHY?

I think that "Child 1128: Starting 250 worker threads." is too high (at a guess). Perhaps tweak your httpd.conf or get a new httpd.conf from the apache download.

 

Also - can you further elaborate:

"wich runs fine on the www AND previously under Windows XP"

 

what www??? Does it work fine when accessed via www.yoursite.com ? And it doesnt when you access it via http://localhost??

 

If so, it could simply be a hosts.ini issue.

 

-steve

on the www = my copy on my webhost (but the exact same files), so yes: everything is fine on mywebsite.com and not on localhost/mywebsite a

 

I didn't find anything about Apache not being compatible with vista so I'm not sure if that's the case. I'll try tweaking the worker threads. thanks for the tip

OK - so your code works on your webhost, but the identical code causes apache to fall over on your localhost server.

 

Well it could be a hosts.ini issue.

Try going to http://127.0.0.1

 

Do you have the mysql extensions and stuff you need installed?

 

Can you open up a simple http://localhost/test.html page?

 

-steve

  • 2 weeks later...

everything works fine. a info()-php page also works fine. And phpmyadmin also doesn't give any problems. Only my own php-pages cause apache to crash. But it didn't under XP. It also doesn't live on my hosts' server and it didn't under XP....

  • 1 year later...
  • 1 year later...
  • 3 years later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.