Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-19 10:14:26

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,391
Website GitHub Mastodon

"500 Internal Server Error" on the public root page

What else would I do, if I renamed .htaccess as stated here, but still receive a “500 Internal Server Error” message whenever I try to view the site’s home page.

Until recently, the site was working properly. After the home page is hit once, I find a core dump plus an entry in Apache’s error.log stating:

Premature end of script headers: php5.cgi
Textpattern version: 4.0.4 (r2362)
PHP version: 5.2.2
MySQL: 5.0.24a-standard-log
Server: Apache/2.0.54 (Unix) PHP/4.4.7 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.4.2
PHP Server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 2.6.18.1-grsec+e+f6b+gr219+opt+c4a+gr2b-grsec

The hosting provider upgraded from PHP 5.2.1 to 5.2.2 recently, so this could be a root cause, although other sites hosted there with PHP 5.2.2 work properly.

Any suggestions?

Offline

#2 2007-05-19 11:31:02

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: "500 Internal Server Error" on the public root page

If PHP dumps core, then that looks more like a PHP problem than a TXP problem.

Does this also happen if you start some of the TXP php files from the command line: “php some_txp_file.php”.

Last edited by ruud (2007-05-19 11:32:05)

Offline

#3 2007-05-19 12:07:30

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,391
Website GitHub Mastodon

Re: "500 Internal Server Error" on the public root page

Starting $path_to_root/index.php from the command line works as expected, I am receiving PHP errors about a missing main() function. A short PHP script containing a single echo phpinfo(); renders HTML output at the console output.

Offline

#4 2007-05-20 02:08:50

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: "500 Internal Server Error" on the public root page

If I were you, I would contact my host in the appropriate fashion (support ticket, etc). Try running your Txp site as a PHP4 module instead (interim).

Offline

#5 2007-05-20 07:02:48

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,391
Website GitHub Mastodon

Re: "500 Internal Server Error" on the public root page

Sure I would…

Please note that we are not able to provide assistance in debugging
third-party software and you will need to contact the developers or
review the script’s documentation as to a solution for this issue.

Changing to PHP 4 helped.

Last edited by wet (2007-05-20 07:12:02)

Offline

#6 2007-05-20 16:39:30

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: "500 Internal Server Error" on the public root page

wet wrote:

Until recently, the site was working properly. After the home page is hit once, I find a core dump plus an entry in Apache’s error.log stating:

Try turning off the sending of the last modified header. Maybe something is barfing on the http-headers.

Offline

#7 2007-05-20 18:22:25

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,391
Website GitHub Mastodon

Re: "500 Internal Server Error" on the public root page

I think, I can add a little more detail. These are the conditions which lead to a core dump plus a subsequent error “500”:

1. Run the site with PHP 5.2.2
2. Run the site in debugging mode
3. Cause it to print a tag_error error messages like “unknown tag” through tagErrorHandler(), for example by disabling a used plugin

Either running the site with PHP 4.4.7, running the site in ‘live’ or ‘testing’ mode with tag errors, or avoiding error messages at all, produces a normal response. The only notable difference between ‘testing’ and ‘debugging’ mode is a call into get_caller().

I will dig into this a little deeper…

Offline

Board footer

Powered by FluxBB