Skip to content

Change PHP Version

Diego Juliao edited this page Mar 10, 2018 · 1 revision

Change PHP Version

  1. stop everything with
    • docker-compose stop
  2. On the docker-compose.yml file, on service wp_server on the section args leave uncommented the php version that you want
        args:
            PHP_VERSION: 7.1
            # PHP_VERSION: 7.0
            # PHP_VERSION: 5.6
  3. Then build the new image with:
    • docker-compose build
  4. Run everything again:
    • export DB_PASS=YOUR_SUPER_SECURE_PASSWORD && export UID && docker-compose up
  5. To verify the version run
    • docker-compose exec wp_server php --version
Clone this wiki locally