Jump to content

Something is wrong with my PHP Installation on my webserver


Recommended Posts

Hi folks,

 

I'm new here, so hello everyone!

 

I run a webserver (Cent OS) with dedicatednow and since a few days I get an error message everytime I use anything PHP:

 

500 Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

 

It was working fine before that and no changes have been made. I don't get it. I tried restarting Apache, reconfiguring PHP, but without success.

 

Not even a simple phpinfo(); will run.

 

Can anyone help me out here?

Link to comment
Share on other sites

Sry, I'm really not that experienced with Linux.

 

Is this what you were asking for?

[Mon Feb 14 02:56:46 2011] [error] [client 67.191.39.247] Premature end of script headers: index.php

 

I get this on all the scripts that were attempted to be executed.

Link to comment
Share on other sites

You might want to check suexec_log.  (Look for it in  /var/log/httpd/suexec_log, or poke around.)

 

What you're seeing can often be the fault of wrong file permissions.  (Apache wants to run something that root owns, for example.)  suexec_log should give a clue if that's happening.

 

Precisely what you're seeing means that the pages stopped before they ever really got started, which unfortunately doesn't tell you much.  So I'd try looking into file permissions and ownership and see if that leads you somewhere.

Link to comment
Share on other sites

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.