Why does the latest Ubuntu comes with an obsolete PHP Version? Is it secure to use this version?
put on hold as primarily opinion-based by Ramhound, Kamil Maciorowski, Scott, fixer1234, music2myear 2 days ago
Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.
Why does the latest Ubuntu comes with an obsolete PHP Version?
You indicated you are using 16.04, at the time 16.04 was released, PHP 7 in Active Support.
Is it secure to use this version?
You should be using PHP 7.1 or later.
You can upgrade your PHP installation to 7.3 by running the following commands:
$ sudo apt-get install python-software-properties $ sudo add-apt-repository ppa:ondrej/php $ sudo apt-get update $ sudo apt-get install -y php7.3
Ubuntu 18.04 was released in April of 2018. This means it had what could have arguably been fairly reasonable to have PHP7.0 which only stopped recieving Active Support in December of 2017.
Also, Ubuntu is an OS primarily designed for developers or engineers, not to be used for hosting public websites.
At the time, PHP7.0 was not end of life. Any release of PHP holds security risk.
It's intrinsic that when you open your device up with more and more features and services, it is more vulnerable to attacks.
EDIT: OP originally said they were using 18.04. Revised to say 16.04. Even so, upon release of 16.04, PHP7.0 was still in active support. The latest Ubuntu is 18.04 (Bionic Beaver).