Wilfried's picture

Hi

We like to install the Plugin lifterlms on top off WordPress Appliance from Turnkey Linux.

But lifterlms need PHP 7.2 and not 7.0 like in the WordPress Appliance from Turnkey Linux.

We install php 7.2 in addition (like https://tecadmin.net/install-php-debian-9-stretch/)

But the WordPress Appliance from Turnkey Linux still use 7.0 and not the new (7.2) one.

What do I have to chnage?

Cu

Wilfried

Forum: 
Jeremy Davis's picture

As per the deb.sury.org wiki, I suggest that you just change the default PHP to 7.2. This should do the trick:

update-alternatives --set php /usr/bin/php7.2

Please note though that your whole WordPress install will then use PHP7.2. If there are other PHP7.2 modules required that you haven't installed you may run into some issues with particular functionality. I note the instructions you link to only install php7.2-cli php7.2-common php7.2-curl php7.2-mbstring php7.2-mysql and php7.2-xml. You'll possibly want to also install 'php7.2-gettext' and 'php7.2-gd' as well (plus possibly others?).

As I note, the other option would be to uninstall PHP7.0 completely. Regardless, you can check which PHP packages are installed with this line:

apt-cache policy php* | grep -v "Installed: (none)" | grep "Installed" -B1

Hopefully that gets you going in the right direction. Good luck with it.

Add new comment