I a trying to update my server to php7.1 version but I am facing an issue

286 Views Asked by At

I have been trying to update the server for the latest PHP version 7.1 but I am being unsuccessful. I am getting the following error when I try apt-get upgrade

E: Some index files failed to download. They have been ignored, or old ones used instead.

Any help with a lead to help me finish my update is really appreciated.

Need to update PHP from 5.6 to 7.1 but I am unsuccessful just by doing an apt-get update && an apt-get upgrade

1

There are 1 best solutions below

5
Fran Cerezo On

Try ondrej PHP

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php7.1