Closed backpackingseries closed 1 year ago
I think this version of PHP is related to PHP CLI and not the site installation version in the panel.
Run on the server via SSH the php -v command and see if it will show the default version set on the tools screen.
Thanks @osidney
I am trying to reconcile what I read here - https://wpclouddeploy.com/documentation/more/php-8-0-8-1-notes/ and the understanding now.
Does it mean that for WPCLI and other scripts, PHP 7.4 is supported on the server. Whereas PHP version 8.1 is supported for WordPress apps (set via the site screen)? Would that be the recommended config?
Kind regards,
There are two locations where PHP is used and therefore each can be set a version independently.
There is a 'server' version - which, as osidney mentioned is the equivalent of running a php script from the server command line. This is what WP CLI uses.
You can set this version in the SERVER → TOOLS tab.
Then there is the version that each site uses (the php pool). You can set this version in the site PHP tab.
Thank you @elindydotcom That helps.
Few questions, if you do not mind please:
Kind regards,
Thanks much. That just leaves me with one observation @
- PHP 8.1 is the latest PHP version we install. You can use it for both parts if you like - just make sure your themes and plugins are compatible with it.
There's this text string carried forward since the previous WPCD version - a scary warning to not use versions other than version 7.4.
I guess this can be dropped now?
Kind regards,
Yup, that does have to be updated.
Sorry, just noticed the following. Screenshot from NGINX server deployment
On servers, PHP versions prior to 7.4 are also installed. Can these be dropped from V5 server installer?
Kind regards,
No. There are still thousands of sites out there that use these earlier versions. But, they are disabled by default - only version 7.4 and higher are automatically enabled.
Hi,
After a deployed a new Linode server, I set the default PHP version to 8.1. Screenshot below
However, when I installed an app on that server, the app defaults to version 7.4
Is this expected behaviour for apps to not inherit the PHP version from the server? If so, how to set PHP default version to 8.1 all across for new deployments?
Reference: https://wpclouddeploy.com/documentation/more/php-8-0-8-1-notes/
Kind regards,