Premature end of script on VPS

56 views Asked by At

i have a VPS mounted with RedHat OS. Today, install DAV module for Apache from WHM and the services was restated.

Apache works fine, but PHP has troubles. All my php scripts return 501 Internal Server Error.

In the log /usr/local/apache/logs/error_log i can see:

[error] [client 190.247.67.31] Premature end of script headers: info.php

And PHP command line doesn't work. When i try php -v the command doesn't show the PHP version and nothing is returned.

Note: PHPMyAdmin works.

Any ideas ?

1

There are 1 answers

0
ramiromd On BEST ANSWER

In my case the problem was an incorrect php.ini configuration.