Hi,
I've installed the newest MediaWiki release (1.2.4) on a server here at college. It was previously running an older version, but someone accidentally deleted it, so I had to reinstall it.
I'm getting this error in the server log:
[Thu Apr 15 13:35:51 2004] [error] [client 131.111.193.146] malformed header from script. Bad header=HTTP/1.1 301 Moved Permanently: /usr/lib/cgi-bin/srcf-php-handler
and, of course, the browser displays the "Internal Server Error" message. I'm getting the same when the script tries to return a "304 Not Modified".
The server is running PHP 4.1.2 and MySQL 3.23.49. I don't know how to find out the version of Apache; if you need it, please let me know.
Thanks for any help, Timwi
Timwi wrote:
The server is running PHP 4.1.2 and MySQL 3.23.49. I don't know how to find out the version of Apache; if you need it, please let me know.
Your PHP is probably too old. To find out Apache versions, run the apache binary with -v or -V (for compile options); alternatively, unless you've told Apache not to talk about its version, you can just request an inexistent page (yourserver/inexistent.html) and read the standard footer. If neither works - for instance, if the server is not yours - you can telnet to port 80 and issue a HEAD directly; this'll work unless version hiding was explicitly turned on in httpd.conf.
Cheers, Ivan
Ivan Krstic wrote:
Timwi wrote:
The server is running PHP 4.1.2 and MySQL 3.23.49. I don't know how to find out the version of Apache; if you need it, please let me know.
Your PHP is probably too old. To find out Apache versions, [...]
Thanks for your help. I can't upgrade PHP because the server isn't mine, but I have also e-mailed the sysadmins and they managed to get it to work.
In OutputPage.php, line 96, I only needed to change: header( "HTTP/1.0 304 Not Modified" ); to: header( "Status: 304 Not Modified" );
and similarly line 271: header("Status: {$this->mRedirectCode} Moved Permanently");
However, since your way works with never PHPs, it's probably not worth changing in CVS.
Timwi
wikitech-l@lists.wikimedia.org