• Activity Feed
  • Groups
  • Forums
  • Service
  • en_USEnglish
    • arArabic
    • zh_TWChinese
    • fr_FRFrench
    • de_DEGerman
    • jaJapanese
    • es_ESSpanish
    • pt_PTPortuguese
  • classify
    • Plugins & Themes
      • Gutenberg Block Developer
      • Plugin Development
      • Plugin Usage and Recommendation
      • Theme Development & Customization
    • Speed & Optimization
      • Database Optimization
      • Page Load optimization
      • Server Level Optimization
    • Security & Backup
      • Data Backup & Recovery
      • Site Security Measures
      • SSL Certificates
    • Server Ops & Admin
      • Automatic Management
      • Performance Monitoring & Tuning
      • Server Selection & Configuration
      • System Security Update
    • Dev Tools & Workflow
      • Continuous Integration/Continuous Deployment (CI/CD)
      • Development Environment Configurations
      • Version Control
    • REST API & Integrations
      • Integration with Third-Party Services
      • REST API Use
    • FAQs & Solutions
      • Debugging Tips
      • Error Detection
    • Code Snippets & Dev Tips
      • Code Snippets Library
      • Developer Tips
    • Advanced Extensions
      • Customized Content Type (CPT)
      • Multisite Management
    • SEO Tips
      • Content Optimization Tips
      • Sitemap and Robots.txt
      • SEO Optimization Techniques

    Shopping Cart

    No products in the cart.
    Sign in Sign up

    Shopping Cart

    No products in the cart.
    • Activity Feed
    • Groups
    • Forums
    • Service
    • en_USEnglish
      • arArabic
      • zh_TWChinese
      • fr_FRFrench
      • de_DEGerman
      • jaJapanese
      • es_ESSpanish
      • pt_PTPortuguese
    • classify
      • Plugins & Themes
        • Gutenberg Block Developer
        • Plugin Development
        • Plugin Usage and Recommendation
        • Theme Development & Customization
      • Speed & Optimization
        • Database Optimization
        • Page Load optimization
        • Server Level Optimization
      • Security & Backup
        • Data Backup & Recovery
        • Site Security Measures
        • SSL Certificates
      • Server Ops & Admin
        • Automatic Management
        • Performance Monitoring & Tuning
        • Server Selection & Configuration
        • System Security Update
      • Dev Tools & Workflow
        • Continuous Integration/Continuous Deployment (CI/CD)
        • Development Environment Configurations
        • Version Control
      • REST API & Integrations
        • Integration with Third-Party Services
        • REST API Use
      • FAQs & Solutions
        • Debugging Tips
        • Error Detection
      • Code Snippets & Dev Tips
        • Code Snippets Library
        • Developer Tips
      • Advanced Extensions
        • Customized Content Type (CPT)
        • Multisite Management
      • SEO Tips
        • Content Optimization Tips
        • Sitemap and Robots.txt
        • SEO Optimization Techniques
      • Profile photo of Jones

        Jones posted an update

        8 months ago

        Level 2

        How to Update WordPress and PHP in a Docker Setup


        Docker image

        I have installed WordPress with Docker guided by this tutorial:

        https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-docker-compose

        The tutorial is using this docker-compose.yml file that is using wordpress:5.1.1-fpm-alpine image:

        version: '3'
        
        services:
          db:
            image: mysql:8.0
            container_name: db
        ...
        
          wordpress:
            depends_on:
              - db
            image: wordpress:5.1.1-fpm-alpine # <-- Note the WordPress version here
            container_name: wordpress
        ...

        Outdated WordPress version

        Now, I have to install some plugins, but they are requiring some newer versions of the WordPress. Like the WP phpMyAdmin plugin:

        This plugin doesn’t work with your version of WordPress. Please update WordPress.

        The WordPress dashboard is displaying update notifications too:

        WordPress 6.7.1 is available! Please update now.

        Try to update

        But when I click on the Please update now. link, I receive this error:

        You cannot update because WordPress 6.7.1 requires PHP version 7.2.24 or higher. You are running version 7.2.18.

        Question

        How can I reliably update the WordPress along with PHP? I don’t want to mess up the whole Docker setup.

        digitalocean.com

        How To Install WordPress With Docker Compose | DigitalOcean

        WordPress is a free and open-source Content Management System (CMS) that is widely used to launch new websites. Running WordPress typically involves installi…

        Move Photo to...

        No albums found. Please create and select album.

        Albums
        Cancel Create
        Create new album Cancel Move
        3BOovUlD
        3KCTwMFl
        VCzOMrMt
        Banner
        2 Comments
        • Profile photo of Banner
          Banner
          Level 3

          First and foremost, wordpress:5.1.1-fpm-alpine doesn’t seem to be an official WordPress image. These are always kind of hard to maintain, easy to set up, but a whole lot of headache to maintain. Anyway, to do such an upgrade, you will have to upgrade wordpress and php inside the container as well as their dependencies, goodluck with that! A better approach would be to create a backup of everthing (do a snapshot of the entire server if possible). Then run a new version of wordpress locally using a restored copy of the db, once everything works, you can use a newer image with that data.

          8 months ago
          • Profile photo of Jones
            Jones
            Level 2

            @banner I backed up the Docker named volumes. Then I updated the Docker image version, but the website threw 500 error. Then I restored the backup volumes. But website throws Error establishing a database connection error. Looks like updating WordPress & PHP by Docker might be a hassle even with backup/restore of Docker volumes

            8 months ago
      • Public
      • All Members
      • My Connections
      • Only Me
      • Public
      • All Members
      • My Connections
      • Only Me
      • Public
      • All Members
      • My Connections
      • Only Me
      © 2025 - OpenByt - The ultimate source for free WordPress knowledge
      • Home
      • Community
      • About Us
      • Contact Us
      • Join Us
      • Notice
      • Team
      • Privacy Policy
      Loading...
      en_US English
      en_US English
      fr_FR French
      de_DE German
      ja Japanese
      es_ES Spanish
      pt_PT Portuguese
      zh_TW Chinese
      ar Arabic

      Report

      There was a problem reporting this post.

      Harassment or bullying behavior
      Contains mature or sensitive content
      Contains misleading or false information
      Contains abusive or derogatory content
      Contains spam, fake content or potential malware

      Block Member?

      Please confirm you want to block this member.

      You will no longer be able to:

      • See blocked member's posts
      • Mention this member in posts
      • Invite this member to groups
      • Message this member
      • Add this member as a connection

      Please note: This action will also remove this member from your connections and send a report to the site admin. Please allow a few minutes for this process to complete.

      Report

      You have already reported this .
      Go to mobile version

      Insert/edit link

      Enter the destination URL

      Or link to existing content

        No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.