![]() ![]() Sudo apachectl restart Setting up root directoryĪpache’s default directory is /Library/WebServer/Documents that is where ` It work’s!` file is located at. ![]() You can start, stop, and restart your server by typing: sudo apachectl start If you see “It works!” apache is running. Verify if apache is running by accessing If you get “This site can’t be reached”, you need to start apache, just type, sudo apachectl start and press enter: ![]() To check what version of apache you have currently installed on your mac just open you terminal and type httpd -v To create a local web server, all you need to do is configure Apache and install MySQL. Getting Startedįirst, open the Terminal app and switch to the root user to avoid permission issues while running these commands.Apache and PHP come packaged with OS X. 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 enable them and install MySQL. Furthermore, Apache and PHP come packaged with Mac OS X. So most UNIX software installs easily on Mac OS X. This post is a complete update for installing Apache, PHP, and MySQL on Mac OS X Yosemite.Ī reminder that Mac OS X runs atop UNIX. Specifically, Yosemite includes Apache 2.4. It seems Mac OS X Yosemite makes my original post on installing Apache, PHP, and MySQL on Mac OS X obsolete. I recently upgraded to Mac OS X Yosemite. After you complete this post, you should upgrade PHP on Mac OS X. PHP Update: Mac OS X Yosemite 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |