4

I have PHP website running under mod_fcgi in apache2.

Problem is that in some cases i get (probability is something like 1/400): Premature end of script headers: controller.php and Internal Server Error

It seems like it's not problem of code that's running because i'm running the same scripts over and over again with similar data.

How do I debug such thing? What could cause such thing?

martu
  • 41

1 Answers1

0

Most probably the issue is with permissions/ownerships.

Make sure that the permissions/ownerships are correct.

Don't forget to check the permissions/ownerships of complete path.

Example: If the DocumentRoot is

/var/www/domains/yourdomain.tld/public_html/index.html

Then check permissions/ownerships starting from yourdomain.tld

Suku
  • 2,066