I´m looking for a way to install the latest php version on my rpi3+B. I´m using apache2.45.25 on raspian. I know that there is no repository for arm and I tried to compile it with this instructions:
What can I do that apache2 use the latest php version, too?
Backtopic (only for helping others later): I was looking at the old version of php to see how it is implemented in the system. I tried it with the latest version and these links helped me with the method ‘try and error’ to get it working in the console:
€: Ah you compiled it from source. So no apt install of course. But you use mod-php with apache right? So basically the 7.2 version of the mod is needed and need to be enabled as above.
And Jep, PHP7.2 works fine on RPi3, I use it on RPi2 here for some time (although Raspbian Buster).
So finally I got it working in apache2. I forgot to install with
sudo apt-get install apache2-dev
the development version of apache. In this version is apxs2. So I reconfigured my compilation with adding the --with-apxs2=/usr/bin/apxs2 \ flag.
Now I got compiled a module for apache that it can handle the PHP.
Then I just needed to edit the php7 files in /etc/apache2/conf-&mod-avaible. Of course I copied them.
After implementing libapache2-mod-php7 to Apache conf files and your a2dismod and a2enmod php7.2, it is finally working now with the correct PHP version.
But I did something wrong. I think for Nextcloud a module from php is missing.
So what module it can be?