It's easy to switch back and forth between stock- and MacPorts-Apache instances, but running both at the same time, without changing network port settings, will cause problems. Important: To avoid conflicts with the stock Apache installed on your Mac, turn off Personal Web Sharing under the Sharing System Preferences pane. If you have MacPorts and your database of choice installed, let's get started. I hope to try LightTPD sometime but for now I'll stick with Apache simply because I'm comfortable configuring and administering it. LightTPD does not consume the CPU cycles or memory that Apache does and looks like an efficient alternative. I've read great things about LightTPD, a light-weight HTTP server. If you're going to develop site's against a database, might I suggest installing MySQL. If you haven't already done so, install MacPorts. Use MacPorts to install Apache 2 and PHP 5 Install everything but the kitchen sink with MAMP or XAMPP Use the stock Apache 1.3 with a PHP package, like the one from Here are a few of the options Mac users have to set up a PHP development environment: I'll mention a few of the other options and then share the steps I've used to install Apache 2 and PHP 5 with MacPorts. While options abound, MacPorts may be the easiest option to configure a local web development environment on your Mac. The steps should now work for Leopard as well as Tiger. 4/2/08 - Added php.ini settings to use the proper MySQL socket at /tmp/mysql.sock.ģ/23/08 - After going through these instructions on a new Leopard system, I made a few minor updates.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |