Checklist
[] I have read intro post: About the Installation Issues category
[] I have read the tutorials, help and searched for similar issues
[] I provide relevant information about my server (component names and versions, etc.)
[] I provide a copy of my logs and healthcheck
[ ] I describe the steps I have taken to trouble shoot the problem
[ ] I describe the steps on how to reproduce the issue
Hi All,
Complete rookie for Ubuntu & LAMP here,
I have been following this tutorial on the passbolt setup:
.linuxhowto.net/how-to-install-passbolt-password-manager-on-ubuntu-20-04-server/
And have reached Step 5: Run the install script,
When I try running sudo su -s /bin/bash -c “./bin/cake passbolt install --force” www-data
I get the following errors:
isdadmin@sukpeprdpass01:/var/www/passbolt$ sudo su -s /bin/bash -c “./bin/cake passbolt ins tall --force” www-data
Warning Error: /var/www/passbolt/tmp/cache/persistent/ is not writable in [/var/www/passbol t/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php, line 446]
PHP Warning: file_put_contents(/var/www/passbolt/logs/cli-error.log): failed to open strea m: Permission denied in /var/www/passbolt/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 133
Warning Error: /var/www/passbolt/tmp/cache/models/ is not writable in [/var/www/passbolt/ve ndor/cakephp/cakephp/src/Cache/Engine/FileEngine.php, line 446]
PHP Warning: file_put_contents(/var/www/passbolt/logs/cli-error.log): failed to open strea m: Permission denied in /var/www/passbolt/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 133
Warning Error: cake_model cache was unable to write ‘default_organization_settings’ to Ca ke\Cache\SimpleCacheEngine cache in [/var/www/passbolt/vendor/cakephp/cakephp/src/Cache/Cac he.php, line 306]
PHP Warning: file_put_contents(/var/www/passbolt/logs/cli-error.log): failed to open strea m: Permission denied in /var/www/passbolt/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 133
____ __ ____
/ __ \____ _____ ____/ /_ ____ / / /_
/ // / __ `/ / / __ / __ / / _/
/ / // ( | ) // / // / / /
// _,///./_//__/
Open source password manager for teams
Running baseline checks, please wait…
The GPG keyring location is not set.
Please run ./bin/cake passbolt healthcheck for more information and help.
I then did a health check and this is the result:
isdadmin@sukpeprdpass01:/var/www/passbolt$ ./bin/cake passbolt healthcheck
____ __ ____
/ __ \____ _____ ____/ /_ ____ / / /_
/ // / __ `/ / / __ / __ / / _/
/ / // ( | ) // / // / / /
// _,///./_//__/
Open source password manager for teams
Healthcheck shell
Environment
[PASS] PHP version 7.4.3.
[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://passbolt.isd-nr.idealshoppingdirect.co.uk
[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
[HELP] cURL Error (7) Failed to connect to .passbolt.isd-nr.idealshoppingdirect.co.uk port 443: Connection refused
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/isdadmin/.gnupg.
[PASS] The directory /home/isdadmin/.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.1.0).
[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!
Is this an issue with www-data permissions to those php directories?
I’m completely new to this and would appreciate any guidance at all,
Kind regards,
Jack.