Add older PHP Version to xampp

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Add older PHP Version to xampp

Postby bgfr » 14. May 2021 09:32

Hi, I am using PHP Storm and currently, ad a CLI interpreter I use the PHP version 8.0.3 which comes with it. I need to change PHP Storm Language to php 7.2 and i also think it would be right if i change the interpreter.
Is there an easy way to do that?
bgfr
 
Posts: 4
Joined: 14. May 2021 09:25
XAMPP version: 8.0.3
Operating System: Windows Version: Enterprise

Add older PHP Version to xampp

Postby bgfr » 14. May 2021 09:51

HI, I have PHP Storm with XAMPP 8.03 which comes with PHP 8.0.3, hence PHP Language i use is version 8 with CLI Interpreter 8.0.3 . All is running fine, but i need to use PHP 7.2

I suppose it is not clever to chose PHP 7.2 and keep on using the same CLI Interpreter. That is why i downloaded (php-7.2.34-nts-Win32-VC15-x64) and added it to the XAMPP folder to chose the 7.2 php.exe for PHP Storm CLI Interpreter. Unfortunately it does not work. I copied the php.ini from the PHP 8.0.3 folder.

Can you please give me a hint where to touch. Also, generally is the Interpreter supposed to be same version as PHP and since that works how wrong could it be.
bgfr
 
Posts: 4
Joined: 14. May 2021 09:25
XAMPP version: 8.0.3
Operating System: Windows Version: Enterprise

Re: Add older PHP Version to xampp

Postby Altrea » 14. May 2021 09:53

Hi,

you can install multiple versions of XAMPP side by side, for example XAMPP 7.2.34, 7.3.28, 7.4.19 and 8.0.5 (preferably the zip version of them).
Each of them comes with it's own CLI version.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Add older PHP Version to xampp

Postby bgfr » 14. May 2021 10:31

Hey Altrea, thanks. So that is the only possible way? Installing several xampp versions? Do you have any idea what stops older version of PHP working with latest XAMPP? Also, do you know a source where i can find older XAMPP? Before 7.3?
bgfr
 
Posts: 4
Joined: 14. May 2021 09:25
XAMPP version: 8.0.3
Operating System: Windows Version: Enterprise

Re: Add older PHP Version to xampp

Postby Altrea » 14. May 2021 10:47

bgfr wrote:So that is the only possible way? Installing several xampp versions?

The only by xampp supported way.
Of course it is technically possible to bundle other/older PHP versions in a XAMPP stack, but we don't officially provide any help or support in doing so.
XAMPP bundles well known and documentated single components. You will find hundreds of tutorials on how to configure PHP with Apache.

bgfr wrote:Do you have any idea what stops older version of PHP working with latest XAMPP?

Did you provide any information what you exactly did to implement this php version in XAMPP? no.
Did you provide any occured error messages? no.

I still don't understand what you are trying to achieve. If the only goal is to get the php-cli in PHPStorm running, than why even trying to implement it in XAMPP? php-cli is running out of the box!?
But from XAMPP point of view, you are using a wrong PHP version. XAMPP bundles the thread safe (TS) versions of PHP, not the NTS versions.
And your used PHP version is compiled with VC15 and not VS16, so you maybe need to install an additional Visual C++ runtime for that.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Add older PHP Version to xampp

Postby bgfr » 14. May 2021 12:28

Thank you Altrea. Well I am trying to run the older version of php. Here is the error that shows when i try to start the php.exe and this is the version https://phpdev.toolsforresearch.com/php-7.2.34-nts-Win32-VC15-x64.htm

PHP Warning: PHP Startup: Unable to load dynamic library 'php_excel.dll' (tried: ext\php_excel.dll (The specified module could not be found.), ext\php_php_excel.dll.dll (The specified module could not be found.)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'php_imagick.dll' (tried: ext\php_imagick.dll (The specified module could not be found.), ext\php_php_imagick.dll.dll (The specified module could not be found.)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'php_svn.dll' (tried: ext\php_svn.dll (The specified module could not be found.), ext\php_php_svn.dll.dll (The specified module could not be found.)) in Unknown on line 0
MIB search path: /usr/share/snmp/mibs
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
bgfr
 
Posts: 4
Joined: 14. May 2021 09:25
XAMPP version: 8.0.3
Operating System: Windows Version: Enterprise

Re: Add older PHP Version to xampp

Postby Altrea » 14. May 2021 17:56

Please describe as detailed as possible what you have done to get to this environment, so that helpers have the possibility to reproduce it.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 95 guests