How to Run Apache Web Server on macOS 13

Поділитися
Вставка
  • Опубліковано 3 січ 2025

КОМЕНТАРІ • 40

  • @remyazharyyosef1811
    @remyazharyyosef1811 27 днів тому

    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.

  • @chrisandersonphoto
    @chrisandersonphoto 4 місяці тому

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

  • @nestrojil.pictures
    @nestrojil.pictures Рік тому +3

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

  • @jrpeet
    @jrpeet Рік тому +2

    Hey man ... super helpful

  • @gilespugh2220
    @gilespugh2220 Рік тому +1

    Really clear, really good!😃

  • @hiya_bhatt
    @hiya_bhatt Рік тому +1

    Helped me alot! Thank you!

  • @AhmedAbdulSalam
    @AhmedAbdulSalam 2 місяці тому

    thank you really helpful 😍

  • @joseramonortizcastaneda8581
    @joseramonortizcastaneda8581 Рік тому +2

    super helpful

  • @pslamba
    @pslamba 5 місяців тому

    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?

    • @nagiswaifeuu
      @nagiswaifeuu 4 місяці тому

      why i cant start the httpd? the terminal shows an error, im using M2

    • @pslamba
      @pslamba 4 місяці тому

      @@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.

  • @abdullahalmagfi4498
    @abdullahalmagfi4498 Рік тому +1

    thanks man

  • @davidstembridge1262
    @davidstembridge1262 10 місяців тому +1

    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.

  • @buuk7108
    @buuk7108 Місяць тому

    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?

  • @utsavdesai3451
    @utsavdesai3451 Рік тому +1

    Very helpful!

  • @adamoalighieri
    @adamoalighieri Рік тому +1

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

    • @tech-genius
      @tech-genius Рік тому +5

      It should be inside /usr/local/opt instead of just /opt directory. I just struggled on this for the past 2 hours

    • @yahussainmazloom1
      @yahussainmazloom1 Рік тому

      @@tech-genius Really helpful video , should i put my published api folder inside www folder? how host api?

    • @tech-genius
      @tech-genius Рік тому +2

      Sorry buddy, this is was a few months ago when I tested this out, I don’t remember it at all now

  • @AhmedElAbbas
    @AhmedElAbbas 11 місяців тому

    Thank you kind sir

  • @DArcyLaycock-u5q
    @DArcyLaycock-u5q 11 місяців тому

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

  • @sairaj6875
    @sairaj6875 Рік тому

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

    • @EmpowerProgramming
      @EmpowerProgramming  Рік тому +1

      For what we did in the video, no. GUI tools do exist to help manage your servers, though.

  • @kjvisual7
    @kjvisual7 Рік тому +1

    Thanks

  • @braedonwatkins967
    @braedonwatkins967 8 місяців тому

    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.

  • @mazal-bb
    @mazal-bb Рік тому

    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
      @mazal-bb Рік тому

      @@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)? 🙏

    • @mazal-bb
      @mazal-bb Рік тому +1

      @@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.

  • @Sai-xb3xo
    @Sai-xb3xo Рік тому

    showing command not found :brew
    please help

    • @EmpowerProgramming
      @EmpowerProgramming  Рік тому +1

      Make sure you have homebrew installed. Go to brew.sh to install. You can verify it's installed by entering `brew update`

    • @RomaIan
      @RomaIan Рік тому

      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.

  • @yt-1161
    @yt-1161 5 місяців тому

    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

  • @manmade88
    @manmade88 9 місяців тому

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

  • @Human_Evolution-
    @Human_Evolution- Рік тому

    1st off, what is Apache?

  • @HikikomoriDev
    @HikikomoriDev Рік тому +1

    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.

  • @thorandlundeve
    @thorandlundeve 11 місяців тому

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