![mac os x apache mysql php mac os x apache mysql php](https://www.thoughtco.com/thmb/vE9At-28EOgNt2OP0OqG7o4XAzo=/2592x2592/smart/filters:no_upscale()/social-media-life-484161929-5c6f625dc9e77c000107b579.jpg)
#MAC OS X APACHE MYSQL PHP HOW TO#
Later in this article, you will learn how to create an Apache Virtual Host and map it into any directory that you wish to use. The welcome message is contained in the file named. In Apache-speak, that’s called the DocumentRoot. In case you’re wondering where Apache is looking up the file to serve from the localhost, it’s located here:
![mac os x apache mysql php mac os x apache mysql php](https://www.adrianprieto.com/wp-content/uploads/2016/12/apache.jpg)
You can test it out to see if Apache is really running by firing up Safari or any Web Browser that you installed in you system and typing this in the address bar: You should be able to see a Welcome Message. Naturally, the sudo command will ask you for an administrative password, so go just type it in. You just need to run Apache to see it in action. This one is pretty quick and easy since Apache 2 is really installed Mac OS X. So enough talk, let’s get going with the setup. And in fact, most commands that you issue against the database server are similar and compatible. Note that I picked MariaDB in favour of MySQL, but the two have a lot of things in common. This article shows you how to setup a PHP Web Development environment within Mac OS X (Mavericks) containing the following software components: Apache 2, PHP (of course), and MariaDB Server. So under the hood, I feel comfortable already. Here is a sampling of the things that comes pre-installed into a fresh Mac OS X: Python, Ruby, PHP, Apache and many more. It’s got most of the things I need for Web Development work. Underneath its beautiful User Interface, Mac OS X is a power-house - it’s an operating system based on UNIX.