mac where is php installed code example Example 1: run php server mac php -S localhost:9000 Example 2: check php version mac In terminal write: > php -v