Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,703
    Plugin Contributions
    123

    Default Re: XAMPP and Different PHP Versions

    Quote Originally Posted by g2ktcf View Post
    where would I put this on Github? I am still a newb.....
    You can use Gists for this kind of thing.

    https://gist.github.com/
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #12
    Join Date
    Feb 2011
    Location
    Lumberton, TX
    Posts
    529
    Plugin Contributions
    0

    Default Re: XAMPP and Different PHP Versions

    Quote Originally Posted by lat9 View Post
    FWIW, I've been using the port-based solution identified in this (https://stackoverflow.com/questions/...sions-in-xampp) stackoverflow posting.

    That way, I can access a site that 'needs' PHP 5.6 on localhost:8056/something and can run the zc157c upgrade of that site on localhost:8080/something.

    I tried this method out on my main desktop computer. It worked right off the bat when setup as per https://themanish.com/run-multiple-v...ultiple-xampp/

    This may be different that what you did above. However, after I added Xdebug, EVERYTHING broke lol. I kept getting "server configuration" errors. So the first thing I did was compare the three different php.ini files. I used the one from the base Xampp install as the go by. I used Winmerge to get them aligned. Everywhere I saw a directory with /php, I updated that ini file to /php8 or /php81 as needed. Did not change a thing! lol

    So, I started looking into the server logs and found out that I put the xdebug.dll in the wrong folder. There were numerous errors in the log of not being able to open that file. Also, there was another error regarding "browsecap.ini" not being available. The base install php/extras folder has was more items in it than the versions downloaded directly from php.net. So I just copied the browsecap.ini file into the new php directories and then everything seemed to work fine. I do not know what problems we will have with the other missing items from this php/extras folder but at least I can get phpinfo to work in all three versions with Xdebug 3.1.2 installed!

    Next step is to see if I can get Netbeans connected to all three...

  3. #13
    Join Date
    Jun 2022
    Location
    NYC USA
    Posts
    2
    Plugin Contributions
    0

    Default Re: XAMPP and Different PHP Versions

    useful information

  4. #14
    Join Date
    Feb 2023
    Location
    VernenCampbell
    Posts
    1
    Plugin Contributions
    0

    Default Re: XAMPP and Different PHP Versions

    Thank you for sharing your experience and solution with using different versions of PHP in XAMPP. It can be helpful for those who face a similar problem.
    For those who are not familiar with XAMPP, it is a free and open-source cross-platform web server solution stack package developed by Apache Friends, consisting mainly of the Apache HTTP Server, MariaDB database, and interpreters for scripting languages, including PHP.
    Your solution involves creating separate folders for each version of PHP and configuring XAMPP to use them via the httd-xampp.config file and .htaccess files. The ScriptAlias directive is used to define an alias to the PHP-CGI executable, which can be used to execute PHP scripts. The <Files> directive is used to specify which files are affected by the directives within the block. The SetHandler directive is used to set the handler for the specified file extension. The Action directive associates a script or program with a particular MIME type.
    I hope your solution works well for you, and good luck with getting Xdebug to work with all three versions. If you have any further questions or concerns, please don't hesitate to ask.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Upcoming versions - 1.5.3 and 1.6.0 -- compatible with PHP 5.4, 5.5, 5.6
    By DrByte in forum Zen Cart Release Announcements
    Replies: 0
    Last Post: 24 May 2014, 02:32 AM
  2. Working locally with two versions (or 2 instances) of XAMPP
    By tryphon in forum General Questions
    Replies: 3
    Last Post: 17 May 2010, 08:02 PM
  3. What versions of xampp to use?
    By jshurbet in forum Installing on a Windows Server
    Replies: 5
    Last Post: 25 Feb 2010, 06:27 AM
  4. XAMPP and PHP cURL in php.ini
    By Jack28 in forum General Questions
    Replies: 2
    Last Post: 21 Dec 2009, 02:46 AM
  5. Replies: 3
    Last Post: 3 Mar 2009, 03:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR