Kill localhost server on Mac lsof -i :8000 kill -9 <PID> You can replace :8000 with the port that you are using Find php.ini in any OS php -i | grep php.ini
How to Switch PHP Version in Laravel Valet between PHP 7.1 and PHP 5.6 Valet switch PHP version with these commands Install PHP 5.6 and switch Valet to PHP 5.6 valet stop brew unlink php71 brew install php56 brew install php56-mcrypt