Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: PHP8 and PHP7 in Windows Date: Sat, 21 Jan 2023 11:43:44 +0100 Lines: 26 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net /ttzKynF8Uh5A4ysGboCdgZ/wjc00t86gAOxAoPXxXyL6p16wE Cancel-Lock: sha1:3JV33faV40UeRtkWJCGvrJhrnq0= Content-Language: de-DE In-Reply-To: Xref: csiph.com comp.lang.php:19272 Jivanmukta, 2023-01-20 09:52: > I installed in Windows 10 XAMPP with PHP 8.2.0 inside C:\xampp\php. > phpinfo shows C:\xampp\php\php.ini. > Then I installed PHP 7.4 inside C:\xampp\php74 with > mod_fcgid-2.3.10-win64-VS17 and I performed configuration tasks from > https://codebriefly.com/how-to-handle-multiple-php-versions-with-apache-server-on-windows. > What to do to see in phpinfo C:\xampp\php74\php.ini, (I still see 8.2.0 > and C:\xampp\php\php.ini)? What do you mean with "see"? If you want to have PHP 7.4 active for Apache you need to tell Apache which version to use. Usually this means disabling PHP 8.2 and enabling PHP 7.4. I don't know how "Windows 10 XAMPP" handles this but in Linux this is done by removing the symlink to php8.2-fpm.conf and enabling php7.4-fpm.conf with the following commands (as root or using sudo): a2disconf php8.2-fpm a2enconf php7.4-fpm Maybe there is a similar configuration file for "Windows 10 XAMPP" as well. -- Arno Welzel https://arnowelzel.de