Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Peter Bickford Posted November 18, 2022 Posted November 18, 2022 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
Jim M Posted November 18, 2022 Posted November 18, 2022 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.
Randy Calvert Posted November 18, 2022 Posted November 18, 2022 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.
Peter Bickford Posted November 19, 2022 Author Posted November 19, 2022 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.
Nathan Explosion Posted November 19, 2022 Posted November 19, 2022 (edited) Open the IIS Manager app, go to Handler Mappings and change the path for the PHP entries you have there. Edited November 19, 2022 by Nathan Explosion
Luuuk Posted November 19, 2022 Posted November 19, 2022 (edited) Hi, IIS manager > select your site > PHP Manager > Change PHP version: Environment variables: OPENSSL_CONF is required for Push notifications. Edited November 19, 2022 by Luuuk
Peter Bickford Posted November 19, 2022 Author Posted November 19, 2022 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 Luuuk 1
Recommended Posts