I'm running phpwiki-1.3.11p1. For small files, upload seems to work fine. For larger files (like a 16M file that just failed), the system appears to be uploading for about 20 minutes, but then quits. This is on a 128kbps IDSL line, so 16M should take maybe 17 minutes (plus overhead). Looking in the upload directory, I find no evidence of the file. I've set the max upload file size in the phpwiki config to 50M. phpinfo() says the max file upload size is 50M and the max execution time is 1800 seconds (30 minutes). What am I missing?
THANKS!
Harold
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
the max. upload size is not only limited by the value you have set it to within your phpwiki. it's also limited by max the server: upload_max_filesize (at least in php 4.3.9, but i think this has existed for longer ...). you can check that with this little piece of code:
<?php
phpinfo();
?>
copy (just these lines) into a new document, call it anyname.php, save it to your webspace, open the url in a webbrowser.
stefan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm running phpwiki-1.3.11p1. For small files, upload seems to work fine. For larger files (like a 16M file that just failed), the system appears to be uploading for about 20 minutes, but then quits. This is on a 128kbps IDSL line, so 16M should take maybe 17 minutes (plus overhead). Looking in the upload directory, I find no evidence of the file. I've set the max upload file size in the phpwiki config to 50M. phpinfo() says the max file upload size is 50M and the max execution time is 1800 seconds (30 minutes). What am I missing?
THANKS!
Harold
Is it possible that you're hitting a memory limit?
OK, We're on to something here. This is in the httpd error_log:
PHP Warning: POST Content-Length of 16532065 bytes exceeds the limit of 8388608 bytes in Unknown on l
ine 0, referer: .../UploadPages
Now, the question is, where is that low limit coming from? phpinfo() says: "upload_max_filesize 50M 50M"
Viewing the source from the upload page, I find "<input type="hidden" name="MAX_FILE_SIZE" value="50000000" /><input name="userfile" type="file" size="50" /> <input value="Upload" type="submit" />"
So, where is the limit of 8388608 coming from?
THANKS!
Harold
there is a post_max_size and upload_max_filesize in the php.ini of your server. you need root permissions or good contacts to your serveradmin ...
EXCELLENT! I missed post_max_size. All works now!
THANKS!
Harold
That doesn't seem to be it. Just increased from 80M to 200M and it still seems to give up after 20 minutes. More ideas?
Harold
Are there any errors in the web server logs around the time when the transfer fails?
the max. upload size is not only limited by the value you have set it to within your phpwiki. it's also limited by max the server: upload_max_filesize (at least in php 4.3.9, but i think this has existed for longer ...). you can check that with this little piece of code:
<?php
phpinfo();
?>
copy (just these lines) into a new document, call it anyname.php, save it to your webspace, open the url in a webbrowser.
stefan
Also just increased max_execution_time to 3600 (and it's properly reported by phpinfo(). The upload still quits in 20 minutes...
Harold