You're such a godsend. Glad that I found your video for me to install Apache on my Mac. I had not done IT for ages and my knowledge is so rusty. I'm currently running Apache on my Synology NAS web server. And I need a .htaccess file to redirect all http links in my domain to https. So it helps to test my files before I upload them to my live server.
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?
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.
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.
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! 🙏
@@EmpowerProgramming @bigdreamcode @bigdreamcode wait, what? WHAT?! no more Mac??? 😭😭😭 "Say it ain't so, Joe! Say it ain't so!" 😿 Why? Btw, I did figure out how to get server info to print on my webpage-actually with the help of ChatGPT! lol. Thanks! For practice, I replicated your page exactly. I'm still curious though. You did all that in an HTML file? I had to write a small PHP script, with a .php extension. Is it possible for you to post the source file (app.html)? 🙏
@@EmpowerProgramming @bigdreamcode, wait, what? WHAT?! no more Mac??? 😭😭😭 "Say it ain't so, Joe! Say it ain't so!" 😿 Why? Btw, I did figure out how to get server info to print on my webpage-actually with the help of ChatGPT! lol. Thanks! For practice, I replicated your page exactly. But UA-cam won't let me post the URL.
The warning you received indicates that the directory where Homebrew is installed (/opt/homebrew/bin) is not included in your system's PATH environment variable. The PATH variable is a list of directories that your system searches when you run a command. Here's what you can do: 1.Open a new Terminal window. 2.Run the following command to open the configuration file for your shell: a) For the default shell (Bash), run: nano ~/.bash_profile b) Add the following line there: export PATH="/opt/homebrew/bin:$PATH" Save the file by pressing Ctrl+O, then press Enter. 3) Restart your Terminal or run the following command to apply the changes: source ~/.bash_profile After all this stept you can try again to install Homebrew again.
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.
You're such a godsend. Glad that I found your video for me to install Apache on my Mac. I had not done IT for ages and my knowledge is so rusty.
I'm currently running Apache on my Synology NAS web server. And I need a .htaccess file to redirect all http links in my domain to https.
So it helps to test my files before I upload them to my live server.
This is the platonic ideal of a tech how to video. 👏 thank you for your service!
Brilliant video and you explained it very well! Thank you alot!
Hey man ... super helpful
Really clear, really good!😃
Helped me alot! Thank you!
thank you really helpful 😍
super helpful
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?
why i cant start the httpd? the terminal shows an error, im using M2
@@nagiswaifeuu What's the error message? Try to check if any other process is using port 80 or the port httpd is trying to use.
thanks man
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.
Hi! When I typed open in my www file, a new window was not opened. Is there a way you could help me with this?
Very helpful!
localhost worked, but I'm not finding the www folder. The directory opt is empty.
It should be inside /usr/local/opt instead of just /opt directory. I just struggled on this for the past 2 hours
@@tech-genius Really helpful video , should i put my published api folder inside www folder? how host api?
Sorry buddy, this is was a few months ago when I tested this out, I don’t remember it at all now
Thank you kind sir
Thanks for the helpful video. Any idea how would I access the .htaccess files?
Thank you for the video. Just out of curiosity, does Apache not have a GUI?
For what we did in the video, no. GUI tools do exist to help manage your servers, though.
Thanks
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.
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! 🙏
@@EmpowerProgramming @bigdreamcode @bigdreamcode wait, what? WHAT?! no more Mac??? 😭😭😭 "Say it ain't so, Joe! Say it ain't so!" 😿 Why?
Btw, I did figure out how to get server info to print on my webpage-actually with the help of ChatGPT! lol. Thanks! For practice, I replicated your page exactly. I'm still curious though. You did all that in an HTML file? I had to write a small PHP script, with a .php extension. Is it possible for you to post the source file (app.html)? 🙏
@@EmpowerProgramming @bigdreamcode, wait, what? WHAT?! no more Mac??? 😭😭😭 "Say it ain't so, Joe! Say it ain't so!" 😿 Why? Btw, I did figure out how to get server info to print on my webpage-actually with the help of ChatGPT! lol. Thanks! For practice, I replicated your page exactly. But UA-cam won't let me post the URL.
showing command not found :brew
please help
Make sure you have homebrew installed. Go to brew.sh to install. You can verify it's installed by entering `brew update`
The warning you received indicates that the directory where Homebrew is installed (/opt/homebrew/bin) is not included in your system's PATH environment variable. The PATH variable is a list of directories that your system searches when you run a command.
Here's what you can do:
1.Open a new Terminal window.
2.Run the following command to open the configuration file for your shell:
a) For the default shell (Bash), run: nano ~/.bash_profile
b) Add the following line there: export PATH="/opt/homebrew/bin:$PATH"
Save the file by pressing Ctrl+O, then press Enter.
3) Restart your Terminal or run the following command to apply the changes: source ~/.bash_profile
After all this stept you can try again to install Homebrew again.
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
Helped me and it would be good if you help do php
1st off, what is Apache?
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.
Yup, agreed. Times have changed.
yeah. who need php when you got httpd, says a mac user 😂