Lothar
3-23-04, 05:19 AM
Hi all,
At the moment I'm trying to setup a bittorrent tracker, so that subscribers to a piece of software I am writing can get the distribution of it really easily when it's released without hammering the bandwidth on my server. I'm using the bitgrog tracker software (http://www.rumandwater.com/bitgrog) and so far I've managed to get everythign working exactly right, down to mysql access and torrent uploading, except for one little glitch.
When you download the torrent file and load it in your client version of bittorrent, it throws a 500 server error. According to the logs the following is occuring:
[Tue Mar 23 02:07:47 2004] [error] [client 210.11.215.4] Premature end of script headers: /www/y/e/yeggs.net/htdocs/bt/announce
The only thing I can think of as the file is not a known file type to php is that it's not being called properly by the php cgi. However, there is a section in the .htaccess which should fix this, namely:
<Files ~ "^(announce)|(scrape)$">
ForceType application/x-httpd-php
</Files>
- FYI yeggs.net/bt/announce and yeggs.net/bt/scrape are the two php files that control the torrent files once a client loads them. For some reason this line is not working correctly in making the files run like php.
I have also already checked all my chmods and they seem to be correct, in accordance with the readme of the tracker itself. I'm out of ideas, can anyone help?
Edit: Also as an additional note I think I have reasoned that for powwebs cgi type of php, the above mime type (application/x-httpd-php) may not be correct - if this is the case can someone point me in the direction of the correct mime type for getting a non .php extensioned file to act like one?
At the moment I'm trying to setup a bittorrent tracker, so that subscribers to a piece of software I am writing can get the distribution of it really easily when it's released without hammering the bandwidth on my server. I'm using the bitgrog tracker software (http://www.rumandwater.com/bitgrog) and so far I've managed to get everythign working exactly right, down to mysql access and torrent uploading, except for one little glitch.
When you download the torrent file and load it in your client version of bittorrent, it throws a 500 server error. According to the logs the following is occuring:
[Tue Mar 23 02:07:47 2004] [error] [client 210.11.215.4] Premature end of script headers: /www/y/e/yeggs.net/htdocs/bt/announce
The only thing I can think of as the file is not a known file type to php is that it's not being called properly by the php cgi. However, there is a section in the .htaccess which should fix this, namely:
<Files ~ "^(announce)|(scrape)$">
ForceType application/x-httpd-php
</Files>
- FYI yeggs.net/bt/announce and yeggs.net/bt/scrape are the two php files that control the torrent files once a client loads them. For some reason this line is not working correctly in making the files run like php.
I have also already checked all my chmods and they seem to be correct, in accordance with the readme of the tracker itself. I'm out of ideas, can anyone help?
Edit: Also as an additional note I think I have reasoned that for powwebs cgi type of php, the above mime type (application/x-httpd-php) may not be correct - if this is the case can someone point me in the direction of the correct mime type for getting a non .php extensioned file to act like one?