How do I upgrade from PHP 7.0 to 8.1 on google cloud platform?

I have a WordPress site running on google Cloud on PHP 7. I want to update php to latest 8.1

So how can i update it on current running GCP.

Asked on November 10, 2022 in PHP,   Ubuntu,   Wordpress.
Add Comment
  • 1 Answer(s)

    You can update php in GCp via following commands

    sudo apt-get update
    sudo apt-get install php7.3-mysql
    sudo a2enmod php7.3
    sudo a2dismod php7.0
    sudo systemctl restart apache2
    
    Answered on November 10, 2022.
    Add Comment

    Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.