Skip to content

Instantly share code, notes, and snippets.

@kevyworks
Last active February 28, 2020 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevyworks/4c326f8e9417069d3b84aed71a63b434 to your computer and use it in GitHub Desktop.
Save kevyworks/4c326f8e9417069d3b84aed71a63b434 to your computer and use it in GitHub Desktop.
Valet-WSL

Get Started

Follow the Wiki from valet-wsl

Switching PHP versions

Some projects may require older php version but minimum is 7.2 for the CLI which valet-wsl requires. The default Ubuntu 18.04 LTS is pre installed with Php version 7.4 in valet it is easy to use a specific version of php by

$ valet use 7.2

However this does not include the libraries which from the default valet-wsl Wiki at #6 below is a simple fix.. Change version number if you please.

sudo apt-get install \
     php7.2-cli \
     php7.2-mysql \
     php7.2-sqlite3 \
     php7.2-intl \
     php7.2-zip \
     php7.2-xml \
     php7.2-curl \
     php7.2-mbstring

Restarting valet-wsl

$ valet restart && sudo service mysql restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment