• PHP8 and PHP7 in Windows

    From Jivanmukta@jivanmukta@poczta.onet.pl to comp.lang.php on Fri Jan 20 09:52:02 2023
    From Newsgroup: comp.lang.php

    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)?
    --
    Ta wiadomo+c-c e-mail zosta+ea sprawdzona pod k-atem wirus||w przez oprogramowanie antywirusowe AVG.
    www.avg.com
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Arno Welzel@usenet@arnowelzel.de to comp.lang.php on Sat Jan 21 11:43:44 2023
    From Newsgroup: comp.lang.php

    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

    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Arno Welzel@usenet@arnowelzel.de to comp.lang.php on Sat Jan 21 11:57:18 2023
    From Newsgroup: comp.lang.php

    Arno Welzel, 2023-01-21 11:43:

    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.

    In addition: after these changes you need to restart Apache.
    --
    Arno Welzel
    https://arnowelzel.de

    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Jivanmukta@jivanmukta@poczta.onet.pl to comp.lang.php on Sun Jan 22 09:38:33 2023
    From Newsgroup: comp.lang.php

    W dniu 21.01.2023 o-a11:43, Arno Welzel pisze:
    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.

    I know how to do it in Linux. I need a solution for Windows. (I have 2 systems).
    --
    Ta wiadomo+c-c e-mail zosta+ea sprawdzona pod k-atem wirus||w przez oprogramowanie antywirusowe AVG.
    www.avg.com
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Arno Welzel@usenet@arnowelzel.de to comp.lang.php on Sun Jan 22 21:01:09 2023
    From Newsgroup: comp.lang.php

    Jivanmukta, 2023-01-22 09:38:

    W dniu 21.01.2023 o-a11:43, Arno Welzel pisze:
    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. >>
    I know how to do it in Linux. I need a solution for Windows. (I have 2 systems).

    Well - in Windows there must also be a handler for PHP configured in
    Apache. Search for it and change it. I don't know where XAMPP puts
    everything and I don't want to install it just to search for you.
    --
    Arno Welzel
    https://arnowelzel.de

    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From J.O. Aho@user@example.net to comp.lang.php on Sun Jan 22 21:32:01 2023
    From Newsgroup: comp.lang.php

    On 22/01/2023 09.38, Jivanmukta wrote:
    W dniu 21.01.2023 o-a11:43, Arno Welzel pisze:
    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.

    I know how to do it in Linux. I need a solution for Windows. (I have 2 systems).

    It seems more complicated in ms-windows, seems you have to remove
    services and add other version services, here is a howto (do not know if
    it still works and I don't really care): https://complete-concrete-concise.com/web-tools/how-to-install-and-run-multiple-versions-of-xampp-on-your-computer/

    Alternative is to use wsl on the ms-windows, but then it's just like
    running Linux but not native.
    --
    //Aho
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Jerry Stuckle@stuckle.jerry@gmail.com to comp.lang.php on Sun Jan 22 18:53:14 2023
    From Newsgroup: comp.lang.php

    On 1/22/2023 3:38 AM, Jivanmukta wrote:
    W dniu 21.01.2023 o-a11:43, Arno Welzel pisze:
    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.

    I know how to do it in Linux. I need a solution for Windows. (I have 2 systems).


    You can do it in Windows without installing multiple example versions.
    It's mainly reconfiguring your existing Apache to load the appropriate
    PHP files.

    But that is beyond the scope of this group. You should be asking in alt.apache.configuration.
    --
    ==================
    Remove the "x"'s from my email address
    Jerry Stuckle
    stucklex.jerryx@gmail.com
    ==================

    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From V V V V V V V V V V V V V V V V V V@vvvvvvvvaaaaaaaaaaaaaaa@mail.ee to comp.lang.php on Sat Jan 28 09:05:21 2023
    From Newsgroup: comp.lang.php

    P i c t u r e , raCraCraCp a r d o n ?
    On Sunday, January 22, 2023 at 10:32:10 PM UTC+2, J.O. Aho wrote:
    On 22/01/2023 09.38, Jivanmukta wrote:
    W dniu 21.01.2023 o 11:43, Arno Welzel pisze:
    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.

    I know how to do it in Linux. I need a solution for Windows. (I have 2 systems).

    It seems more complicated in ms-windows, seems you have to remove
    services and add other version services, here is a howto (do not know if
    it still works and I don't really care): https://complete-concrete-concise.com/web-tools/how-to-install-and-run-multiple-versions-of-xampp-on-your-computer/

    Alternative is to use wsl on the ms-windows, but then it's just like
    running Linux but not native.


    --
    //Aho
    --- Synchronet 3.21d-Linux NewsLink 1.2