The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
Installation with IIS Express - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28)
+--- Forum: Documentation (https://userspice.com/forums/forumdisplay.php?fid=30)
+--- Thread: Installation with IIS Express (/showthread.php?tid=220)



Installation with IIS Express - aeh - 08-24-2016

Installs fine using XAMPP, but I get the following error with IIS Express:

Quote:PHP Parse error: syntax error, unexpected end of file, expecting ')' in \users\init.php on line 26

To start the install, I have to 'localhost/site/index.php' with IIS, but just 'localhost/site' with XAMPP as expected.

Thanks.




Installation with IIS Express - aeh - 08-29-2016

I realize this posted in the wrong forum.


Installation with IIS Express - mudmin - 08-29-2016

No Worries. If you've gotten an end of file on line 26 on init.php, then it most definitely was not able to write your init.php file for you. Did it come up as writeable during the first screen of the install process?

Since you've already installed on xampp, you can try copying the entire install over to your iis server and then editing the init.php manually with your proper settings. I've never used IIS. We've tested on a lot of things, but I didn't have one for testing purposes.

I'm interested in hearing how this works out.


Installation with IIS Express - aeh - 08-29-2016

The install page shows all settings to be correct; the database connection step fails.

I tried copying the XAMPP install to IIS Express, resulting in the below error. Both development servers are local, so I didn't make any changes to init.php in this case - this is just for testing.
PHP Fatal error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in site\users\classes\DB.php on line 31


Installation with IIS Express - aeh - 08-29-2016

Got it: I guess my PHP (custom) build for IIS is not compiled with PDO_MYSQL, and my php.ini was not loading php_pdo_mysql.dll. Uncommenting the latter did the trick. Not sure why the installer did not pick this up.


Installation with IIS Express - mudmin - 08-30-2016

There's actually no built in test to see if PDO is installed that works universally, so I sort of had to write a few things that did my best to guess if it was. There's not an exact way of querying that when you don't know what kind of server you're running on ahead of time.