PHP 5.4+ has a built-in web server ... I was able to simply copy the php executable to a random folder and ...
# ~/someDir/php -S localhost:7676 -t ~/docRoot ENTER
PHP 5.4.0RC3 Development Server started at Tue Jan 3 15:57:33 2012
Listening on localhost:7676
Document root is /Users/localadmin/docRoot
Press Ctrl-C to quit.`
Go to http: // localhost: 7676 and you will be fine.
If you want even more portability, you can delve into the world of recompiling PHP with a build command such as ./configure --enable-static --disable-shared --disable-all
source
share