Create Basic Setup For Mac5/11/2021
Instead, there will be some additional clarification and explanation as to what each command means and why.
Create Basic Setup Code Using ThePlease be 100 certain to swap in your actual user name on your Mac, where ever there are instances of code using the placeholder of username.During the World Wide D evelopers Conference on June 13, 2015, Apple officially announced that the next version of OS X will be branded as macOS.And with this latest iteration of the Mac desktop operating system dubbed Sierra the Californian landmark naming convention continues, too.New features and enhancements are in store for macOS Sierra, but as web developers, we know that major OS updates can leave things a bit odd depending upon our development environments. And with that notion in mind, this guide aims to assist macOS Sierra users in having Apache up and running with minimal fuss. Note: as of writing, macOS Sierra currently ships with Apache 2.4.23. Working Through This Guide This guide is taking a new approach as compared to my previous guides for Apache. I want to provide my readers with a few additional options and flexibility, as everyones needs are different. For example, the initial Apache configuration will set you up with a local Sites directory in your home folder where all of your local sites will live. Youll then have the ability to navigate to to view an index of your local sites (where username in the URL is swapped out with your actual username). The first optional item is to leverage the customization of Virtual Hosts and local hostnames. Areas and items you will be working through: Using Terminal Creating Sites and project directories Configuring Apache Optional Items Configuring Virtual Hosts and hostnames Enabling the Apache PHP Module 1. Using Terminal Many experienced web developers know how indispensable of a tool Terminal can be for completing their work. However, to users with inexperience using Terminal or even the command line in general, it can, at first glance, look downright daunting and uninviting Therefore, this guide aims to make your time in Terminal as painless as possible, teaching you some fundamental concepts along the way. A Word of Caution Before you jump in to Terminal and begin executing commands, I want to add a word of caution. Several commands listed throughout this guide will make use of sudo, which allows for users to elevate their security privileges to that of root or superuser. Be certain that whenever youre using sudo, youre not mistyping file paths or changing files that shouldnt be changed, etc. Simply put, proceed with caution while using sudo An alternative to meddling with native macOS files and programs via Terminal is to run a sandboxed Linux virtual machine directly on your Mac. This is actually a great approach for any developer and is a best practice that I highly recommend, regardless of your skill set and level. Another viable alternative is Homebrew, but that whole setup can get a bit messy. Otherwise, if youre comfortable with Terminal and just want your local version of Apache running on macOS Sierra, without messing around with virtual machines or Homebrew, then read on 1.2 Terminal and This Guide To get started with Terminal, you can find the app located at: Applications Utilities Terminal.app Go ahead and open it. You should have a window with content that looks similar to this your computer name followed by a colon, a tilde, and your Mac user name ending with a dollar sign: Johns-Air: John Commands will be entered after. This guide will include indicating a single line or single command. This guide will highlight some of the more common commands youll encounter while using Terminal and will not just gloss over these commands like most other guides.
0 Comments
Leave a Reply. |