how to update the php to latest php

how we can update the php to latest php

please advise

i am running professional virtualmin

please advise

It depends on what distribution you’re using as the package names vary, but generally you can update a package with something like:


yum update php5


apt-get install php5

Those would update it to the latest PHP version available in the repository.