Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Error 500: resolve error 500 and premature end of script WordPress

Hi, i need helps from somebody to resolve recurent error 500.

The site is under wordpress, sharehost from OVH, french host.

I use to have severals error 500 everyday, but usually, the site is working.

I tried to change .htaccess, chmod folders et files, nothing change.

My serveur logs shows (sample for yesterday) :

[Thu Sep 22 10:06:58 2011] [error] [client 211.11.78.37] [host www.wiki-credit.fr] suexec policy violation: see suexec log for more details
[Thu Sep 22 10:06:59 2011] [error] [client 211.11.78.37] [host www.wiki-credit.fr] Premature end of script headers: wp-login.php
[Thu Sep 22 10:07:24 2011] [error] [client 211.11.78.37] [host www.wiki-credit.fr] suexec policy violation: see suexec log for more details, referer: http://www.wiki-credit.fr/wp-admin/
[Thu Sep 22 10:07:24 2011] [error] [client 211.11.78.37] [host www.wiki-credit.fr] Premature end of script headers: index-extra.php, referer: http://www.wiki-credit.fr/wp-admin/
[Thu Sep 22 10:07:26 2011] [error] [client 211.11.78.37] [host www.wiki-credit.fr] suexec policy violation: see suexec log for more details, referer: http://www.wiki-credit.fr/wp-admin/
[Thu Sep 22 10:07:26 2011] [error] [client 211.11.78.37] [host www.wiki-credit.fr] Premature end of script headers: theme-editor.php, referer: http://www.wiki-credit.fr/wp-admin/
[Thu Sep 22 10:07:45 2011] [error] [client 211.11.78.37] [host www.wiki-credit.fr] suexec policy violation: see suexec log for more details, referer: http://www.wiki-credit.fr/wp-admin/
[Thu Sep 22 10:07:45 2011] [error] [client 211.11.78.37] [host www.wiki-credit.fr] Premature end of script headers: admin-ajax.php, referer: http://www.wiki-credit.fr/wp-admin/
[Thu Sep 22 10:08:54 2011] [error] [client 211.11.78.37] [host www.wiki-credit.fr] (70014)End of file found: Error reading request entity data, referer: http://www.wiki-credit.fr/wp-admin/
[Thu Sep 22 10:46:51 2011] [error] [client 90.22.102.131] [host www.wiki-credit.fr] Premature end of script headers: index.php


I need the help from someone who got strong experience to help me resolve this problem.

Answers (4)

2011-09-22

Julio Potier answers:

Hello
(are you french ?)

You paste "see suexec log for more details", can you read this log ?

Do you have install a plugin recently ?

See you


planap comments:

Hi thanks for your comment, yes I'm French you too ?

I don't know how to see the "see suexec" log, I only know how to get bulk error logs from OVH.

I Have many plugins, I tryed to uninstall them, but nothing change.
Because the error is not permanent, i can't know if it's related to a specific plugin.

Don't you know it could be come from the host ?
I suscribe ti siteuptime.com, nothing detected from 3 days.

thanks


Julio Potier comments:

Oui je suis français et je suis aussi chez OVH, qu'a dit le support OVH ?
Quel type d'hébergement as tu pris ?

**************
Yes i'm french and i'm also on VOH sharedhost, what did the ovh support ?
What kind of hosting did you subscribe ?


planap comments:

Hi, I contacted the OVH support and I sent an inquiry to the technical staff.

I'm still waiting for an answer from them.

In fact I can't access to suexec.log through my OVH backoffice, I need their help...

2011-09-22

ej_emman answers:

Hello Planap,

Have you tried to restart your Apache server? or your web server?
try to see this..

[[LINK href="http://www.checkupdown.com/status/E500.html"]]
http://www.checkupdown.com/status/E500.html[[/LINK]]


Base on your logs. It said "premature end of script" and common cause to this, is that the file do not have permission to run.
But you said you already tried running your chmod. This maybe weird.

Here's my suggestion.

Try to run this: chown -R <em>apache:apache</em> <em>sitedirectory</em>

apache:apache this means the user and the group replace permission


HOpe this help.


planap comments:

no, i'm on a sharehost.

moreover, I Got this error since more than 3 or 5 months perhaps...

but today i'm shure google don't like it....


ej_emman comments:

Ah okay. I see. :)

You said you try chmod...

Ahm, Can you try using chmod again but use this syntax instead.

chmod 755 /wordpressdirectory/wp-admin/

I have same problem like this, where I try to chmod my wordpress directory only, but when I check permission on the file inside admin directory it was not affected.

Hope this helps.

2011-09-22

Romel Apuya answers:

hi,

try this one out.

[[LINK href="http://www.codedifferent.com/2009/01/12/solution-for-500-internal-server-error-after-upgrading-to-wordpress-27-at-1and1-server/"]]http://www.codedifferent.com/2009/01/12/solution-for-500-internal-server-error-after-upgrading-to-wordpress-27-at-1and1-server/[[/LINK]]


Romel Apuya comments:

if that wont work here's another option.


[[LINK href="http://connectwww.com/how-to-fix-500-internal-server-error-in-wordpress/607/"]]http://connectwww.com/how-to-fix-500-internal-server-error-in-wordpress/607/[[/LINK]]


:-)

2011-09-22

Abdessamad Idrissi answers:

Salut!
My first advice to you is to check that your WordPress files are not hacked! I had a problem lately with malicious code injected to my index.php file at the bottom! so try this:
* download a frech WordPress installation and unpack it to overwrite your current files, don't worry this wont cause any trouble.
* check the wp-config.php for any strange code.
* check if you have some CGI or perl scripts in your root folder and sub-folders - normally WordPress works without any CGI or perl..

If errors are still happening:
* disable all plugins
* use the default wordpress theme to see if your current theme is causing the problem

If errors are still happening:
* check you .htaccess files (in root directory and wp-admin directory) for unusual code. you can even delete the htaccess file in the root and then regenerate it in your admin dashboard click Settings and select Permalinks.

If errors are still happening:
* Check/change the file permissions of the containing directories (root and children) to 755 or 750

Bonne chance :)


planap comments:

Hi, thank you for your advices

I tried to check all chmod once again
I Made the last uprgade wordpress manually.
then I set all folder on 705 and all files to 604 or 644
I also tried to respect the original chmod from a wordpress new installation.

nothing good this morning, still some errors :

[Sat Sep 24 06:53:53 2011] [error] [client 211.11.78.37] [host www.wiki-credit.fr] Premature end of script headers: wp-login.php
[Sat Sep 24 06:56:11 2011] [error] [client 211.11.78.37] [host www.wiki-credit.fr] suexec policy violation: see suexec log for more details
[Sat Sep 24 06:56:11 2011] [error] [client 211.11.78.37] [host www.wiki-credit.fr] Premature end of script headers: wp-login.php
[Sat Sep 24 06:56:30 2011] [error] [client 211.11.78.37] [host www.wiki-credit.fr] suexec policy violation: see suexec log for more details, referer: http://www.google.com/
[Sat Sep 24 06:56:30 2011] [error] [client 211.11.78.37] [host www.wiki-credit.fr] Premature end of script headers: index.php, referer: http://www.google.com/
[Sat Sep 24 06:56:32 2011] [error] [client 211.11.78.37] [host www.wiki-credit.fr] suexec policy violation: see suexec log for more details, referer: http://www.google.com/
[Sat Sep 24 06:56:32 2011] [error] [client 211.11.78.37] [host www.wiki-credit.fr] Premature end of script headers: index.php, referer: http://www.google.com/