I setup a number of sites yesterday using the “Preferred” method. Today I realized that the “Preferred” method only uses PHP 5.6 and I’d like to run 7.1.x.
Can I change the PHP version after I setup a site with the “Preferred” method?
The “Preferred” method does not give me the same options as “Custom” does in regards to changing the PHP version. Right now, I don’t appear to have any options.
PHP 7.1 on the Preferred environment is in the pipeline.
In the meantime the easiest way to get your site onto 7.1 is to right-click on the site in Local and export it. Then, re-import it and select the “Custom” environment and then PHP 7.1.
The Preferred environment is meant to be a simple environment that best matches the Flywheel production environment. All of the components are baked directly into the Preferred environment.
The Custom environment (what Local originally started with) is a more flexible environment where the components (nginx, Apache, nginx, MySQL, etc) are brought into the container when needed.
I too am having an issue in trying install php >=7. I have exported and re-imported my site and after having chosen v 7.1.4 via WP CLI (via wp --info) is telling me that I still have version 5.6.30 installed (even though the Flywheel interface is telling me that I have 7.1.4). How can I fix/troubleshoot this problem? I am trying to use a Sage template which requires php >=7.
When you “SSH” into a site, you’re actually entering the bash process in the site’s Docker container. Once that’s open, you can run commands and anything you run will be ran inside the site’s container.
Interesting. It must be an issue with the latest (beta) version of the Sage starter theme (?) because when I ran composer install from the theme directory it kept telling me that I needed to upgrade to php >= 7. Or maybe it’s not Sage at all. Maybe it’s an issue with the WP CLI… hmmmmmmm…
Or maybe I should have run composer install after opening “site SSH”… I’m going to try that.
I set up a Custom environment, but still the dropdown doesn’t show. The “development mode” toggle also decides to appear sometimes but now I can’t get it to appear anywhere.