Skip to content

Upgrading PHP version to 7.4 #1726

Closed
Closed
@TrystanLea

Description

The latest version of emoncms requires PHP version 7.3 or later, here are the update steps from PHP7.2. Change references to php7.2 to your php version if it is different.

Note: You may want to consider doing a full OS upgrade at this point which should also include the latest version of php. E.g upgrading to Ubuntu 20.04 will install php 7.4 as default. The following instructions are useful if you need to update emoncms quickly without a more complicated full OS update.

emonSD or RaspberryPi users: Please update to the latest emonSD image, see: https://github.com/openenergymonitor/emonpi/wiki/emonSD-pre-built-SD-card-Download-&-Change-Log

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt install php7.4 
sudo apt install php7.4-curl php7.4-mbstring php7.4-xml php7.4-igbinary php7.4-dev php7.4-mysql

sudo pecl -d php_suffix=7.4 install redis
printf "extension=redis.so" | sudo tee /etc/php/7.4/mods-available/redis.ini 1>&2
sudo phpenmod redis

sudo a2dismod php7.2
sudo a2enmod php7.4
sudo service apache2 restart

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions