I installed passbolt 2.7.1 on ubuntu 18.04 with mysql and apache 2.4.x
installation, cert registration etc. finished properly
health check is OK
registration of admin user through web UI finished properly
after all, login page still shows 404 errors, example:
GET /passbolt/index.php/passbolt/css/themes/default/api_main.min.css?v=2.7.1
HTTP/1.1 404 Not Found
Same with the
GET /passbolt/index.php/passbolt/js/app/steal.production.js?v=2.7.1 HTTP/1.1
The fullBaseUrl’ is 'https:[servername]/passbolt/index.php
I assume some configuration is missing with the redirect to /var/www/passbolt/webroot/
But there is no proper documentation on this, only some stubs for nginx, not for apache. Any hints?
I suspect that your fullBaseUrl is not correct in your config. It should be https:[servername]/passbolt, and I’d recomment to use a hostname / domain rather than have it in a subdirectory.
Below is an example of an apache configuration for passbolt:
I also tried without the index.php as the apache has the DirectoryIndex already and redirects automatically to it
If I call passbolt with a clean firefox profile with active passbolt addon, the index.php answers with a successful code 302, then it redirects to https://devel.netzwissen.de/passbolt/index.php/passbolt/auth/login. The double …/passbolt/index.php/passbolt/ path is wrong, I believe this is the root cause of the 404s in the UI.
hmmm…
Hostname: up to now I would like to keep the subdir config, only if its NOT possible at all, I would switch to a separate hostname… But I saw installations with subdir, so it should be possible in general.
@Thommie there are some issues with subdir installation. See. https://github.com/passbolt/passbolt_api/issues/252 . If you insist on using a subdir you should remove the directory from fullBaseUrl (as it is added automatically by the framework we use). This will cause issues however in emails for example. It’s better to use a subdomain or different domain name otherwise the overall experience will be impaired.
yep, removing the …/passbolt/ from the fullbaseURL helped. This was the thing that puzzled me: normally the BaseURL of a php app is the full URI path including the subdir… Maybe its better to include an info on this, I see a lot off issues with the fullbaseURL online …
But I understand the problems with the subdirs, I will switch to a subdomain-based setup (e.g. passbolt.netzwissen.de) as soon as possible.