lkpkind.blogg.se

Mac apache config path
Mac apache config path




mac apache config path mac apache config path

Find DocumentRoot "/usr/local/var/www" and replace it with DocumentRoot "Users/your_username/your_sites_folder" (so your localhost will point to your sites folder).Find Listen 8080 and replace it with Listen 80 (so you can leave :8080 off your local domains).Open /usr/local/etc/httpd/nf in a text editor like Sublime.Anyway, make sure you have a sites folder before configuring Apache. Also, it is good practice to create a subfolder or every project in there. Your sites folder should be somewhere in your Users/your_username folder, to avoid permissions problems. In my case it's Users/joostvanveen/htdocs. Most of the time, this will be something like Users/your_username/Sites. You probably already have a folder where you keep all you local sites. Once Apache is running you can check this by opening your browser and surfing to (you new cache install will listen to port 8080). # This way it will be automatically loaded after every reboot of your Mac # Install a fresh Apache server via Homebrew Sudo launchctl unload -w /System/Library/LaunchDaemons/ 2>/dev/null So first off, we are going to install Apache via Homebrew. Install Apache via Homebrew OSX Mojave comes with Apache installed, but it's not easy to get this working with Homebrew. If you are on OSX Mojave, you will need some additional libraries. Install Homebrew # Check if Homebrew is already installedĬheck the health of your Homebrew installation. Open your terminal of choice and let's start running some commands. My development setup part 2: Install and configure Apache 2 on Mojave with Homebrew Install Xcodeįirst of all, you need to have Xcode installed. Links to the other blogs in this series are at the bottom. test domains, multiple PHP versions that I can easily switch between, Redis, Opcache, Image Magick, Blackfire and more.

mac apache config path

In this blog series, I take you through the steps I took to create my new setup: a blazingly fast and flexible setup with Apache, automatic DNS setup for.






Mac apache config path