Good morning, I have installed Passolt CE following the official guide “From source code” and when I have tried to follow the given link to complete administrator sign up, apache gave me a 404 error.
I have been searching for my problem through this forum and Google and I have found some similar cases a few years ago but the solutions don’t work with me (because some of them where on Nginx).
I have the last version of Passbolt CE installed following the “From source code” guide from official page in Debian 10, with Apache v2.4.38, MariaDB v.10.3.27 and PHP v7.3.
Here is the healthcheck command response:
diegosr@termin-debvps:~/domains/pbt.diegosr.es/public_html$ /bin/bash -c “./bin/cake passbolt healthcheck” diegosr
____ __ ____
/ __ \____ _____ ____/ /_ ____ / / /_
/ /_/ / __ `/ ___/ ___/ __ \/ __ \/ / __/
/ ____/ /_/ (__ |__ ) /_/ / /_/ / / /
/_/ \__,_/____/____/_.___/\____/_/\__/
Open source password manager for teams
---------------------------------------------------------------
Healthcheck shell
---------------------------------------------------------------
Environment
[PASS] PHP version 7.3.27-1~deb10u1.
[PASS] PCRE compiled with unicode support.
[PASS] The temporary directory and its content are writable.
[PASS] The public image directory and its content are writable.
[PASS] The logs directory and its content are writable.
[PASS] GD or Imagick extension is installed.
[PASS] Intl extension is installed.
[PASS] Mbstring extension is installed.
Config files
[PASS] The application config file is present
[PASS] The passbolt config file is present
Core config
[PASS] Debug mode is off.
[PASS] Cache is working.
[PASS] Unique value set for security.salt
[PASS] Full base url is set to https://pbt.diegosr.es
[PASS] App.fullBaseUrl validation OK.
[FAIL] Could not reach the /healthcheck/status with the url specified in App.fullBaseUrl
[HELP] Check that the domain name is correct in config/passbolt.php
[HELP] Check the network settings
SSL Certificate
[FAIL] SSL peer certificate does not validate
[FAIL] Hostname does not match when validating certificates.
[WARN] Using a self-signed certificate
Database
[PASS] The application is able to connect to the database
[PASS] 25 tables found
[PASS] Some default content is present
[PASS] The database schema up to date.
GPG Configuration
[PASS] PHP GPG Module is installed and loaded.
[PASS] The environment variable GNUPGHOME is set to /home/diegosr/.gnupg.
[PASS] The directory /home/diegosr/.gnupg containing the keyring is writable by the webserver user.
[PASS] The server gpg key is not the default one
[PASS] The public key file is defined in config/passbolt.php and readable.
[PASS] The private key file is defined in config/passbolt.php and readable.
[PASS] The server key fingerprint matches the one defined in config/passbolt.php.
[PASS] The server public key defined in the config/passbolt.php (or environment variables) is in the keyring.
[PASS] There is a valid email id defined for the server key.
[PASS] The public key can be used to encrypt a message.
[PASS] The private key can be used to sign a message.
[PASS] The public and private keys can be used to encrypt and sign a message.
[PASS] The private key can be used to decrypt a message.
[PASS] The private key can be used to decrypt and verify a message.
[PASS] The public key can be used to verify a signature.
Application configuration
[PASS] Using latest passbolt version (3.0.1).
[PASS] Passbolt is configured to force SSL use.
[PASS] App.fullBaseUrl is set to HTTPS.
[PASS] Selenium API endpoints are disabled.
[PASS] Search engine robots are told not to index content.
[PASS] Registration is closed, only administrators can add users.
[PASS] Serving the compiled version of the javascript app
[PASS] All email notifications will be sent.
3 error(s) found. Hang in there!
Originally there were 4 errors (the Application Configuration > App.fullBaseUrl is set to HTTPS was fail) but as I saw searching for my problem, someone had reported an error on “src/Utility/Healthchecks.php” file at line 83 (more or less) regarding to the change of “$checks[‘application’][‘sslFullBaseUrl’] = ($https === false);” to “$checks[‘application’][‘sslFullBaseUrl’] = ($https !== false);”
This is my apache site.conf file (that was generated by Virtualmin and where I have added some headers that I have found recommended):
<VirtualHost 161.97.163.96:80>
SuexecUserGroup "#1000" "#1000"
ServerName pbt.diegosr.es
DocumentRoot /home/diegosr/domains/pbt.diegosr.es/public_html
ErrorLog /var/log/virtualmin/pbt.diegosr.es_error_log
CustomLog /var/log/virtualmin/pbt.diegosr.es_access_log combined
ScriptAlias /cgi-bin/ /home/diegosr/domains/pbt.diegosr.es/cgi-bin/
DirectoryIndex index.php index.php4 index.php5 index.htm index.html
<Directory /home/diegosr/domains/pbt.diegosr.es/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
AddType application/x-httpd-php .php
AddHandler fcgid-script .php
AddHandler fcgid-script .php7.3
FCGIWrapper /home/diegosr/domains/pbt.diegosr.es/fcgi-bin/php7.3.fcgi .php
FCGIWrapper /home/diegosr/domains/pbt.diegosr.es/fcgi-bin/php7.3.fcgi .php7.3
</Directory>
<Directory /home/diegosr/domains/pbt.diegosr.es/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
</Directory>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
Header always set Content-Security-Policy "upgrade-insecure-requests;"
RemoveHandler .php
RemoveHandler .php7.3
FcgidMaxRequestLen 1073741824
</VirtualHost>
<VirtualHost 161.97.163.96:443>
SuexecUserGroup "#1000" "#1000"
ServerName pbt.diegosr.es
DocumentRoot /home/diegosr/domains/pbt.diegosr.es/public_html
ErrorLog /var/log/virtualmin/pbt.diegosr.es_error_log
CustomLog /var/log/virtualmin/pbt.diegosr.es_access_log combined
ScriptAlias /cgi-bin/ /home/diegosr/domains/pbt.diegosr.es/cgi-bin/
DirectoryIndex index.php index.php4 index.php5 index.htm index.html
<Directory /home/diegosr/domains/pbt.diegosr.es/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
Options FollowSymLinks MultiViews
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
AddType application/x-httpd-php .php
AddHandler fcgid-script .php
AddHandler fcgid-script .php7.3
FCGIWrapper /home/diegosr/domains/pbt.diegosr.es/fcgi-bin/php7.3.fcgi .php
FCGIWrapper /home/diegosr/domains/pbt.diegosr.es/fcgi-bin/php7.3.fcgi .php7.3
</Directory>
<Directory /home/diegosr/domains/pbt.diegosr.es/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
SSLOptions +StdEnvVars
</Directory>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
Header always set Content-Security-Policy "upgrade-insecure-requests;"
RemoveHandler .php
RemoveHandler .php7.3
FcgidMaxRequestLen 1073741824
SSLEngine on
SSLCertificateFile /home/diegosr/ssl/cert.pem
SSLCertificateKeyFile /home/diegosr/ssl/privkey.pem
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
SSLCACertificateFile /home/diegosr/domains/pbt.diegosr.es/ssl.ca
Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
Header always set X-Frame-Options DENY
Header always set X-Content-Type-Options nosniff
</VirtualHost>
Thank you for attending me and I hope we can get a solution for my problem.