FlyAbove Posted November 11, 2022 Share Posted November 11, 2022 I am using a mac and when I type php -v I get the version php 8.1.12 but when I load the phpinfo page from xampp it shows 8.1.5 and I am wondering how I can get the phpinfo page to show the same thing as php -v (it also give me the xdebug extension which does not show up in phpinfo)? I have 2 different php ini files. One for xampp and the other for php8.1. Quote Link to comment https://forums.phpfreaks.com/topic/315518-phpinfo-and-php-v-show-different-versions/ Share on other sites More sharing options...
requinix Posted November 11, 2022 Share Posted November 11, 2022 You could, you know, not install two different copies of PHP... XAMPP is a bundle with its own software. That's kinda the point of having it in the first place. Way I figure it, you either keep that bundle and run its PHP (first step: uninstalling the other one) or you keep the system one and switch Apache to run PHP scripts through it instead. I think I'll suggest keeping XAMPP because then you don't have to deal with server configuration. I don't know OSX particularly well but I'm sure you can somehow create a "php" alias pointing to the binary that came with XAMPP. Though you'll probably still have to deal with different CLI and web configurations, but at least that's mostly just copying or symlinking php.ini files. Quote Link to comment https://forums.phpfreaks.com/topic/315518-phpinfo-and-php-v-show-different-versions/#findComment-1602427 Share on other sites More sharing options...
FlyAbove Posted November 13, 2022 Author Share Posted November 13, 2022 I am thinking of downloading the latest version of xampp but if I did would it show xdebug in phpinfo? Quote Link to comment https://forums.phpfreaks.com/topic/315518-phpinfo-and-php-v-show-different-versions/#findComment-1602570 Share on other sites More sharing options...
gizmola Posted November 16, 2022 Share Posted November 16, 2022 On 11/12/2022 at 9:43 PM, FlyAbove said: I am thinking of downloading the latest version of xampp but if I did would it show xdebug in phpinfo? Personally, I would recommend uninstalling xamp and using docker. There are a lot of projects out there that offer a docker-compose that orchestrates a lamp environment for you. Devilbox is a massively complete project that offers a myriad of different configurations (not just lamp), but there are many others, not to mention lots of tutorials showing how you can create your own. I even made a project myself to support some of the work I do. I have seen a good deal of discussion of people who primarily make Laravel apps using Laravel Sail, but it can be used for any php project afaik. With that said, if you absolutely must have something similar to what xampp provides, people seem to like Laragon. Quote Link to comment https://forums.phpfreaks.com/topic/315518-phpinfo-and-php-v-show-different-versions/#findComment-1602657 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.