|
+1
|
Congratulations, OS X comes bundled with Apache and PHP, so you're actually half way there already! Open ![]() By checking and unchecking the Web Sharing option, you are effectively starting and stopping the Apache web server. You'll need to stop/start Apache throughout the configuration process for new settings to take effect, so remember the above process. Alternatively, you can restart Apache from the command line using You now have Apache started, but PHP support is not enabled by default. To enable PHP, you'll need to modify In TextWrangler, go to
... and remove the
Save the file. You'll also need to prepare a copy of
Save the file and restart Apache using the procedure mentioned at the beginning of this article. PHP is now enabled. If you don't want to install a database (MySQL, PostgreSQL, etc), you can jump into writing PHP. You can replace the "It works!" page by editing the files located in If you're ready to setup MySQL, continue on to this article: tagg.im/thread/117/how-to-setup-mysql-on-mac-os-x To use MySQL via a UNIX socket, you'll also have to fix an issue with the default copy of
... such that it reads:
At some point in OS X's past,
As for development tools available on OS X, the consensus seems to be that NetBeans PHP is currently leading the pack of IDE's. It's available on Windows, Linux, and of course, OS X: netbeans.org
Posted 1 year ago by
|
|


