Comments (5)
I also would like to inform you that, after installing other PHP versions following your documentation (https://github.com/JackieDo/Xampp-PHP-Switcher#add-other-php-versions-to-your-xampp), I have deleted those unzipped xampp folders.
from xampp-php-switcher.
I have the same problem. It appears the dependencies are not correct.
from xampp-php-switcher.
To @curiousteam , @erniegenaw :
First, I apologize for the delay in replying and handling the project's issues for quite a while.
Next, I took a close look at the issue you guys posted. I noticed that this error occurs in the following cases:
- Built-in (original) version of Xampp PHP is PHP5/PHP7 and we proceed to add PHP8 version
- Built-in (original) version of Xampp PHP is PHP8 and we proceed to add PHP5/PHP7 version.
Reason:
This happens because the "xampp-httpd.conf" file structure of Xampp 8.x version is different from 7.x version and earlier. Meanwhile, this file generation mechanism for additional PHP builds of the project is essentially copying from the original file in the installed Xampp App.
Therefore, I have changed the mechanism for generating this file for new additional builds in the project source code (commit fcfb0cf) and this has solved the problem.
Step-by-step troubleshooting for your Switcher system:
- Update your Xampp PHP Switcher according to the instructions here.
- Replace the contents of the
httpd-xampp-php(x).conf
file in theapache\conf\extra\
subdirectory of your XAMPP installation directory with the corresponding file in thesrc\Templates\xampp-config\
subdirectory of XAMPP PHP Switcher. Remember to replacing the string{{xamppDir}}
in the content with the path to your Xampp directory.
Note:
(x)
in the above filename is the major-version of the faulty PHP version.
Hopefully the new version will improve the user experience for you more.
Cordially greet.
from xampp-php-switcher.
To: @JackieDo
Thanks again for solving the issue.
I have installed my Xampp using "xampp-windows-x64-7.4.12-0-VC15-installer.exe". I have also updated the Xampp PHP Switcher according to your instructions. After troubleshooting the switcher following your step-by-step guide, I was able to successfully switch between various PHP versions of 7 modules (7.3.24, 7.4.12, and 7.4.22). It works fine with these aforesaid PHP versions.
Unfortunately, I got the following result while trying to switch to PHP 5.6.40:
Apache does not restart, it just showing that message repeatedly like the screenshot. But it works when I restart the apache manually using the control panel.
And also got the following error for PHP 8.0.9:
Is it possible to add PHP 8.* versions to my existing Xampp installation with this switcher? I don't wanna reinstall the latest Xampp.
Regards.
from xampp-php-switcher.
To @curiousteam :
My installed Xampp version is 7.3.12. And i added other PHP builds from 5.6.40 to 8.0.9. Following is the list of builds that have been added to my PHP repository.
All versions I added work perfectly, but yours doesn't. I'm guessing it's because all of my computers have compatible Visual Studio C++ packages installed.
Use the command xphp info
to see the Compiler information for your PHP build version, then you will know which Visual C++ package it needs. (With PHP 5.6.40 is VC++ 2012, and PHP 8.0.9 is VC++ 2019)
Then download the corresponding Microsoft Visual Studio C++ Redistributable package here and install it.
Hope you solve the problem.
Best regards.
from xampp-php-switcher.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xampp-php-switcher.