sysPass
sysPass copied to clipboard
Seeing Empty Page while Setting Up on a Shared Hosting with subfolder
sysPass Version sysPass-3.2.11
Describe the question I cannot setup to my subfolder. Installation page shows only header and the footer. I have enabled all the necessary php plugins.
Screenshots
Platform (please complete the following information):
- OS: Using MacOS server is on a Shared Hosting / Linux
- OS Version:
- Chrome
Hello,
I've done a fresh install of sysPass 3.2.11 with docker image (no docker compose), behind a reverse proxy, with a sub-folder. I think sysPass doesn't support that configuration for the moment. So I've made a very simple code fix for using subfolder. While waiting for an evolution of sysPass which allows this configuration.
In file lib/SP/Bootstrap.php, line 390 (function initPaths), change :
self::$WEBURI = $this->request->getHttpHost() . self::$WEBROOT;
by
self::$WEBURI = $this->request->getHttpHost() . '/your_subfolder' . self::$WEBROOT;