Copyright © tutorialspoint.com

PHP Installation on Mac OS X

previous

Mac users have the choice of either a binary or a source installation. In fact, your OS X probably came with Apache and PHP preinstalled. This is likely to be quite an old build, and it probably lacks many of the less common extensions.

However, if all you want is a quick Apache + PHP + MySQL/PostgreSQL setup on your laptop, this is certainly the easiest way to fly. All you need to do is edit your Apache configuration file and turn on the Web server.

So just follow the following steps:

sudo open -a TextEdit /etc/httpd/httpd.conf
Load Module php5_module
AddModule mod_php5.c
AddType application/x-httpd-php .php
sudo apachectl graceful

You should see a long table of information about your new PHP installation message Congratulations!

previous

Copyright © tutorialspoint.com