The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Use Form Tools with IIS - Help Needed - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: Installation (https://forums.formtools.org/forumdisplay.php?fid=4)
+--- Thread: Use Form Tools with IIS - Help Needed (/showthread.php?tid=22249)



Use Form Tools with IIS - Help Needed - MosheYossef - Mar 13th, 2017

Hello All,
I am trying to use form tools with windows and IIS,
Background: I am testing form tools as a solution for a client that will use it to insert entries (for example, insert all his feedback forms that are physically written on premise) and later be able to check the results.

The client uses windows environment and already has an IIS application installed, so I wanted to use IIS.
I am currently testing on my own Win 10 PC.

I added IIS to my PC, including CGI and health.
I installed php.
I installed MySQL
I then went to IIS maneger, default website, and added a virtual folder to the Form Tools library.
the installation took a little while but it worked out - I can now access Form Tools.

The problem I am facing is when trying to publish. I get a "permissions" problem, telling me the folder for publications is blocked for writing:

"This temporary upload folder specified by your PHP installation is not writable. Until this is fixed, files cannot be uploaded through Form Tools (or any other PHP program). Please contact your hosting provider."

I have tried giving write permissions on the folder to all IIS users, All Application Packages - to no avail.
I have tried replacing the application pool identity to a different user on the pc, also didn't work, also with administrator privileges.

any idea what should be changed?

Thank you


RE: Use Form Tools with IIS - Help Needed - MosheYossef - Mar 15th, 2017

Update:
I created a php file in the folder of the website running "whoami", it seems the user that is returned does not exist anywhere in my pc. It is some kind of default user.
Any idea how to change the user running php?


RE: Use Form Tools with IIS - Help Needed - MosheYossef - Mar 16th, 2017

SOLVED!
ok, I figured it out:
IIS uses Anonymous authentication - you need to set it to a specific user that has writing privileges on the "published" folder (/modules/forms/published).
alternatively you can use the Application Pool identity, in which case you need to make sure it has writing privileges on that directory.
Pay attention that every such solution requires security considerations.

Hope it will help someone else in the future.