Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-12-25 10:30:40
- jstur8jv
- Member
- Registered: 2006-12-23
- Posts: 23
Problem downloading large files through textpattern
I uploaded a large file manually, then added it to the files section. It won’t download, and instead returns a server error.
I tried messy and clean URLs. No change.
I uploaded a smaller file; it downloads fine, also both with messy and with clean urls.
View the problem at this link:
http://elisetobin.com/textpattern/movies/?c=Short-Films-2006
Foobar downloads; the test video file doesn’t. They’re both being listed by
<txp:file_download_list />
A direct link to the larger file works fine:
http://elisetobin.com/textpattern/files/video%20test2.mp4
Any thoughts?
Notes: my host is 1and1
Diagnostics:
Textpattern version: 4.0.4 (r1956)
Last Update: 2006-12-20 20:39:02/2006-12-20 17:32:44
Document root: /kunden/homepages/1/d190744848/htdocs (/homepages/1/d190744848/htdocs)
$path_to_site: /homepages/1/d190744848/htdocs/textpattern
Textpattern path: /homepages/1/d190744848/htdocs/textpattern/textpattern
Permanent link mode: section_title
Temporary directory path: /homepages/1/d190744848/htdocs/textpattern/textpattern/tmp
Site URL: elisetobin.com/textpattern
PHP version: 4.4.4
Register globals: 1
Server Local Time: 2006-12-25 05:31:42
MySQL: 4.0.27-standard-log
Locale: en_US.UTF-8
Server: Apache/1.3.33 (Unix)
PHP Server API: cgi
RFC 2616 headers:
Server OS: Linux 2.4
Active plugins: ign_password_protect-0.4.2d, glx_admin_image-2006.1am, asy_wondertag-0.5, upm_image-0.5.2
.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
RewriteBase /textpattern/
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php </IfModule>#php_value register_globals 0
————————————
Last edited by jstur8jv (2006-12-25 10:31:54)
Offline
Re: Problem downloading large files through textpattern
THe PHP-Process(CGI) dies and apache shows a standard 500 server error message. To torubleshoot the problem, we would need a php error message. If you have access to PHP-error-logs, please check there. Otherwise get in contect with your host.
There is no inherent problem in textpattern, as even large filedownloads usually work without problems. So it could be some limits or restrictions from the hosting environment.
Offline
#3 2006-12-25 13:23:40
- jstur8jv
- Member
- Registered: 2006-12-23
- Posts: 23
Re: Problem downloading large files through textpattern
Success!
I searched for php and cgi problems related to 1and1, and discovered the following thread:
http://forum.joomla.org/index.php/topic,75990.msg467875.html
Adding a line to my .htaccess file to force php script to run through php 5 instead of php 4.4 fixed the problem.
The line I added was:
AddType x-mapp-php5 .php
Could this be added to the faq section? It might be helpful to anyone on 1and1 or a provider with a similarly wanky environment.
Last edited by jstur8jv (2006-12-25 13:24:32)
Offline
#4 2006-12-25 22:45:21
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Problem downloading large files through textpattern
Could this be added to the faq section? It might be helpful to anyone on 1and1 or a provider with a similarly wanky environment.
What exactly is the problem that is solved, and how does the solution work?
Alex
Offline
#5 2006-12-26 07:24:35
- jstur8jv
- Member
- Registered: 2006-12-23
- Posts: 23
Re: Problem downloading large files through textpattern
Zem, I’m sorry I don’t know the answer to that question. I can describe the situation (see first post), but I don’t know what the relevant errors were.
1and1 seems to be one of the larger hosts, so I’m guessing that at some point, someone else will come across the same problem if they are trying to use textpattern’s file manager.
I do not know why forcing textpattern to run through php5 instead of php4 had any effect.
If you know of a way to obtain a php error log (1and1 doesn’t allow access to them) for the process, I’d be happy to do what I can to get you more specific information.
I took down that section of the site shortly after I got it working. Would you like me to put it back again for you to look at?
Offline
#6 2006-12-26 22:28:26
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Problem downloading large files through textpattern
If you can give us some specific information, I’d be happy to include it in the FAQ. As it stands, neither the problem nor the solution are clear enough.
Alex
Offline
#7 2006-12-26 23:00:26
- jstur8jv
- Member
- Registered: 2006-12-23
- Posts: 23
Re: Problem downloading large files through textpattern
Perhaps a generic statement that textpattern works in php4 and php5, and if there are any conflicts with your hosts set-up of one or the other, alter the .htaccess to run textpattern exclusively through the one without any problems?
If not, that’s fine too. I could see how a vague problem with a solution that isn’t understood all too well would be a poor candidate for FAQ inclusion.
Offline
#8 2006-12-27 11:21:35
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Problem downloading large files through textpattern
It looks like 1and1 may have fudged up something, or perhaps there is a bug or two in the particular PHP version being used. I did a Google search and it appears people are having problems with various PHP programs (Joomla, WordPress) and that particular host.
I’d rather direct people to getting on their host to finding and fixing the problem, rather than recommending working around it yourself. 1&1 appears to believe PHP4 is working fine, so I would let them know that it is not.
- 1&1 FAQ: “How do I install WordPress?”:“http://faq.1and1.com/scripting_languages_supported/php/13.html
- 1&1 FAQ: “
What do I need to consider if I want to use PHP 5?”:http://faq.1and1.com/scripting_languages_supported/php/9.html
Offline