Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted November 18, 20222 yr 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, -Pete
November 18, 20222 yr Community Expert 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.
November 18, 20222 yr Community Expert 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.
November 19, 20222 yr Author 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.
November 19, 20222 yr Open the IIS Manager app, go to Handler Mappings and change the path for the PHP entries you have there. Edited November 19, 20222 yr by Nathan Explosion
November 19, 20222 yr Hi, IIS manager > select your site > PHP Manager > Change PHP version: Environment variables: OPENSSL_CONF is required for Push notifications. Edited November 19, 20222 yr by Luuuk
November 19, 20222 yr Author 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! -Pete