How to Set Multiple PHP Versions in XAMPP

preview_player
Показать описание
By the end of this video, you're going to find out everything you need to know to install multiple PHP versions in XAMPP on a Windows machine.

Resources:

================
Connect with me:
================

⏲️ Timestamps ⏲️
00:00 - Intro
00:20 - Brief
00:39 - How to download the right PHP version
04:31 - Set Windows Environment variable for PHP (if not already)
06:08 - Apache configuration
07:50 - Conclusions

================
#php #xampp #windows
Рекомендации по теме
Комментарии
Автор

I tried your method and it's working perfectly I now have 3 versions of php 7.4, 8.0 and 8.1. Thank you dude you are a life saver

xeroks
Автор

Thank you! For sharing your resources and knowledge. Be healthy and successful! 👍🏻💪🏻

alvarojflores
Автор

Thanks man! it works perfectly. I used to install different xampp versions, just tweaking the config. but this method is much easier. cheers!

doms
Автор

For some years ago it was a nightmare :) many thanks! BRAVO!

SadekHassan
Автор

Works fine, thanx!
In my case I preferred to rename the older version (to avoid reset the PHP system environment variable) and keep using /php for the newest one.
Something else, when I tryed to launch the Apache server, it never ran. This is because I needed to copy the directory /extras from your older version (something related to browscap.ini file, don't overwrite just copy the missing ones).

oscaralderete
Автор

Keep it up, you are doing very well.
Just make sure that your video has enough zoom level.

aamirsohailkmas
Автор

Great Video... Helped me Lot... Thank You..

JayabheriNews
Автор

Hi there Neutron Dev, thanks for this great tutorial. However it didn't worked on my end, but I just noticed something, yours is using "FastCGI" on the server API, mine uses Apache 2.0 Handler, is the fastCGI required for multiple PHP versions?

johnparayno
Автор

I want to do the exercises in a head first PHP & mySQL textbook that was published in 2009. But the version of PHP they're using is PHP 5 or 6. Would I be able to download PHP 5 or 6 and run that version locally using the xampp server on my laptop computer? It is for learning purposes only and I do not plan on posting any of the work on an online server

danielgonzalez
Автор

Nice! How can I do if want to work in some projects running the old PHP version? Should I delete the environment variables settled in the path??

tokemusical
Автор

I have two projects in different php version, how can I do to shift the php version depending that project I´ll work ?

hugonews
Автор

After doing this my .htaccess file does not work. The file was working in the old PHP with 'php_value include_path "C:/path/..."'. Now it does not work anymore. I tried setting "AllowOverride All" in the .conf file but nothing happened. How to solve?

tokemusical
Автор

I have tried this method but yet, is not showing the current php i want to add. I have php 7.4.4 and wanted to add php 8.1.0 so i can run my laravel project but instead of running am seeing Windows 7.4.33 when i check the phpinfo in my xampp even though i have restarted the xampp severally. Please help

ebukacaius
Автор

Your solution is working great, but somehow when I try to install PrestaShop, it doesn't work! I've also noticed that the "Server API" is not "Apache 2.0 Handler" but set to "CGI/FastCGI". Could you help me please?

khalil_art
Автор

I followed your all steps but when you check for new version mine is still showing same the old one.. if i enter where php command then it is showing two different paths of php.exe i.e. C:\xampp\php\php.exe
C:\xampp\php83\php.exe

monikapaliwal
Автор

Why use an older version of XAMPP and go up to version 8.x? Can the newest XAMPP be used and go down to 7.x & 5.x?

ibsmiley
Автор

thanks this is excellent . really save my time

amitkumar-jhjg
Автор

sir i have 2 projects to set up one am already working with having php 7.4 another i has to setup 8.1 does both version can handle in a single xampp ?

vamshikrishnapatel
Автор

hi can i ask if, how i can change it back to the php version. Like i currently use php version 5.6.4 but i want to change it back to php version 8?

cloverchips
Автор

how to switch the PHP version that I want to use?

jn