Managing PHP
Managing Installed PHP Versions
Site Wrangler allows us to easily install, and uninstall PHP versions.
First, if we have not already done so, we must enable a PHP version to use:
sw php install
This will open a selector to choose a PHP version to install.
It is okay to have extra PHP versions installed on the server as they will exit gracefully if no sites are using them. However, if you want to remove a PHP version from the server, you can use this command:
sw php uninstall
Managing Sites
To move a site between PHP versions, we can just run this command:
sw php change
Site Wrangler will show a list of domains to select from, followed by a PHP version to move to.
If we are not sure which domains are using which PHP versions or which system user they are assigned to, we can run:
sw php list