Relative Content

Tag Archive for phplaravelenvironment-variablescomposer-phpcommand-line-interface

Different PHP version in Windows CLI than server version preventing Composer from installing packages in Laravel

In my local dev app my server (Laragon/Apache) and the Laravel app correctly show PHP 8.1.10, but in my Windows CLI, PHP -v shows 7.4.8. My environment variables however show the path to PHP 8.1.10, no reference to any other version, so I can’t determine where the terminal is picking up this version and why. Usually this would be fixed in the $PATH environment variable, but it is fine and doesn’t show a path to PHP 7.4.8