emre
Posts: 3
Joined: Mon Jan 24, 2022 5:26 am

How to set a response buffer limit for a IIS handler?

Hi,

I am using Advanced Installer 19.0. We are trying to set a response buffer limit for the PHP handler. I use it through FastCGI. On IIS Manager, I can modify this value using the configuration editor as the following image.
confeditor.png
confeditor.png (56.82 KiB) Viewed 3212 times
colleditor.png
colleditor.png (113.49 KiB) Viewed 3212 times
I tried to set it using a custom action by running

Code: Select all

appcmd.exe set config "WebsiteName" -section:system.webServer/handlers /[name='HandlerName'].responseBufferLimit:"0" 
The problem is, when we define a handler using Advanced Installer's Application Mapping window, we can not define a name for the handler, and there is no variable to hold the handler name that defined by Advanced Installer. So it didn't solve the problem. And I am not editing a property, I am editing a collection item property, so I can not use Advanced Installer's custom properties feature. Can you recommend a workaround or solution to set the response buffer limit? Thank you.
Catalin
Posts: 6584
Joined: Wed Jun 13, 2018 7:49 am

Re: How to set a response buffer limit for a IIS handler?

Hello and welcome to our forums,

I am not quite sure I fully understand your scenario.

Could you please try to follow the steps presented in the screenshots below and let me know if that helps?
image.png
image.png (88.65 KiB) Viewed 3171 times
image (1).png
image (1).png (113.57 KiB) Viewed 3171 times


Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
emre
Posts: 3
Joined: Mon Jan 24, 2022 5:26 am

Re: How to set a response buffer limit for a IIS handler?

Hi,

To summarize things, I can not modify the value of the responseBufferLimit when I create a new application mapping on Advanced Installer. It would be awesome if we could modify it using this window:
Screenshot 2022-01-31 010444.png
Screenshot 2022-01-31 010444.png (45.88 KiB) Viewed 3158 times
Catalin
Posts: 6584
Joined: Wed Jun 13, 2018 7:49 am

Re: How to set a response buffer limit for a IIS handler?

Hello Emre,

Thank you for your explanation.

I have discussed with our developer and your request is indeed valid.

I will add it on our TODO list of improvements and hopefully it will be available in a future version of Advanced Installer.

Until then, here would be a workaround for your scenario:

Basically, when a new Application Mapping is created, we automatically name it according to the following logic:

Code: Select all

CustomMapping-[extension]
In your case, that would be:

Code: Select all

CustomMapping-php
If more mappings are created for the same extension, we add numbers to it, so the name is unique, e.g.:

Code: Select all

CustomMapping0-php
CustomMapping1-php
etc.
With that being said, the workaround for you would be calling the appcmd.exe, as it follows:

Code: Select all

appcmd.exe set config "MyPhpTrial" -section:system.webServer/handlers /[name='CustomMapping-php'].responseBufferLimit:"1234"
Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
emre
Posts: 3
Joined: Mon Jan 24, 2022 5:26 am

Re: How to set a response buffer limit for a IIS handler?

Hi,

Sounds great, this approach will solve my problem. Thank you for the feedback and your time!
Catalin
Posts: 6584
Joined: Wed Jun 13, 2018 7:49 am

Re: How to set a response buffer limit for a IIS handler?

You are always welcome!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”