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 4. Dec 2024, 07:41

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 This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
PostPosted: 9. Dec 2009, 00:27 
Offline

Joined: 6. Dec 2009, 09:55
Posts: 9
Location: Lithuania, Kaunas
Hello! Hey - am I the only fool trying to run TWG on Windows server? :D
I start using TWG v1.7.8.1 on Windows Server 2008 Standard SP2 (IIS7, Flash 10, php v5.2.10). It required few tricks to make it work, and I would like to share them with you. I didn't find all them mentioned here (in forum or faq). I hope I can save someone few hours of googling and head scratching :)
I do believe I'd face with similar problems on w2k3 (IIS6) and solutions should be similar.

1. Allow Double Escaping for gallery site in IIS. Otherwise - folder or image names containing spaces could not display (neither thumbs, nor small or fullsize images)
2. Add php FastCGI *.tmp handler for gallery site in IIS. Otherwise - flash navigation wasn't working (Error: "Unable to load XML Data from")
3. Grant additional permissions on default php upload_tmp_dir (C:\Windows\Temp) or specify another - with appropriate permissions. Otherwise - TFU wasn't working corretly (images were not resized, they were uploaded with strange permissions - accessible only to administrators)

More details:
1. Allow Double Escaping for gallery site in IIS.
Go to your site in IIS Manager > double-click on feature named Request Filtering (features listed in middle pane) > In the righ pane click on action Edit Feature Settings.... Select Allow double escaping checkmark.
P.S. It's possible to change this setting on parent site (Default Web Site). But paranoic M$ says it's compromising security - I chose to enable it only where I really need it.

2. Add php FastCGI *.tmp handler for gallery site in IIS.
Solution was hinted in this forum, but in German (Ich verstehe nicht). Thanks to it and to google translator :)
Go to your site in IIS Manager > double-click on feature named Handler Mappings (from middle pane) > select action Add Module Mapping ... (from right pane):
Request Path: *.tmp
Module: FastCgiModule
Executable (optional): path to php-cgi.exe of your php installation (in my case it's "C:\Program Files\PHP\php-cgi.exe")
Name: Whatever meaningful. e.g. tmp_FastCGI

3. Grant additional permissions on default php upload_tmp_dir (C:\Windows\Temp) or specify another - with appropriate permissions.
When you upload a file, PHP sends the file to a temporary directory on the hard drive (Default usualy is C:\Windows\Temp) and then copies it over to it’s intended directory. Once the file has landed in the temporary directory, it is assigned the permissions of that directory. The problem is when Windows copies that file, it keeps the temporary directory’s permissions and doesn’t inherit your web directory’s permissions. By default only administrators and system has full access on C:\Windows\Temp, users are allowed to execute, write and append (but no read!).
The easiest way to fix this problem is to add to the temporary directory your intended web directory’s permissions.
If you want to change your temporary upload directory, find the “upload_tmp_dir” in your php.ini file and set it to the directory of your choosing (outside your web folders of course), and then add the proper permissions. If I'm not mistaken - IIS service restart required for changes to take effect.
And just so you know, if the two folders were on separate drives, you wouldn’t have this problem, and thus wouldn’t be reading this :)

Enjoy the flight ;)


Last edited by Maskolis on 9. Dec 2009, 01:17, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: 9. Dec 2009, 00:49 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Cool - Pretty good debugging ;).

About 2. This is not needed anymore with the next version (1.8) of TWG because I installed TWG for a client with the same issues.
I have renamed the .tmp files to .xml - So this step is soon not needed anymore.

About 1. and 3. I think you really save a lot of people some time. I will link your post in the FAQ.

Thanks for this very useful post.

- Michael


Top
 Profile  
 
PostPosted: 20. Apr 2018, 17:28 
Offline

Joined: 20. Apr 2018, 17:17
Posts: 1
We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 7.0 running on Microsoft Windows Server 2008. IIS 7.0 significantly increases Web infrastructure security. For more information about IIS security-related topics


Top
 Profile  
 
PostPosted: 7. Feb 2020, 04:55 
Offline

Joined: 6. Feb 2020, 12:47
Posts: 1
Location: Эскорт услуги в Питере
Prostitutas e escoltar St. Petersburg, elite, caro, barato. Anuncios de servicos sexuais e para saloes de sexo em St. Petersburg. https://prostitutki-spb.com/portuguese/

_________________
[url=https://indi-spb.top/]Проститутки Санкт Петербурга[/url] индивидуалки СПб - дешевые и дорогие проститутки СПб, шлюхи Питера, путаны в Санкт-Петербурге. https://indi-spb.top/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 7 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