How to Run Apache Web Server on macOS 13

preview_player
Показать описание
AKA "The Number One HTTP Server On The Internet" - Setting up and running Apache web server takes just a few minutes. I also show you how to access the web files and config. This is all done in macOS Ventura. If you're on a Windows machine, I recommend going to the docs link below to learn how to build for Windows.

YouTube Algorithm ➡ Like, Comment, & Subscribe!
Рекомендации по теме
Комментарии
Автор

This is the platonic ideal of a tech how to video. 👏 thank you for your service!

chrisandersonphoto
Автор

Brilliant video and you explained it very well! Thank you alot!

nestrojil.pictures
Автор

I made it almost all the way to the end! The var directory has nothing in it, no www.. Is there something I missed installing? I'm on a M3 MBP running latest Sonoma.

davidstembridge
Автор

It should be mentioned that this is (I believe) shown on a Mac with Apple silicon/chips (M1/M2). Hence the path /opt/homebrew/etc/httpd. If you're using a Mac with Intel chips, you will see everything in the path /usr/local/etc/httpd (which the video does point out around 4:05). And then, as others here have pointed out, there's the Apache/httpd that comes OOTB with Macs. But a lot of us prefer to use the Homebrew managed packages for ease of maintenance. But, in the case of Apache/httpd I feel there might be a lack of parity with the OOTB version. For example, where are the sites-available and site-enabled folders? Where is the 000-default.conf file?

pslamba
Автор

Thank you for the video. Just out of curiosity, does Apache not have a GUI?

sairaj
Автор

Thanks for the helpful video. Any idea how would I access the .htaccess files?

DArcyLaycock-uq
Автор

This was good but AFAIK Macs come with Apache installed and all the configs ready.
At least on my machine: apachectl start and edit your html in /Library/WebServer/Documents. No installs needed.

braedonwatkins
Автор

this is way cool. thanks! i appreciate new content with updated processes for the new M1/M2 macOS chips. i'm curious about the little dynamic web page you're serving at the end. i'd like to replicate it, but i'm so inexperienced i don't know how to even form the query on google—getting lots of junk. can you post how you're getting the webserver to dynamically appear on your web page? or point to a link/tutorial/more info? thanks again! 🙏

mazal-bb
Автор

Helped me and it would be good if you help do php

manmade
Автор

localhost worked, but I'm not finding the www folder. The directory opt is empty.

adamoalighieri
Автор

how to stop the server, I cannot find its pid in the list, killed a bunch of of processes for nothing
EDIT: brew services stop httpd worked

yt-
Автор

showing command not found :brew
please help

Sai-xbxo
Автор

Too bad that the AppleSilicon Mac Pro won't be able to support more than 192GBs of RAM and have all of those PCI slots available that vendors won't bother to make things for 'cause it's locked down and Apple won't buldge to open their source models on their PCI architecture... Too bad. This makes the Mac horrible at anything server, specially their MacPro offerings. Apple used to be good at server, or at least have something workable. Futile. The Mac doesn't scale at all at being a server with locked RAM and PCI, even if they would have a kickass SoC, SoCs DO NOT scale, PERIOD.

HikikomoriDev
Автор

yeah. who need php when you got httpd, says a mac user 😂

thorandlundeve