Hi - somewhat late to this party … so hope this is the correct place to ask. I have Nextcloud and the excellent password module for it installed (although for all I know, it could be sending my passwords to the russian mafia). Password has been telling me I need to upgrade my PHP version.
I have made a virtual host and set it to install and use PHP 8.0. Then I modified the Nextcloud template to use PHP 8.0. Now I am getting some errors. I don’t think they are bugs - just I cannot find out how to do stuff. I can post them seperatly if they are not the result of gross stupidity.
First problem - I added the line
to the template and it is now in my zz_nextcloud.conf file, where the 7b8718f8dd5c875-php80.sock file is used by the virtual host.
and restarted, then rebooted, but the socket is not created. Is there some way to get apache/php to create the socket?
When I go to the Administration → Overview page in Nextcloud, I get
This instance is missing some recommended PHP modules. For improved performance and better compatibility it is highly recommended to install them. gmp imagick sodium
Is there a way to install these modules? When I try
yum yum list available | grep php
I don’t get results for php 8 - php8 etc Is there a repository I need to enable? Or something else?
When I go to
PHP 7.3.29 is no longer supported. [Please check the system requirements.](https://git.mdns.eu/nextcloud/passwords/wikis/Administrators/System-Requirements) The last background job was executed with PHP 7.3.29, but the webserver uses PHP 8.0.10. Using different major versions of PHP may cause issues.
Oh. Well - seems I can run the cron job manually now. Was not working before … oh well.
Anyway - using
crontab -u apache -l no crontab for apache
I found a file nextcloud in /etc/cron.d/ that contains
*/5 * * * * apache /usr/bin/scl enable rh-php73 -- php -d memory_limit=512M -d apc.enable_cli=1 -f /usr/share/nextcloud/cron.php
I changed the ownership of the cron.php file and can run it with
php80 -d memory_limit=512M -d apc.enable_cli=1 -f /usr/share/nextcloud/cron.php
But I am not sure if I can just edit the cron.d/nextcloud file directly (or I guess, a template in /etc/e-smith) and what to do with the /usr/bin/scl enable rh-php73 part.
Well, about it. I guess these are Nethserver configuration issues. I have done some searches but haven’t found a solution to my problems. Hope someone here can help