jagenjo / litefilesystem.js

Library with client (js) and serverside (php) to have a filesystem with previews, quotas, metadata, and multiple users with privileges.
MIT License
147 stars 49 forks source link

Installation on Windows failing #7

Open KnightCoder opened 4 years ago

KnightCoder commented 4 years ago

I am getting the following error when trying to install.

php install.php

 + config.php found, testing database connection
PHP Notice:  Undefined index: folder in D:\Program Files\LiteFilesystem\src\include\modules\files.php on line 26
 + Database connection established
PHP Fatal error:  Uncaught Error: Call to undefined function posix_getgrgid() in D:\Program Files\LiteFilesystem\src\include\modules\system.php:220
Stack trace:
#0 D:\Program Files\LiteFilesystem\src\install.php(143): SystemModule->checkReady()
#1 {main}
  thrown in D:\Program Files\LiteFilesystem\src\include\modules\system.php on line 220
 - Code: 1 "Uncaught Error: Call to undefined function posix_getgrgid() in D:\Program Files\LiteFilesystem\src\include\modules\system.php:220
Stack trace:
#0 D:\Program Files\LiteFilesystem\src\install.php(143): SystemModule->checkReady()
#1 {main}
  thrown" File: D:\Program Files\LiteFilesystem\src\include\modules\system.php Ln: 220

Please help me fix this.

liupucn commented 4 years ago

这个问题解决了吗

KnightCoder commented 4 years ago

I simply commented this line and so far it doesn't seem to have any issue on windows.

atlasan commented 3 years ago

Wrapped that block with if (strtoupper(substr(PHP_OS, 0, 3)) != 'WIN'){ and same for the file install.php Ln: 154

Additionally I added if (isset($_REQUEST["folder"])) on include\modules\files.php line 26 to solve the last error while calling install.php

EDIT: not getting error, was not clear to me what todo next .. I looked again and launched with force, so I had to fix another issue (https://github.com/jagenjo/litefilesystem.js/issues/12) and than I could login successfully