Install & Set Up Apache Web Server on Windows 10 - Quickly!

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ • 176

  • @FlavorOfTheMonthChannel
    @FlavorOfTheMonthChannel  3 роки тому +36

    A few additional tips:
    Problem: httpd: Syntax error on line 39 of C:/PHP/Apache24/conf/httpd.conf: ServerRoot must be a valid directory
    Fix: Ensure that your Apache folder is in the proper directory, under the C:/ directory (in this example)
    Problem: Installed Apache Service in the wrong location?
    Fix: use the command "sc delete apache2.4" to delete the Apache service. If you do this, you'll have to run httpd -k install again to reinstall though

    • @LexGear
      @LexGear 2 роки тому +3

      I had to edit the conf file and change it to the correct drive letter. Otherwise worked well.

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

      If you've already installed the service as well you'll need to edit the Image path as well. Go to Run, regedit, go to the directoy: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache2.4 Once you're there right click Image path and update it to the new directory you unzipped to. Full string should look like this once you're done. "C:\Apache24\bin\httpd.exe" -k runservice Mine worked after that.

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

      You're a champion for this!

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

      @@RolloTompson1231 Yo im stuck where do i edit the image

    • @claybowser
      @claybowser 7 місяців тому

      thanks man!

  • @ADHD_Gamer
    @ADHD_Gamer 2 роки тому +14

    1:51 TIP SHORTCUT (FOR CMD)
    METHOD 1: Click your path bar in your explorer (top part that says "c:\bla\bla\bla" - delete what is there and just type "cmd"
    METHOD 2: Shift+Right click in a blank space within this folder and you will see a new item called "Open command window here"
    Hope that helps!

  • @Wiktor2802
    @Wiktor2802 2 роки тому +6

    Very underrated channel! Probably the only decent video tutorial out there showing how to install apache.

  • @betosfilm
    @betosfilm 3 роки тому +18

    This video contains exactly what the title describes. Thank you! it worked perfectly!

  • @MessyMasyn
    @MessyMasyn 8 місяців тому +1

    10/10 tutorial, im not even overexaggerating like some people do, the tutorial does exactly the title says in 5 minutes

  • @mamifero.efimero
    @mamifero.efimero 2 місяці тому

    127.0.0.1 shows me "Access Denied", but the .html file showed me it works! Great tip!

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

    I tried Apache in 2015. Thanks for your video.

  • @MoryBinM-90
    @MoryBinM-90 8 місяців тому +1

    I'm getting a:
    Windows could not start the apache2.4 service on local computer.
    Error 2: the system cannot find the file specified.
    -------
    Also,
    I've tried learning /following with lots of people on many different programming languages.
    This is the first time I actually understood.
    Thanks a bunch👍🏼

    • @joshualesternunez5657
      @joshualesternunez5657 7 місяців тому

      you can try to type C:\Apache24\bin>httpd.exe -h install and then proceed to type httpd.exe -k install

    • @LouisKaranja
      @LouisKaranja 3 місяці тому +1

      For your errors, how did you resolve it?

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

    Thank you, this is the only explanation my illiterate brain was able to understand!!
    Saved me 👍

  • @CambrielMoore
    @CambrielMoore 2 роки тому +1

    Really great video and the pinned comment really helped with the installation process!

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

    Just want to say this is a very good tuturiol, very quick and easy. Thank you for producing it.

  • @alexmutuku254
    @alexmutuku254 3 роки тому +4

    What do you do if it says
    Windows could not start the apache2.4 on local computer.

  • @pradeeplanka6976
    @pradeeplanka6976 3 роки тому +5

    Thanks a lot. Quick and well planned guide. Everything needed is covered quickly.

  • @johnhill7137
    @johnhill7137 3 роки тому +5

    Great video. Simplest one I have seen and installed with ease. Many thanks. Off to look at your PHP one now.

    • @FlavorOfTheMonthChannel
      @FlavorOfTheMonthChannel  3 роки тому

      Thanks for the feedback! I'm working on a video for adding in the MySQL database portion as well, soon to come

  • @jasonjente6793
    @jasonjente6793 2 роки тому

    pro tip when you are at that directory in file explorer instead of copying and pasting the path, type CMD and it will launch cmd to that exact path!

  • @crescenstan7167
    @crescenstan7167 2 роки тому +8

    Thanks for this vid!
    One problem I had run into was the ServerRoot being linked to the wrong directory.
    "httpd: Syntax error on line 37 of C:/Apache24/conf/httpd.conf: ServerRoot must be a valid directory"
    Just a heads up to others, you must locate this file
    "..\Apache24\conf\httpd.conf" open and edit the var "SRVROOT" (I found this var at line 37).
    Change the file path to whatever folder "Apache24" is in.
    In my case, it was from
    " Define SRVROOT "C:\Apache24" "
    to
    " Define SRVROOT "C:\httpd-2.4.52-win64-VS16\Apache24" "
    Hope this helps anyone that may have ran into this problem!

    • @thahrimdon
      @thahrimdon 2 роки тому +3

      You're an actual legend. I hope he sees this and adds it to the pinned comment. For anyone wondering, THIS IS THE FIX!

    • @taggerung_
      @taggerung_ 2 роки тому +1

      thanks so much dude

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

      Love you brother! Thanks!

  • @VariantBank
    @VariantBank 9 місяців тому +1

    Thank you so much! For this to work put it in your c drive all under a folder called Apache24. Putting it under other files breaks it I guess.

  • @TheRealCrispOFC
    @TheRealCrispOFC 2 роки тому +5

    For me when installing it says: Could not reliably determine the server's fully qualified domain name, using fe80::dcf0:6d80:e5c1:d0c5. Set the 'ServerName' directive globally to suppress this message

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

    Subscribed. But but I see people's petty attitude, coming here, watching the video, getting the knowledge, and leaving without liking or subscribing.

  • @theusaftechguy
    @theusaftechguy 2 роки тому +1

    Super helpful, Thanks for taking the time to make this video!

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

    how do we connect the local website up to the internet?!?

  • @ESEben10
    @ESEben10 4 місяці тому +1

    So, if I would like to add a java script or css file, I'd do it on the htdocs folder?

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

      Yep, that's correct. You can either add new files in the htdocs folder, or just write the javascript/css directly into the index.html file.

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

      @@FlavorOfTheMonthChannel Thank you! Could you please leave the link to the next video where you add PHP if it exists? I couldn't find it on your channel.

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

      @@ESEben10 Sure! Here it is:
      ua-cam.com/video/VwObm3qvS3Q/v-deo.html

  • @tractorman7733
    @tractorman7733 3 роки тому +2

    thank you very much! My main server is running apache with php and sql addons, but I wanted apache installed on my laptop so when I am writing code on the go, I can test my code

  • @anastasiyatkachova5412
    @anastasiyatkachova5412 2 роки тому +1

    Thank so much! You helped me a lot. This video was short and useful!

  • @subhamdey3361
    @subhamdey3361 2 роки тому +1

    but notNice tutorialng seems to work. Tried built-in content, and scarlett solo. What's the hardware you have? windows mac? special soft card?

  • @bantuandproud8456
    @bantuandproud8456 2 роки тому +1

    1. When running cmd it says an error must be corrected before the service can be started. Syntaxes error on line 39 of C:/users/ ..........
    2. Windows can't start service

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

    Life saver thank you so much for this video. It was quick simple and easy 🎀 may God bless you

  • @erichsu5786
    @erichsu5786 3 роки тому +1

    Exactly what I was looking for, thank you!

  • @bwarholak
    @bwarholak 2 роки тому +1

    Thanks! This is just what I needed :)

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

    Thanks for the guidance, Sir.

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

    Great info! I love how quickly and concisely you went through the material. You can also just paste in the Apache24 folder's location in that config file (unless there's another reason later, because it works otherwise to get started).

  • @AnonYmous-zt6kr
    @AnonYmous-zt6kr 3 роки тому +2

    Can the server be accessed publicly (not on the same network) ?

  • @Mr.Dirkelz
    @Mr.Dirkelz 8 місяців тому

    Hey, I would like to see the rest of the videos

  • @Amranwen
    @Amranwen 2 роки тому +1

    Thank you so much for this video! This really saved my day

  • @victoriakopp8321
    @victoriakopp8321 3 роки тому +2

    Hi! When I put 127.0.0.1:
    Opens a page:
    Apache/2.4 OpenSSL
    This page is used to test the proper operation of the Apache HTTP server after it has been
    installed. If you can read this page, it means that the web server installed at this site is
    working properly, but has not yet been configured.
    What can I do?

  • @orlinchirinos1981
    @orlinchirinos1981 2 роки тому

    The installation went well except for the error I get from httpd: Syntax error on line 39 of C:/PHP/Apache24/conf/httpd.conf: ServerRoot must be a valid directory. I can't seem to get it fixed right. I need help! Can you give me an example?

  • @kaistnov3024
    @kaistnov3024 3 роки тому +1

    Thank you so much for your video. It helps me a lot. Thanks sir!

  • @kech-agmaio8620
    @kech-agmaio8620 3 роки тому +2

    i love this guy

  • @WellnessandWholeness21
    @WellnessandWholeness21 7 місяців тому +1

    It was very helpful.Thanks

  • @Tysuwndbbs
    @Tysuwndbbs 3 роки тому +2

    What if the access get denied ?

  • @littlebee3431
    @littlebee3431 3 місяці тому

    I cannot start Apache services from 3:20 :(

  • @Vincent-fo9ie
    @Vincent-fo9ie 2 роки тому

    hello! i would like to ask whether i can later connect this to a mysql platform? thanks!

  • @THE_DONIX
    @THE_DONIX 4 місяці тому +1

    Thankyou so much for this video❤

  • @benjaminmoon4554
    @benjaminmoon4554 3 роки тому +2

    When I try to start the service I get a services message that says "windows could not start the Apache2.4 on local computer...refer to service-specific error code 1."
    Do you have any advice for how to resolve this issue? Thank you.

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

    Please How can I ssl by installing kind of self certificate

  • @AJAYKUMAR-gu7yj
    @AJAYKUMAR-gu7yj 3 роки тому +3

    Thanks it worked for me

  • @itztoofan
    @itztoofan 2 місяці тому +1

    dayummmmm it works wellll!!
    🍃🍃

  • @gruberaccountancy6965
    @gruberaccountancy6965 3 роки тому +2

    That was sooo Groovy!

  • @itztoofan
    @itztoofan 2 місяці тому +1

    I have a problem, i followed all your steps now the website is live and running in my pc but how to run it on other devices. I simply means I wanna show my friends what I did but the ip address is not working for them😅

    • @itztoofan
      @itztoofan 2 місяці тому +1

      Any solutions on relation to this issue please

    • @FlavorOfTheMonthChannel
      @FlavorOfTheMonthChannel  2 місяці тому +1

      @@itztoofan I could make a tutorial for this next. I suppose I've kind of dragged my feet on it because hosting an apache server publicly online comes with a lot of security risk. This tutorial is more so for the first step, which many people use for local/company networks. I'm curious to hear your thoughts though!

  • @ultrafireman
    @ultrafireman 4 роки тому +2

    I can’t seem to install this on my virtual machine I get hit with an error that says “the application was unable to start correctly”

    • @FlavorOfTheMonthChannel
      @FlavorOfTheMonthChannel  4 роки тому

      Sorry for the delayed response. You can find the error log for Apache, which will contain more details at: ‪C:\Apache24\logs\error.log. Perhaps your virtual machine has a different version of Windows other than Windows 10. What VM are you using?

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

    Hey, how would one enable a mod_rewrite?

  • @FernandoBarretto10
    @FernandoBarretto10 3 роки тому

    Thanks man. Congrats for it!

  • @Anonymous-er9id
    @Anonymous-er9id 9 місяців тому

    Thanks a lot, this video saved a lot of time 👍

  • @monoxgg
    @monoxgg 3 роки тому +1

    Quick and Easy. Thanks!

    • @FlavorOfTheMonthChannel
      @FlavorOfTheMonthChannel  3 роки тому +1

      Excellent, always want to save my viewers time & get to the true process of setting these things up! Thx for the feedback

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

    I keep getting error 5, access is denied. I am using admin account and running as administrator

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

    Hi , Thanks for tutorial.. Is it safe to download & Install directly in production environments or Do we need to compile apache httpd binaries before installing in production systems.. kindly answer...

  • @rifatbhuiyan2543
    @rifatbhuiyan2543 3 роки тому +3

    I'm getting this after install command "Set the 'ServerName' directive globally to suppress this message"

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

    Can I somehow just lunch it, without installing ?

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

    Thank you! It really works. Great

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

    I would like a tutorial for getting an apache server to connect to the internet.

  • @anything.with.motors
    @anything.with.motors Рік тому

    Could not get services to start apaches.
    Somthing about sintax line 39 being wrong on cmd

  • @bhagvaangodiswarallahkhudaparv
    @bhagvaangodiswarallahkhudaparv 3 роки тому +1

    how to make server for global access??

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

    Thanks its help me out and next how to install php after apache installed ?

  • @jesusdelarua5995
    @jesusdelarua5995 2 роки тому

    Great Help! Thank you.

  • @TruongTran-rd3cy
    @TruongTran-rd3cy 6 місяців тому +1

    Thank u !! it works for me

  • @aaronwolfe9640
    @aaronwolfe9640 2 роки тому

    Thank you for the tutorial.

  • @mariliacortesmillet1104
    @mariliacortesmillet1104 5 днів тому +1

    It works!!!

  • @diom00
    @diom00 2 роки тому

    You are a god. I unironically cheered when it showed me at the end "It works!"
    P.S. it may seem simple for experienced developers but I'm a new student, and my uni's guide was hopeless so i decided to figure it out myself, which it didnt work

  • @manishbhosale2828
    @manishbhosale2828 2 роки тому

    i want deploy my html file on web server how can i do that??

  • @IAmScarab
    @IAmScarab 4 роки тому

    Ive followed the video but in PhpMyAdmin i get an error at the bottom saying "Invalid server index: " and the drop down choice box shows 2 "Localhost" servers". Any clues you could help me. TIA

    • @FlavorOfTheMonthChannel
      @FlavorOfTheMonthChannel  4 роки тому +1

      In your windows services list (go to start menu, type in "services"), do you have more than one service running for Apache? Also, are you trying to set up PhpMyAdmin for MySQL? The error "Invalid server index" would make me think that there's a phpmyadmin config that is looking for apache, but it's got the improper list / references to point to your apache 2.4 install. I'll be making a follow up video soon for installing MySQL to the webserver as well, so maybe that'll help.

    • @IAmScarab
      @IAmScarab 4 роки тому +1

      @@FlavorOfTheMonthChannel Thanks for the swift reply, I found the problem in the config file. When I edited it I placed some code before the $i = ++ which I guess was skipping the first couple of variables I added. Cheers

    • @FlavorOfTheMonthChannel
      @FlavorOfTheMonthChannel  4 роки тому +1

      @@IAmScarab Ah ok nice, thanks for following up with the info on how to fix it

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

    After starting the service I am getting an alert saying
    "Windows could not start the Apache 2.4 on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service- specific error code 1."
    Please help 🙏

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

      How you solve it?

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

    will it autostart when the windows start?
    And can it read PHP?

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

      Yep, this service should start when Windows starts up.
      It can read PHP, but make sure you follow these steps to get PHP set up:
      ua-cam.com/video/VwObm3qvS3Q/v-deo.html

  • @quincyofarrell3061
    @quincyofarrell3061 3 роки тому

    Thanks allot, nice and clear explanation...

  • @346ask
    @346ask 3 роки тому

    How can I get SSL cert on localhost with Apache?

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

    Very nice video. Question, is it possible to install apache in a VM in a local pc and also install django there and server this out to internet, or for more practical purposes to a intranet or network?

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

      In many cases, the server will be virtually hosted on a cloud platform like "digital ocean" to accomplish this. You could put the server with Django on either your local computer, a VM on your local computer, or a VM on a server hosting platform, if desired. Generally speaking, most people/companies host the server on a virtual hosting service that they pay for, so they don't have to deal with any of the hardware issues of running their own server.

  • @ratmoneyg
    @ratmoneyg 3 роки тому

    The system cannot find the file specificied. No installed service named "Apache2.4". What do I do?

    • @gjumper9871
      @gjumper9871 3 роки тому

      My guess is that you are in the wrong directory.
      Use these commands in cmd as admin:
      >cd ...
      >cd ..
      >cd C:\Apache24\bin

    • @hd_legendzhdl2600
      @hd_legendzhdl2600 3 роки тому +1

      @@gjumper9871 i have the same problem still havent been able to fix it im in the right directory

  • @weaponkid1121
    @weaponkid1121 3 роки тому

    What keyboard are you using and what switches?

  • @CarlosEduardo-nj9nz
    @CarlosEduardo-nj9nz 2 роки тому

    Thank you it helped me a lot

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

    super helpful!!

  • @sask1a41
    @sask1a41 3 роки тому +1

    cool stuff really helpful!

  • @coolvibesreloaded7946
    @coolvibesreloaded7946 2 роки тому

    When are you going to make a video on connecting your domain

  • @Frostrogfuly
    @Frostrogfuly 3 роки тому

    Thank you! It was helpfull

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

    How to connect apche to web

  • @Rbwars
    @Rbwars 3 роки тому

    Hey it says it can't run on local computer

  • @mlopez1007
    @mlopez1007 4 місяці тому +1

    Good tutorial video.

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

    thank you well explained

  • @lawrentiaonwumelu2911
    @lawrentiaonwumelu2911 6 місяців тому +1

    Thank you

  • @TheDevoutTrout
    @TheDevoutTrout 7 годин тому

    im still waiting on the tutorial for how to get this to the internet

  • @lavftw3808
    @lavftw3808 3 роки тому +9

    Windows could not start Apache2.4 on Local Computer

    • @christancone243
      @christancone243 2 роки тому

      Same issues

    • @RolloTompson1231
      @RolloTompson1231 Рік тому +7

      The httpd.exe file depends on the extract to location being the C: drive. If you have it anyway else you have to edit the directory in the httpd.exe file. Trust me there's too much to edit. Just delete the file and re-extract the zip file to the C: drive. If you've already installed the service as well you'll need to edit the Image path as well. Go to Run, regedit, go to the directoy: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache2.4 Once you're there right click Image path and update it to the new directory you unzipped to. Full string should look like this once you're done. "C:\Apache24\bin\httpd.exe" -k runservice Mine worked after that.

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

      @@RolloTompson1231 thank you so much

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

      @@RolloTompson1231 good lookin bro, thank you!

  • @Rei-km7yj
    @Rei-km7yj 3 роки тому

    Great video!

  • @rajkumaremmadi5553
    @rajkumaremmadi5553 3 роки тому

    it shows code execution cannot be processed!!!

  • @KingHenVII
    @KingHenVII 6 місяців тому +1

    thanks a lot

  • @wellington18m
    @wellington18m 3 роки тому

    Hello there. Please could you make a video on how to host .net core app using apache. Thanks in advnace!

  • @adriyear
    @adriyear 3 роки тому

    THANKS A LOT

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

    ty a lot bro

  • @Smooth-y4d
    @Smooth-y4d Рік тому

    thnk you

  • @sidd8988
    @sidd8988 3 роки тому

    thanks

  • @dittonisty
    @dittonisty 8 днів тому

    tysm

  • @JoelARuiz-js1vy
    @JoelARuiz-js1vy Рік тому

    Good job

  • @BlueDolphinBlues
    @BlueDolphinBlues 2 роки тому

    Mine doesn't work. 😅 Always something...