error log

Ironside

Member
sorry if this is the wrong place to place this message

One of my websites is running very slow. I have moved on to a dedicated server, no improvement. I have made other adjustments, a small improvement, but by no means satisfactory.

however, often inspecting my error log [in the root directory] that are many many errors which I have been told will cause problems such as slowing the site up. even though I can see the errors, I don't know how to go about getting rid of them, I can see that some of the areas correspond to a photographs gallery on my website.

anyway, if anyone can help, I'll be very grateful
 

Christopher

VIP Member
What are the errors? Can you paste a few examples?

You will often get lots of 404 type errors (for example, my site doesn't have a favicon so there are tons of 'favicon.ico not found'). Those kinds of errors aren't the kind that'll slow your site down.

But others, like things about PHP going over the execution time etc. are problematic. I can't really help any more without knowing what kinds of errors you are experiencing.
 

Ironside

Member
these are some of the errors

Tue Jun 24 00:20:52 2008] [error] [client 74.6.18.243] Premature end of script headers: php5.cgi
[Tue Jun 24 00:20:52 2008] [error] [client 74.6.18.243] File does not exist: /home/wooding/www.oscarfishlover.com/internal_error.html
[Tue Jun 24 00:20:52 2008] [error] [client 74.6.18.243] Premature end of script headers: php5.cgi
[Tue Jun 24 00:20:52 2008] [error] [client 74.6.18.243] File does not exist: /home/wooding/www.oscarfishlover.com/internal_error.html
[Tue Jun 24 00:21:23 2008] [error] [client 74.6.18.243] Premature end of script headers: php5.cgi
[Tue Jun 24 00:21:23 2008] [error] [client 74.6.18.243] File does not exist: /home/wooding/www.oscarfishlover.com/internal_error.html
[Tue Jun 24 00:21:54 2008] [error] [client 218.186.12.11] Premature end of script headers: php5.cgi
[Tue Jun 24 00:21:54 2008] [error] [client 218.186.12.11] File does not exist: /home/wooding/www.oscarfishlover.com/internal_error.html
[Tue Jun 24 00:21:54 2008] [error] [client 74.6.18.243] Premature end of script headers: php5.cgi
[Tue Jun 24 00:21:54 2008] [error] [client 74.6.18.243] File does not exist: /home/wooding/www.oscarfishlover.com/internal_error.html
[Tue Jun 24 00:22:25 2008] [error] [client 74.6.18.243] Premature end of script headers: php5.cgi
[Tue Jun 24 00:22:25 2008] [error] [client 74.6.18.243] File does not exist: /home/wooding/www.oscarfishlover.com/internal_error.html
[Tue Jun 24 00:22:25 2008] [error] [client 74.6.18.243] Premature end of script headers: php5.cgi
[Tue Jun 24 00:22:25 2008] [error] [client 74.6.18.243] File does not exist: /home/wooding/www.oscarfishlover.com/internal_error.html
[Tue Jun 24 00:22:25 2008] [error] [client 74.6.18.243] Premat
 

Christopher

VIP Member
Not sure what is causing that. The "premature end of script headers" is probably caused by some error/bug with your PHP setup (Zend Optimizer for example is notorious for causing weird issues). You might try using mod_php with Apache instead of using PHP as CGI. mod_php is faster, anyway.

You also might try disabling suPHP if you have that enabled (it's not as secure, but might fix the problem).

The second "file does not exist" error is just saying the server can't find your "internal error" page. That's the page that says "500 Internal Server Error". When the first error occurs, your web server tries to display the error page to the user, but can't find it. It's no biggie, but you can just create that file if you want to fix it.
 
Top