Help to install php8

Hi, first of all, introduce myself, I’m a beginner and I’ve just been experimenting with all this for a few days

I have installed openmediavault 6 on an old pc all my knowledge is based on tutorials that I have found by various means and I was able to install nextcloud successfully but it was version 19.0

for reasons of problems I had to reinstall openmediavault 6 I installed nextcloud 27.0 but as you know it does not support php7.4, so I have purged php7.4 and tried to install php8 or higher but it always gives me problems that I am missing plugins

Does anyone know any guide or tips to install all the necessary plugins to install php8?

You could install a newer php version from other sources. However, I don’t know if openmediavault uses php itself, then you would need to run two php versions in parallel.

Ideally, I’d start with a debian that already ships the newer version (Debian 12). The current openmediavault still comes with Debian 11. I’d check at their side, in case they ship a new version next week, I’d wait before fiddling around.

1 Like

Openmediavault is a Debian derivative, so you can largely follow descriptions for Debian or Ubuntu.

My advice: determine a version right from the start, i.e. not just php-<module> but php8.2-<module> etc.

This would be a command to install all neccesary php packages for php8.2:

for package in libapache2-mod-php8.2 php8.2-apcu php8.2-bcmath php8.2-bz2 php8.2-cli php8.2-common php8.2-curl php8.2-gd php8.2-gmp php8.2-igbinary php8.2-imagick php8.2-intl php8.2-mbstring php8.2-mysql php8.2-opcache php8.2-readline php8.2-redis php8.2-xml php8.2-zip; do sudo apt-get install -y $package; done

but the concerns about own php versions under OMV are not considered here. So this is probably not the right tip to help you,

much luck!

Hi @Staticfrom

I don’t think it’s a good idea changing the PHP version on OMV. This could lead to breakage because OMV itself also uses PHP. I highly recommend using Docker if you want to install additional apps on OMV, especially if these apps require a different PHP version than the one OMV uses.

Here’s the guide from the omv-extras wiki on how to setup Docker on OMV: omv6:docker_in_omv []

With quick Google search I found a guide on how to install the official Nextcloud Docker image on OMV:
More information and documentation about the official images can be found here: GitHub - nextcloud/docker: ⛴ Docker image of Nextcloud

OMV also has very active forums, where I found a guide on how to install the image with Swag as Reverse Proxy: [How-To] Nextcloud with swag (Letsencrypt) using OMV and docker-compose - Guides - openmediavault

1 Like

To be honost, this is one of the reasons I containerizes. I have my own website in one container. Jitsi-meet in another container. My database engine in a third container and my management portals for infrastructure in each of their own containers and lastly I runs Nextcloud in several load balanced containers. Yes, it will add a little extra overhead as I run a full fledged webserver and php-fpm in most of them, however as they runs in containers, I save resources by the fact that I do not dedicate cores and memory to virtual machines.

I recommend to set this up in different containers, as this will ensure you are not mixing up PHP versions, and that you can run the best supported PHP version for the specific application.

If you are brave you can experiment with having one NGINX server as load balancer in front of your PHP applications, so that each site is just streamed with fastcgi to different containers, and in these containers, you maintains the proper PHP version for the specific applications. This will be more complicated, but it will ensure you have only one webserver, serving all your sites.

Not that I want to change your path in any way. But I would recommend podman/docker and to keep it simple. So you dont have to change the PHP version of your host system, but have just a whole, well configured setup prepared to use.