Magento : Premature end of script headers: index.php

Number of Views : 3339

jimizlogo_magento2I recently had an error show on a Magento site.
The error showing was :
Premature end of script headers: index.php

After some searching I found that this is a common error with a few different solutions. In my case I logged into the server and looked at the apache error log. What I found was the error and also what I think was the cause.

Premature end of script headers: index.php
SoftException in Application.cpp:256: File “/home/somesite/public_html/index.php” is writeable by group

The error was actually helpful. After that I was able to do some more detailed searches to see that there was a permissions error.

I ended up having to change the permission of the index.php file

 chmod 644 index.php

Here is a good site with some information regarding resetting permissions for http://www.magentocommerce.com/wiki/groups/227/resetting_file_permissions

After changing permissions the site just started working. I believe the issue was caused by the server site transfer.

Leave a Reply

Your email address will not be published. Required fields are marked *