Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 24. Apr 2024, 20:21

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 43 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject:
PostPosted: 15. Mar 2010, 19:30 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Thanks.


Top
 Profile  
 
 Post subject: Well as a next try....
PostPosted: 15. Mar 2010, 19:36 
Offline

Joined: 13. Mar 2010, 22:29
Posts: 55
As a next try other than the code I put in people are actually going into the web.config file and adding this code to <system.webServer> in the web.config file:

<security>
<requestFiltering>
<requestLimits maxAllowedContentLength=”2000000000″ />
</requestFiltering>
</security>

Guess that's my next try when I have time...

Odd because the code I did should have done the same thing I believe? Maybe not in the same place?

%windir%\system32\inetsrv\appcmd.exe set config "Default Web Site" -section:system.webServer/security/requestFiltering /requestLimits.maxAllowedContentLength:"500000000" /commit:apphost


Top
 Profile  
 
PostPosted: 16. Mar 2010, 08:00 
Offline

Joined: 13. Mar 2010, 22:29
Posts: 55
Curious if you know anything about the "ApplicationPool" on IIS7....

Would it be possible that when this fails or "recycles" that it would cause the upload to "retry"


Top
 Profile  
 
 Post subject:
PostPosted: 16. Mar 2010, 09:10 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Never had to do with this before ..


Top
 Profile  
 
 Post subject: Logs
PostPosted: 16. Mar 2010, 16:07 
Offline

Joined: 13. Mar 2010, 22:29
Posts: 55
I checked all the server logs...and I didn't really see anything in there...I tried another upload last night and made it as far as 63MB.....the only thing that had any sort of error was that recycling or shutting down but even it is very unlikely as I didn't see log entries at the time of when I was doing the uploads...


Top
 Profile  
 
 Post subject: Confusing
PostPosted: 25. Mar 2010, 07:02 
Offline

Joined: 13. Mar 2010, 22:29
Posts: 55
This is getting more and more confusing and I'm yanking my hair out over this one.

I had to re-image my server so everything I edited for the upload limit on IIS7 itself was gone which wasn't bad because I tried a new approach all together...I removed the filtering role from IIS7 all together and now I make it to 35mb - 43mb then it does a retry...and I can't find anything in the logs that's stating there is an error going on? I don't know what other limitations there could be other than is there something with Server2008 itself? I doubt it when it comes to uploading files....

I still get a retry every time with the files?

Do you think this is a "timeout" issues on IIS7 itself?


Top
 Profile  
 
 Post subject:
PostPosted: 25. Mar 2010, 09:00 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
It can be sure a timeout issue.

But here I only know the php limits.

- Michael


Top
 Profile  
 
 Post subject: Timeout...
PostPosted: 26. Mar 2010, 07:31 
Offline

Joined: 13. Mar 2010, 22:29
Posts: 55
Well we changed the timeout in IIS7 and removed the filtering role all together...it made it all the way to the end of a 98mb file then the status was...

Status: Error: http - 500


Top
 Profile  
 
 Post subject:
PostPosted: 26. Mar 2010, 10:12 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Is the iss really so bad that is does not say what cause the error 500?

Have you checked the php error log as well?

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 26. Mar 2010, 10:24 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Here is an article how to turn on failed request tracing in IIS7:

http://learn.iis.net/page.aspx/266/trou ... -in-iis-7/

then you should get more information why the upload request failed.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 27. Mar 2010, 12:16 
Offline

Joined: 31. Dec 2008, 00:51
Posts: 33
Location: DE and AT
Hi NBStoragePlus,

received your pn and for others with issues I do my reply here in this thread
first, with IIS7 and PHP I still need to investigate other issues with PHP.
I do not use W2008 and IIS7 in production env. due to problems with the performance of FastCGI.

Regarding your problem I just can tell you it is never an good idea to use PHP for big files upload. You can look arround the world an you will see that a lot of professional sites use ftp or sftp integrated into there Frameworks like Joomla. Or use an Split file function.

I hope you have set the following correct in php.ini
;;;;;;;;;;;;;;;;;;;
; Resource Limits sample for 100MB;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 1000 ; Maximum execution time of each script, in seconds
max_input_time = 1000 ; Maximum amount of time each script may spend parsing request data

; Maximum size of POST data that PHP will accept.
post_max_size = 100M

; Maximum allowed size for uploaded files.
upload_max_filesize = 100M

Check also the permissons to the php related folders for IIS_GUEST_USR
If you use FastCGI than make sure IIS_GUEST_USR has execute permissions for php-cgi.exe
Also have im mind for Big files support you need to edit the META Database for IIS. Best site read for issues with IIS is http://php.iis.net/
http://www.iis.net/

At least the question is, where you use or have integrated the JFU. If in a ASP based Webpage,
- check how to increase up- and download size AspMaxRequestEntityAllowed for ASP in IIS. There are a lot of threads about this. http://www.iis.net/search.aspx?q=upload+size+IIS7
- use an other method as JFU because mixing php with asp is not professional and causes performance problems in IIS.

cheers
Alex


Top
 Profile  
 
 Post subject:
PostPosted: 27. Mar 2010, 21:37 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Hi NBStoragePlus,

I told you to post the link for IIS7:

http://forums.aurigma.com/yaf_postst365 ... -IIS7.aspx

- Michael


Top
 Profile  
 
 Post subject: Thanks...
PostPosted: 30. Mar 2010, 19:28 
Offline

Joined: 13. Mar 2010, 22:29
Posts: 55
Michael...I know about the last link you posted and it did not resolve the issue...

However thank you for the link about failed request tracing in IIS7 I was able to see that this is a CGI issue...that's what's giving me an error..


Top
 Profile  
 
 Post subject: Thanks...
PostPosted: 30. Mar 2010, 19:33 
Offline

Joined: 13. Mar 2010, 22:29
Posts: 55
Thanks for your reply ASCDE...

Funny thing that before I read this message I had just found out about my problems with the performance of FastCGI...as after installing the failed request tracing I was able to see this...

Well php being a bad idea for large uploads is a bummer as this uploader has everything I would need...I was able to easily integrate it with Joomla and it automatically builds directories for each user....just what I was looking for in that aspect and I like the GUI....

I do believe I set everything correctly in the PHP.INI to answer that...

Thank you for the other tips though...I can at least look into these. IIS_GUEST_USR permissions and also I will look into the links you sent.

JFU is on Joomla....so it's all PHP....


Top
 Profile  
 
 Post subject:
PostPosted: 30. Mar 2010, 19:57 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
So you are fixing your cgi problem first now?

- Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 43 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy