Hi - I have Nextcloud installed and the PHP versions from the php_scl repository, and it all works well (thank you
But … the Password app now requires PHP 7.3. I have searched docs and cannot see how to get Nexcloud to use PHP 7.3. I have not looked in the config files yet.
Also - the new cockpit webadmin pages only recognise PHP 5.6 and PHP 7.2. The old one lets me specify 7.3 for a virtual host as well. I guess that should be a new topic
Anyway - like to keep my password manager on a supported version of PHP. Can’t live without it now
That does not address the issue. It does have information on how to run the Nextcloud occ utility using a specific php version, but not how to get apache to use a specific php version to run Nextcloud.
I suspect the answer will be to change this part of the zz-nextcloud.conf:
Sorry for the wrong information.
Did you install php_scl from @stephdl? If you do so, you can choose a php-version for each virtual host. Don’t have nextcloud installed at the moment, but I think it should be a virtual host.
I have the stephdl repository enabled and 7.3 installed from there.
My installation may not be standard - I had Nextcould installed manually, then installed the nethserver-nextcloud module and shifted stuff to that. The Nextcloud vhost is listed in the Nethserver management console, but is disabled. The virtual host is instead configured with /etc/httpd/conf.d/zz_nextcloud.conf (or similar …). So it is not possible to set the php version in the virtual host settings.
The error only occurs in the Nextcloud Password module. The module itself appears to work correctly …
The administrators page says php 7.3 is required, but the main gitlab page says 7.2.
yes I saw…technically in the /etc/httpd/conf.d/zz_nextcloud.conf you can use with a custom-template whatever php version you want, modify accordingly the vhost…
I tested it and it works as expected. There’s no more PHP warning in the Nextcloud passwords app. For testing I connected by port instead of sock like @Don_Robertson explained here.
I just edited /etc/httpd/conf.d/zz_nextcloud for testing but you may consider using a custom template. Don’t forget to undo these changes when the module is released.
On the Nextcloud settings page you’ll see that some settings are not configured correctly. Usually nextcloud uses an own php73 instance. Maybe it’s better to revert the changes and wait for the release.
Or you apply the settings to php.ini that is located in /etc/opt/rh/rh-php73/php.ini