Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 10:37 pm EST

Geeklog Forums

Url Rewrite leads to "Internal Server Error"


Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
Url Rewrite has never worked for me in the 1.3.9 release candidates, so I hoped it'd finally work in the final version.

Well, I've just downloaded and installed it and it doesn't.
So since it's the final version, I figure it's time for a post.

When I turn Url Rewrite on and click "read more" in stories, I get a "Internal Server Error" page.
You know, like those you get when you forget to enable "Execute" in CHMOD for CGI files.

Now, while Geeklog's internal error log doesn't display anything about this, my domain's error log does display this:
"Premature end of script headers: /cgi-bin/php"

So what's wrong and will Google ever find my articles? Frown
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by LWC: Url Rewrite has never worked for me in the 1.3.9 release candidates, so I hoped it'd finally work in the final version.

Hope isn't a good concept for getting problems fixed. The release candidates were released so that people could find problems with them and report them.

Quote by LWC: Now, while Geeklog's internal error log doesn't display anything about this, my domain's error log does display this:
"Premature end of script headers: /cgi-bin/php"

Which webserver (Apache 1.3 / 2.0, IIS, ...) are you on? Which version of PHP is runnning there?

bye, Dirk
 Quote

Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
Oops, I meant to mention it:
Apache 1.3.26
PHP 4.3.1

BTW, are there any commands in linux that will display those version numbers without using external perl/PHP scripts?
 Quote

Status: offline

r_f_o_t

Forum User
Full Member
Registered: 07/30/03
Posts: 241
Location:Illinois
Quote by LWC: BTW, are there any command in linux that will display those version numbers without using external perl/PHP scripts?


httpd -v or something like /usr/sbin/httpd -v if it's not in your $PATH

php -v

HTH,

Chuck
Too many hands on my time.
 Quote

Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
Thanks, r_f_o_t!
 Quote

Status: offline

r_f_o_t

Forum User
Full Member
Registered: 07/30/03
Posts: 241
Location:Illinois
You're welcome.

Chuck
Too many hands on my time.
 Quote

Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
Even though it was nice to know the commands, I still haven't got a reply for the original question...

So...anyone?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
No idea, sorry. I haven't heard of a case were it did not work with Apache.

Anything in Apache's error_log (if you have access to it)?

What happens when you put this in a file called test.php
Text Formatted Code
<?php echo $HTTP_SERVER_VARS['PATH_INFO']; ?>
 
and call up the file like

http://yoursite/test.php/blah/blah

bye, Dirk
 Quote

Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
I ran it as "http://mydomain.com/test.php" and got a blank page.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by LWC: I ran it as "http://mydomain.com/test.php" and got a blank page.

Can you please run it again as http://mydomain.com/test.php/blah/blah

bye, Dirk
 Quote

Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
I then got exactly the same error message and error-log entry.

Error message: 500 Internal Server Error
error-log entry: Premature end of script headers: /cgi-bin/php
 Quote

All times are EST. The time is now 10:37 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content