November 18, 2022 in Classic self-hosted technical help
Running InvisionCommunity Under Windows. PHP versions 7.4 and 8.0 are both installed on the server, and the environment variable for PHP 8.0 is set first in the Windows Environment Variables. Typing "Php -v" at the command line confirms that PHP 8.0 is found first, but our web site is insisting it's running under 7.4. How do I get it to see PHP 8.0?
Thanks for any help,
Our software would be merely reporting what PHP is reporting to us. Keep in mind that the "php -v" only reports what is set for your command line. Please ensure that the directory your Invision Community install is in is also using the same PHP version. It may be this is set via appropriate server configurations there for multiple PHP setup.
It is also worth mentioning that Windows servers are outside our scope of support.
The command line is different than the interpreter that can be loaded for the virtual host. Since you have multiple versions of PHP installed, you need to tell your server which one to use for your site.
I understand, but does anyone know how to set the version it's looking for in a Windows/IIS environment? Best I found was to change the environment variables, but that was ineffective.
Open the IIS Manager app, go to Handler Mappings and change the path for the PHP entries you have there.
IIS manager > select your site > PHP Manager > Change PHP version:
OPENSSL_CONF is required for Push notifications.
Thanks so much! Had to download PHP Manager from here: https://www.iis.net/downloads/community/2018/05/php-manager-150-for-iis-10
But that worked beautifully, thanks!
Started 3 hours ago
Started April 24, 2015
Started September 9, 2016