OS X Apache PHP
I was pleasantly surprised to find out how easy it is to "use" Apache + PHP on OS X. That's right, no need to install it, it comes preinstalled. Just edit /private/etc/apache2/httpd.conf and uncomment the php_module line ('LoadModule php5_module'). Then go to System Preferences > Sharing, and enable Web Sharing.
Testing this is as easy as:
cat > ~/Sites/test.php
<? phpinfo(); ?>
^d
Then go to http://localhost/~username/test.php :)


0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home