Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » error 500

#1 2008-10-22 09:41:50

jens31
Plugin Author
From: munich / dtschermani
Registered: 2008-08-25
Posts: 183
Website

error 500

high.

i have one problem with bigger files (30mb+) in txp.
i upload them via ftp and integrate them into txp, but get the error 500 (internal server error, plaese check back later..) mess, when using the textile/textpattern/xhtml link to the file.
so, at least, this happens, when the link gets rerouted via
url/file_download/#/file

if i link the file analog, the problem just doesnt occur.
url/files/file

any ideas?

also the error 500 message is generated by the provider (1und1.de)
its not the tpx:error_page showing up..

Last edited by jens31 (2008-10-22 10:12:29)

Offline

#2 2008-10-22 12:05:56

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,357
Website GitHub Mastodon

Re: error 500

Any chance you could get the web server’s error log when such an event occurs? The most probable reason is that execution time hits a limit, while the whole large file is sent to the client by Textpattern PHP code.

In case 1und1 supports custom php.ini values in the hosting plan you use, adding this line to your websites root folder’s .htaccess file would eventually help:

php_value max_execution_time 300

Offline

#3 2008-10-23 15:49:33

jens31
Plugin Author
From: munich / dtschermani
Registered: 2008-08-25
Posts: 183
Website

Re: error 500

hmmm.
if i do so the whole site goes:
<quote>
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webadmin@kundenserver.de and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
</quote>

on the other hand the dude at 1und1 told me to look up the error between this code:
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d

the whole htaccess looks like this:
RewriteEngine On
RewriteRule ^$ index.html [L]
RewriteCond %{REQUEST_URI} ^/2006 [OR]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) /index.php

any other ideas?

Last edited by jens31 (2008-10-23 15:50:36)

Offline

#4 2008-10-26 13:43:18

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

Re: error 500

Hmm… you may want to check your webserver error logs. Perhaps PHP isn’t running as a module on your server, but using (Fast)cgi instead.

Letting visitors download files through Textpattern has just one advantage: you can use TXP to count how many times a files was downloaded.
The downside is that using TXP for this task, especially when serving such large files, is terribly inefficient and as Robert already indicated, you’re probably running into a timeout limit.

If you don’t need to count number of downloads, move the directory where the files are stored so it matches the download URLs that TXP creates. That way you can use TXP built in tags to create a list of files, but the files themselves can be downloaded directly, without using TXP.

Offline

  1. Index
  2. » Archives
  3. » error 500

Board footer

Powered by FluxBB