I installed Passbolt 3.1 earlier this year from source to used on my apache server. It worked. I wanted to do the update to have the new features that are really important for me, but it seems I totally ruined my installation.
So i tried to reinstall from source, and then load the DB which is still here but no I’m encountering the following message when running sudo su -s /bin/bash -c “/var/www/passbolt/bin/cake passbolt install --force” www-data
PHP Warning: PHP Startup: Unable to load dynamic library 'gnupg.so' (tried: /usr/lib/php/20180731/gnupg.so (/usr/lib/php/20180731/gnupg.so: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/gnupg.so.so (/usr/lib/php/20180731/gnupg.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Fatal error: You must enable the gnupg extension to use Passbolt. in /var/www/passbolt/config/requirements.php on line 31
I tried many things, it seems gnupg is very well active but that the install script is looking it in the wrong folder. I’m at a loss and I really need to be back up.
I restored a backup of my server from yesterday, so I’m okay on this. But I would like to know how the hell can I upgrade my Passbolt to the latest version
On which operating system did you install your Passbolt instance from source ?
Do you share your server with some other PHP applications ?
Do you have multiple PHP version installed ?
Which PHP version are you using for Passbolt ?
Can you tell me what is the output of this command on your server: php -i | grep gnupg ?
Can you show me the output of sudo update-alternatives --display php ? It will display the different php version installed on your system and the default one.
To use the bin/cake passbolt install command, you must define default php as at least php 7.3. And you also must install the php7.x-gnupg package to get the php gnupg module.
Paramétrage de php7.3-fpm (7.3.31-2+ubuntu20.04.1+deb.sury.org+1) ...
Not replacing deleted config file /etc/php/7.3/fpm/php.ini
NOTICE: Not enabling PHP 7.3 FPM by default.
NOTICE: To enable PHP 7.3 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php7.3-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Job for php7.3-fpm.service failed because the control process exited with error
code.
See "systemctl status php7.3-fpm.service" and "journalctl -xe" for details.
invoke-rc.d: initscript php7.3-fpm, action "restart" failed.
● php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php7.3-fpm.service; enabled; vendor pre
set: enabled)
Active: failed (Result: exit-code) since Fri 2021-11-19 14:36:17 CET; 6ms a
go
Docs: man:php-fpm7.3(8)
Process: 1100500 ExecStart=/usr/sbin/php-fpm7.3 --nodaemonize --fpm-config /
etc/php/7.3/fpm/php-fpm.conf (code=exited, status=78)
Process: 1100528 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run
/php/php-fpm.sock /etc/php/7.3/fpm/pool.d/www.conf 73 (code=exited, status=0/SUC
CESS)
Main PID: 1100500 (code=exited, status=78)
nov. 19 14:36:17 kodi systemd[1]: Starting The PHP 7.3 FastCGI Process Manager..
.
nov. 19 14:36:17 kodi php-fpm7.3[1100500]: [19-Nov-2021 14:36:17] ERROR: failed
to open configuration file '/etc/php/7.3/fpm/php-fpm.conf': No such file or dire
ctory (2)
nov. 19 14:36:17 kodi php-fpm7.3[1100500]: [19-Nov-2021 14:36:17] ERROR: failed
to load configuration file '/etc/php/7.3/fpm/php-fpm.conf'
nov. 19 14:36:17 kodi php-fpm7.3[1100500]: [19-Nov-2021 14:36:17] ERROR: FPM ini
tialization failed
nov. 19 14:36:17 kodi systemd[1]: php7.3-fpm.service: Main process exited, code=
exited, status=78/CONFIG
nov. 19 14:36:17 kodi systemd[1]: php7.3-fpm.service: Failed with result 'exit-c
ode'.
nov. 19 14:36:17 kodi systemd[1]: Failed to start The PHP 7.3 FastCGI Process Ma
nager.
dpkg: erreur de traitement du paquet php7.3-fpm (--configure) :
installed php7.3-fpm package post-installation script subprocess returned error
exit status 1
Des erreurs ont été rencontrées pendant l'exécution :
php7.3-fpm
E: Sub-process /usr/bin/dpkg returned an error code (1)
I think my server is very wanky, it’s my first one so I did a little bit of everything on it