Reply To: 4.0.0 does not go to install page

Home Forums Installing MintHCM 4.0.0 does not go to install page Reply To: 4.0.0 does not go to install page

#2065
AvatarVincent
Participant

Indeed, it cannot find https://<domain>/api/init. That triggered me, as this should be handled by Apache.

It was a stupid mistake: the hidden files were not moved and thus .htaccess was missing… Normally “mv” ignores hidden files.

Now it gets stuck on the last part of the installation, when it states it should go to the login-page. It shows the rotating “loading” image while the address remains “/#/install”, and then nothing happens. If I manually go the root, then it shows the weird login-page again.

Error in the logs, at the end of the installation:
[Mon Nov 27 21:12:14.888743 2023] [php:warn] [pid 23] [client 172.19.0.4:55556] PHP Warning: file_get_contents(./legacy/.htaccess): Failed to open stream: No such file or directory in /var/www/html/legacy/MintCLI/src/Services/HtaccessService.php on line 13, referer: https://<domain>/

(…)

172.19.0.4 – – [27/Nov/2023:21:06:24 +0000] “GET / HTTP/1.1” 200 593 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:120.0) Gecko/20100101 Firefox/120.0”
[Mon Nov 27 21:06:24.452178 2023] [php:error] [pid 20] [client 172.19.0.4:37172] PHP Fatal error: Uncaught Exception: SuiteCRM is not installed. Entry point needs an installed SuiteCRM, please install first. in /var/www/html/legacy/include/entryPoint.php:63\nStack trace:\n#0 /var/www/html/api/index.php(50): require_once()\n#1 {main}\n thrown in /var/www/html/legacy/include/entryPoint.php on line 63, referer: https://<domain>/

I checked the zip-file and there is no .htaccess there. One was generated during install, but it’s 0 bytes.
-rw-r–r– 1 www-data www-data 0 Nov 27 21:12 .htaccess

To be able to experiment, I have no persistent directories set in Docker. So I’m sure it was clean at the start – it goes to the install-page after restarting the dockers. All files chmod’ed to 755:

/var/www/html# ls -lah
total 228K
drwxr-xr-x 1 www-data www-data 4.0K Nov 27 21:12 .
drwxr-xr-x 1 root root 4.0K Nov 21 14:01 ..
-rwxr-xr-x 1 www-data www-data 533 Nov 27 21:12 .htaccess
drwxr-xr-x 1 www-data www-data 4.0K Nov 17 15:16 .vscode
-rwxr-xr-x 1 www-data www-data 35K Nov 17 15:16 LICENSE
-rwxr-xr-x 1 www-data www-data 229 Nov 17 15:16 MintCLI
-rwxr-xr-x 1 www-data www-data 2.5K Nov 17 15:16 README.md
drwxr-xr-x 1 www-data www-data 4.0K Nov 17 15:16 api
drwxr-xr-x 1 www-data www-data 20K Nov 17 15:16 assets
-rwxr-xr-x 1 www-data www-data 54K Nov 27 21:12 bg.jpg
-rwxr-xr-x 1 www-data www-data 78 Nov 27 20:28 crontab
-rwxr-xr-x 1 www-data www-data 17K Nov 27 21:12 favicon.ico
-rwxr-xr-x 1 www-data www-data 422 Nov 27 21:12 index.html
drwxr-xr-x 1 www-data www-data 4.0K Nov 17 15:16 install
-rw-r–r– 1 www-data www-data 14K Nov 27 21:12 install.log
drwxr-xr-x 1 www-data www-data 4.0K Nov 17 15:16 kanban
drwxrwxrwx 1 www-data www-data 4.0K Nov 27 21:12 legacy
-rwxr-xr-x 1 www-data www-data 86 Nov 17 15:16 package-lock.json
drwxr-xr-x 1 www-data www-data 4.0K Nov 17 15:16 vue