How to update PHP version 7.0.30 to greater version?

I’m running a WordPress website on my account and I was wondering if my account supported PHP 7.1 or greater version?

How to update my PHP version to the latest one?

Thanks in advance!
Joan

1 Reply

Short answer: Create a PHP info file. https://secure.php.net/manual/en/function.phpversion.php

Longer answer:
Assuming that you’re installing straight from repos: Your PHP and other software versions is going to based on what Linux distro you’re using and what repository you’re using from that distro.

For example, if you’re running Debian 9 and you’re using the stable repo then you’re PHP version will be whatever is listed in that repo.

As far as getting the latest version, if this a production environment, then I wouldn’t get the latest version due to stability/security issues.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct