Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /