Local 5.2.1 - Can't change PHP version after create

Hi,

When i start a new site i select Custom env. and after i choose my PHP version. I can’t change it back to another version.

How can i change php version? The version on that website is 5.6.39 but in file local-site.json its said 7.0.3

i use export / import to move to new version *

{"environment":"custom","phpVersion":"7.0.3","mysqlVersion":"5.6","webServer":"nginx","devMode":null,"multiSite":"no","name":"haltesgourmandes","path":"/Users/USER/Website/devstack/haltesgourmandes","domain":"haltesgourmandes.devstack","id":"6nma8zHOW","localVersion":"3.3.0","container":"efc54fc48ea231c4e79db7e18b1085ca365bace77edc21db7303bd69df0789fa","mysql":{"database":"local","user":"root","password":"root"},"ports":{"HTTP":4000,"HTTPS":4001,"MYSQL":4002,"MAILCATCHER":4003},"workspace":null,"environmentVersion":"1.3.2","sslSHA1":"070bcc512ca22d4c6cf8866dec947bd7c90cb767"}

Hi @fhfournier,

This will be added in an upcoming release. For what it’s worth, changing the JSON file alone won’t update or reprovision PHP. I recommend exporting and importing as a workaround for now.

If you wish, you can watch and vote on this feature in our new Local Feedback tracker.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.