Nextcloud passwords PHP 7.2.24 is no longer supported. Please check the system requirements

NethServer Version: 7.7.1908
Module: your_module

Hi - I have Nextcloud installed and the PHP versions from the php_scl repository, and it all works well (thank you :slight_smile:

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 :slight_smile:

Anyway - like to keep my password manager on a supported version of PHP. Can’t live without it now :slight_smile:


Please have a look at the following wiki page, I think you can do it also with php 7.3.

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:

<FilesMatch \.php$>
  SetHandler "proxy:fcgi://"

but the template /etc/e-smith/templates/etc/httpd/conf.d/zz_nextcloud.conf/10base has

<FilesMatch \.php$>
      SetHandler "proxy:unix:/var/run/rh-php72-php-fpm/nethserver-nextcloud-php72.sock|fcgi://localhost/"

so not sure what is going on. I’ll try to take a look later today - but about to pick up my four year old so … maybe monday.

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.

For now only rh-php72 is available for nextcloud, I think a new version is maybe in a beta or a RC stage in the software collection

It is not relevant with my php module

1 Like

php 7.3 is not listed on SCL web page but available on main SCL repo (same packages as in rh-php72 except rh-php7*-php-pecl-xdebug).

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.

indeed :slight_smile:

rh-php73 x86_64 1-1.el7 ce-sclo-rh 4.4 k

maybe we could start to integrate it to nethserver-virtualhosts

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 finished deploying my servers and are now on production use.

i heavily rely on nextcloud passwords, (till i find better alternative

when can we have the rh-php73 added into nethserver and subsequently integration into nextcloud?

working currently on it, the PR is in approval state

to use nexctloud & rh-php73, I do not know but you could do it eventually yourself and report what we break

ok, once approved, let me know so that i may test it and report if it works, or if something breaks.

this will help me get back to using passwords fro nextcloud

1 Like

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.

1 Like

so @mrmarkuz what do i need to do to enable the components.


yum install

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.

<FilesMatch \.php$>
      # SetHandler "proxy:unix:/var/run/rh-php72-php-fpm/nethserver-nextcloud-php72.sock|fcgi://localhost/"
      SetHandler "proxy:fcgi://"

do i change this part to rh-php73-php-fpm

forgive me for lack of clear understanding.

No, I commented out the first line, nothing to change there.
Only the SetHandler "proxy:fcgi://" line is important.

To apply the config:

systemctl reload httpd

1 Like

seems to work fine.

i think right now the hardest thing would be to remember to undo once the updates are pushed.

I think ill start a discussion on tools sysadmins use to manage their lives. keeping track of everything is really hard.

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

yum install nethserver-rh-php73-php-fpm --enablerepo=nethserver-testing
cp /etc/opt/rh/rh-php72/php-fpm.d/000-nextcloud.conf /etc/opt/rh/rh-php73/php-fpm.d/000-nextcloud.conf

modify inside /etc/opt/rh/rh-php73/php-fpm.d/000-nextcloud.conf all references of php72 to php73

then go to /etc/e-smith/templates/etc/httpd/conf.d/zz_nextcloud.conf/10base and modify

  SetHandler "proxy:unix:/var/run/rh-php72-php-fpm/nethserver-nextcloud-php72.sock|fcgi://localhost/"


  SetHandler "proxy:unix:/var/run/rh-php73-php-fpm/nethserver-nextcloud-php73.sock|fcgi://localhost/"


systemctl restart rh-php73-php-fpm
signal-event nethserver-nextcloud-update

for testing purpose you should validate it first on a VM

1 Like