pitschu99
Intern
Intern
  • UID8023
  • Fans0
  • Follows0
  • Posts1
Reads:44221Replies:6

[products]Check PHP Version and update it when hosting on ECS instance

Created#
More Posted time:Sep 18, 2019 0:09 AM
Dear all,
I have set up ECS instance to host my website. Where can I check and update PHP Version? I can only find information on how to check and update PHP version when hosted via webhosting service.
Many thanks, Simon

Latest likes:

pritampritam

kcloud
Engineer
Engineer
  • UID7778
  • Fans0
  • Follows0
  • Posts52
1st Reply#
Posted time:Sep 21, 2019 12:43 PM
Hi,

You can check the php version from the terminal of your ECS instance.
Refer: https://partners-intl.aliyun.com/help/doc-detail/25433.htm

In terminal use following command to check the version of PHP:
php --version

Cheers!

Abhay001
Intern
Intern
  • UID9358
  • Fans0
  • Follows0
  • Posts1
2nd Reply#
Posted time:May 8, 2020 13:30 PM
and command to update it?

pritam
Intern
Intern
  • UID9835
  • Fans0
  • Follows0
  • Posts2
3rd Reply#
Posted time:Jul 14, 2020 15:40 PM
i also need solution

pritam
Intern
Intern
  • UID9835
  • Fans0
  • Follows0
  • Posts2
4Floor#
Posted time:Jul 14, 2020 15:41 PM
how can i update php version?

FeroVolar
Intern
Intern
  • UID9840
  • Fans0
  • Follows0
  • Posts1
5Floor#
Posted time:Jul 15, 2020 21:50 PM
The PHP version is often dependent on the distribution version.
Thus, a higher minor version can be installed either from an unofficial alternative repository or from source code.

thol
Intern
Intern
  • UID10006
  • Fans0
  • Follows0
  • Posts1
6Floor#
Posted time:Aug 10, 2020 0:30 AM
Hello, how could you tell to me step by step how to update Php version, because I can't update wordpress

Thanks
Guest