![]() But they forego the learning experience and, as most developers report, can become difficult to manage. I am aware of the web server software available for Mac OS X, notably MAMP. To create a local web server, all you need to do is configure Apache and install MySQL. Furthermore, Apache and PHP come packaged with Mac OS X. Mac OS X automatically creates a separate Apache-configuration file for each user you create, through the Accounts pane in System Preferences. ![]() So most UNIX software installs easily on Mac OS X. The main HTML directory for your Web server is /Library/WebServer/Documents, which is defined in the Apache-configuration file ( /etc/httpd/nf ) by the DocumentRoot directive. ![]() If you have installed Apache, PHP, and MySQL for Mac OS X Yosemite, read my post on Updating Apache, PHP, and MySQL for Mac OS X El Capitan. Note: This post is for new installations. After you complete this post, you should upgrade PHP on Mac OS X. PHP Update: Mac OS X El Capitan comes pre-installed with PHP version 5.5 which has reached its end of life. MacOS Update: While these instructions still work, there are new posts for recent versions of macOS, the latest being Install Apache, PHP, and MySQL on macOS Mojave.
0 Comments
Leave a Reply. |