Jump to content

Uploads to php-based "File uploader" time out...


Flapjack

Recommended Posts

Hey everyone.  I'm new to the forums and new to PHP.  I've been using it for about a year, though it's been mostly for canned scripts I download off the internet.  One is a CGI proxy server which has always worked well for me.  The other is a file uploader from a guy nick-named "Celeron Dude".  The version is 6 and seems to work really well for small files, but the problems start with anything over 5MB.  The most anyone has been able to upload is 10MB.

Here is the error message users receive:

[code]CGI Error

The specified CGI application misbehaved by not returning a complete set of HTTP headers.[/code]

I have set my max file sizes in the administrator control panel of the script and also in the php.ini file in the windows directory. 

Here is a little info.  Maybe someone here can help me out, I'm at my wits end:

[b]Server[/b]: Win2k3, locally run, behind firewall
[b]PHP version[/b]: 5.1.2
[b]Script[/b]: http://celerondude.com/php-uploader-v6 (I'm not running the latest build of 6, which is not free)

Here are links to my php.ini and .htaccess files for the uploader (renamed to .txt) with any personal info removed:

http://www.cabuzzi.org/website/temp/php.txt
http://www.cabuzzi.org/website/temp/htaccess.txt

If there is anything that needs to be optimized for large file uploads (more than 20MB), please let me know.  Since I'm also new to php, if there is anything else I should change, I could use a good schooling.  :)

Here are the fields I've edited thinking it may help:

[u]php.ini[/u]
max_execution_time = 3600    ; Maximum execution time of each script, in seconds
max_input_time = 3600 ; Maximum amount of time each script may spend parsing request data
memory_limit = 32M      ; Maximum amount of memory a script may consume (8MB)

I also just changed this to 3600, not sure if it will help, though (my dad says files time out after 8 minutes or so):

; Default timeout for socket based streams (seconds)
default_socket_timeout = 480 (exactly 8 minutes, changed it to 3600)

Hopefully, that does it.  I doubt it, though. 

[u].htaccess[/u]
<IfModule mod_php4.c>
php_value upload_max_filesize 300M
php_value post_max_size 300M
php_value max_execution_time 3600
php_value short_open_tag 1
</IfModule>
Ok, that didn't do the trick either.  When using IE, my dad gets this message:

"The page cannot be displayed
The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings. "

I also went under my IIS settings (since PHP is installed through CGI) and changed the timeout from 20 to 60 minutes.  Doubt if that will have any effect though, since timeouts were happening usually at the 8 minute mark.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.