php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28666 500 Internal server error (on more than one mirror)
Submitted: 2004-06-07 08:37 UTC Modified: 2005-09-06 15:56 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: php dot mirror at camelnetwork dot com Assigned:
Status: Closed Package: Website problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php dot mirror at camelnetwork dot com
New email:
PHP Version: OS:

 

 [2004-06-07 08:37 UTC] php dot mirror at camelnetwork dot com
Description:
------------
We had a user send an email informing us that the page:
http://uk2.php.net/manual/en/ref.var.php
Returns an "500 Internal Server Error"

I have tried removing the file and re-syncing with little success.

In the error log we have:
[Mon Jun 07 06:23:44 2004] [error] [client 213.230.200.234] Syntax error in type map, no ':' in /var/www/localhost/htdocs/manual/en/ref.var.php for header <?php \n


Expected result:
----------------
http://uk2.php.net/manual/en/ref.var.php To produce std webpage.

Actual result:
--------------
On some mirrors it produces an "500 Internal Server" error.
I've checked some other mirrors (from  kr.php.net down) and the ones that produce error pages are:
"kr,kr2,lt,lt2,lu,ru3,sg,sg2,sk,uk,uk2,za,za2" 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-09 15:27 UTC] goba@php.net
Seems like you have some module, which tries to find a matching mime type for '.var' and the first bytes of the file, but is unable to. I am not sure in this though. Some other mirrors had /manual/en/faq.html.php returned as HTML for a similar reason.

In case you find out how to fix this, we would be more than happy to include notes in the mirroring instructions to prevent this error in the future.
 [2004-06-09 17:43 UTC] toni dot viemero at iki dot fi
This bug is related to the one I reported in #28272
 [2005-02-01 03:35 UTC] mark at campbellsclan dot com
This problem is caused by this line in httpd.conf

AddHandler type-map var

This match is too loose and matches php doc ref.var.html when it seems to be intended to match only docs ending in .var

I altered the line to 

AddHandler type-map !.var

Which forces the comparison to the EOL and it solved the problem.
 [2005-02-01 14:15 UTC] rombar at gmail dot com
Read Setup Apache VirtualHost in
http://www.php.net/mirroring.php page:

# Apache2 has 'AddHandler type-map var' enabled by default.
# Remove the comment sign on the line below if you have it enabled.
# RemoveHandler var

So you should put in php.net mirror virtual line:
RemoveHandler var

It resolves that issue.

regards
Roman Barczynski
 [2005-09-06 15:56 UTC] sniper@php.net
Seems to be fixed now.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 20:01:30 2024 UTC