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