How to Host Multiple WordPress Websites on One Server with Apache

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ก.ย. 2024
  • Learn how to host multiple websites on a single IP address or server. This video will teach you the Apache configuration settings necessary to run many WordPress websites on one hosting plan, each with their own domain name.
    Need an Apache LAMP server? • How to Install an Apac...
    Code snippets and more at tonyteaches.te...
    Check out my vlog channel ‪@TonyFlorida‬
    #apache #wordpress

ความคิดเห็น • 123

  • @a.j743
    @a.j743 4 ปีที่แล้ว +7

    I never see this -thing- so clear as you explained here! Really, it's like all those command lines now actually make sense to me!
    Thanks!

    • @TonyTeachesTech
      @TonyTeachesTech  4 ปีที่แล้ว +2

      Awesome, I'm so happy to hear that :)

  • @JoshMustillo
    @JoshMustillo 2 ปีที่แล้ว +2

    Sweet tutorial. Followed this thoroughly as well as other guides with no luck, my two separate installs of wordpress are installed correctly and accessible however visiting my separate domains will take me to the one site. Must be something else

  • @gindoprinandosinaga8109
    @gindoprinandosinaga8109 2 ปีที่แล้ว +1

    the best mentor ever, really helpfull and clear explenation

  • @gregorypape1675
    @gregorypape1675 3 ปีที่แล้ว +2

    Perfect! To the point and complete. Neophyte trying to deploy on Linode. I didn't even know what LAMP was! Very helpful!

  • @rafi_45
    @rafi_45 3 ปีที่แล้ว

    this channel explain all about wordpress for totally new beginner with very clear. thank you Tony. GBU.

  • @gralexp
    @gralexp 2 ปีที่แล้ว

    Perfect. And I know people wrote it before, just want to comment to promote the video. Thank you.

  • @marcf868
    @marcf868 2 ปีที่แล้ว

    Thanks! It's been really helpful while trying to get two WP sites running in parallel

  • @anuanusha3986
    @anuanusha3986 2 ปีที่แล้ว +1

    Very good explanation. Thank you for this video. It cleared my doubts...😊

  • @chernovchernov
    @chernovchernov 2 ปีที่แล้ว

    This turtorial is not full! 🙂 You have two site from the beginning, but how did you do that? When I install two different sites WordPress to the two different directories, change apache2 settings, however I came to the first site!

  • @graveshotx
    @graveshotx 4 ปีที่แล้ว +3

    Exactly the video I was looking for, thank you for making it!

    • @TonyTeachesTech
      @TonyTeachesTech  4 ปีที่แล้ว +1

      No problem, glad you enjoyed it!

    • @mirowahedali3962
      @mirowahedali3962 4 ปีที่แล้ว

      How to remove one of the website from multiple websites without effect other

    • @TonyTeachesTech
      @TonyTeachesTech  4 ปีที่แล้ว

      @@mirowahedali3962 You can simply remove the config from the sites-enabled directory

  • @kevin_kk
    @kevin_kk 3 ปีที่แล้ว +2

    Simple & straight to the point! Thanks

  • @IceCoffy
    @IceCoffy 3 ปีที่แล้ว

    Thank you for that helpful info and thank you for no background music.

  • @AshishGupta-ku4fd
    @AshishGupta-ku4fd ปีที่แล้ว

    Hey.. Thanks for this help but please can you tell how enable ssl for wordpress. i failed to enable SSL with Lets Encrypt ! Could you do video for it ?

  • @3rdtwirl494
    @3rdtwirl494 4 หลายเดือนก่อน

    Hi. I’ve got a new client who says it’s Wordpress but I’ve finally logged into cPanel but don’t see WP installed. Though the files are there. Is apache also in cPanel ? I think it’s apache . How can I access the files to make changes if so

  • @lyloulou3581
    @lyloulou3581 10 หลายเดือนก่อน

    Followed all the steps but i cannot load the WP install. When i type the external IP address i get the Apache HTML welcome page. Any advice ?

  • @tubePravake
    @tubePravake 2 ปีที่แล้ว

    Beautifully explained and made really easy. However I was wondering what are the security precautions that i have to take if I were to host my 3 business sites that I have in WordPress? Could you please help me on the same?

  • @PranavKumarG
    @PranavKumarG 3 ปีที่แล้ว

    my second wordpress installation open up the 1st wordpress site can't I host unique niche, and also the permalinks have index.php sandwiched like domainpro.net/index.php/top-5-most.
    Any help is commendable
    Thank you in advance.

  • @ipv4subnet628
    @ipv4subnet628 3 ปีที่แล้ว +1

    How does the DNS lookup know that site 1 2 and 3 are all on the same IP? There has been nothing done to separate site 1 from 2 from 3 so I'm trying to see how each site would be seen as a different site from another under the same IP . I know this is possible to do by specifying additional ports like site1:80 site2:81 site3:82 but I was wondering if there's another more simple way :/

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      The web server (like Apache) handles the external traffic and routes it to the proper site. The DNS server doesn't make this distinction. Make sense?

  • @Legacybldr
    @Legacybldr 2 ปีที่แล้ว

    Wow! This is awesome. I can use this for the oracle free instance. Thank you, Tony

  • @JunaidAhmed-ox2xd
    @JunaidAhmed-ox2xd 3 ปีที่แล้ว

    in the end you cleared the confusion, i was about to ask :)
    any ssl binding video ?

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      Check this video out th-cam.com/video/bgcRhucEn90/w-d-xo.html

  • @i92black
    @i92black ปีที่แล้ว

    Superb! Bro Your are the Linux Genius.

  • @wh3647
    @wh3647 2 ปีที่แล้ว

    If you are creating your own servers and hosting 3 sites how do you certbot each site?
    Also how would you create a per user per site? Tried WordPress and it could not auto update the site as it did not have permissions and needed ftp setup

  • @lashachan
    @lashachan 2 ปีที่แล้ว

    Hey Tony. Which DO droplet would you recommend for 30 WordPress websites? Websites include blogs, corporate, and e-commerce. Average traffic per website - 800.

  • @ss4717
    @ss4717 3 ปีที่แล้ว

    Great video, just wondering why don't you need to change the ownership of /var/www/ instead of root to www-data?

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว +1

      By default that the /var/www/ directory has the appropriate permission after a fresh install of the OS

  • @PlayhouseMediaGroup
    @PlayhouseMediaGroup 3 ปีที่แล้ว

    Hi Tony, Thank you so much for the tutorial it is very useful to me since I have a number of domains I need to host, I have a quick question, so all the domains are pointing to one IP address for that virtual machine?
    I want to use GCP virtual machines

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว +2

      Yes, all domains will point their DNS records at the same IP address. Apache will do the work of routing which requests go to which website on your server

  • @hydrabeast911
    @hydrabeast911 2 ปีที่แล้ว +1

    Can make custom domain website like that for free? Just like you did.

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว

      You'll need to purchase a domain name and web hosting. You do have some free options for web hosting though th-cam.com/video/6gHPY0qQebg/w-d-xo.html

  • @mitchellaninyang12
    @mitchellaninyang12 3 ปีที่แล้ว

    Hey Tony, loved the video. But i'm using virtual box on mac to do this. how do i configure everything in my terminal, and use that as my primary workspace, just like you?

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      I wouldn't suggest developing directly in terminal on your Mac. Either spin up a VPS (at Linode, DigitalOcean, or Vultr) th-cam.com/video/IBswOtYVu2k/w-d-xo.html from $5/month or use a tool like DevKinsta th-cam.com/video/LsH-GIEgjag/w-d-xo.html assuming you are working exclusively with WordPress

  • @zariffathurrahman6454
    @zariffathurrahman6454 2 ปีที่แล้ว

    Good tutorial. I just wondering which is the good practice to host multiple wordpress. Should i go with your tutorial or use container like docker?

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว

      Not sure about docker. Hosting multiple sites on the same server is okay. This is how many hosting companies work

    • @zariffathurrahman6454
      @zariffathurrahman6454 2 ปีที่แล้ว

      @@TonyTeachesTech understand, thanks for the answers tony.

  • @supernovas9587
    @supernovas9587 3 ปีที่แล้ว

    hi tony I have followed the step on you video(i except using linode for the hosting too) and I found that if I enter the site 2 website it will redirect to site 1

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      Please double check your Apache config file to make sure it matches my examples

  • @alinaseri7951
    @alinaseri7951 2 ปีที่แล้ว

    very well detailed. thanks very much.

  • @lobnagheriani1757
    @lobnagheriani1757 3 ปีที่แล้ว

    hi thanks for the tutorial.... what if i dont have site 1 or site 2 configurations to copy :/ is there a tutorial on how to host several websites from scratch on VPS

  • @roohulamin16
    @roohulamin16 3 ปีที่แล้ว

    Wow! Its just Amazing Love it. Thanks very much.

  • @wcg981dddwwwhhh
    @wcg981dddwwwhhh 3 ปีที่แล้ว

    Is possible to change Domain name after everything is setup. I tried other way, it was not easy to change main site domain.

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      Yes, but it's complicated because you have to change it in many places

  • @trondnylkken956
    @trondnylkken956 10 หลายเดือนก่อน

    If I like 2 sites on server1 and 2 sites on server2 on same ip and port 80. I hope you can explan .

  • @antidotejack2771
    @antidotejack2771 4 หลายเดือนก่อน

    Why all your sites have the same port? is that valid? why?

  • @edgar-mmxxiii
    @edgar-mmxxiii 3 ปีที่แล้ว

    We also have the same setup, linode and namecheap but my second domain does not display from its configured DocumentRoot instead it pulls the default one with the first domain name

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว +1

      Make sure to have a unique ServerName in each of you config files

    • @edgar-mmxxiii
      @edgar-mmxxiii 3 ปีที่แล้ว

      @@TonyTeachesTech That worked

  • @MAJIDNISAR
    @MAJIDNISAR 3 ปีที่แล้ว

    i have , now installing the plugins and updates prompts asking for ftp credentials

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      Try this th-cam.com/video/hPuB_yXfbK0/w-d-xo.html

  • @walderfranco
    @walderfranco 4 ปีที่แล้ว

    Great video, but if you use bitnami LAMP amazon lightsail?

    • @TonyTeachesTech
      @TonyTeachesTech  4 ปีที่แล้ว

      If your server is still LAMP, these instructions should still work for you

  • @Popcorncandy09
    @Popcorncandy09 3 หลายเดือนก่อน

    How secure is this though?

  • @gewoondekker3052
    @gewoondekker3052 2 ปีที่แล้ว

    Do you need the new domain name for the website

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว

      Not necessarily. You can use a subdomain

  • @mukeshraj4257
    @mukeshraj4257 3 ปีที่แล้ว

    How dns now that ip address is a localhost or public available domain.

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      You'll need to create an A record for your domain name that points to the IP address of your server

  • @anvarabdu825
    @anvarabdu825 2 ปีที่แล้ว

    Good! Thank you! How about import ready file into localhost?!

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว

      You can use ftp or scp. I have videos for both on this channel

  • @Taiwaneverything
    @Taiwaneverything 3 ปีที่แล้ว

    Great tutorials, should have much more followers. :)

  • @AliRaza-vc7jk
    @AliRaza-vc7jk 3 ปีที่แล้ว

    Hey Tony! Great Tutorial video. Can You please share the Commands which You use in this video?

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว +1

      Here you go tonyteaches.tech/host-multiple-websites-apache/

    • @AliRaza-vc7jk
      @AliRaza-vc7jk 3 ปีที่แล้ว

      @@TonyTeachesTech
      Thanks (Y)

  • @oxomax
    @oxomax 3 ปีที่แล้ว

    Dude!!!! ...there is something called "Control Panel". Does it ring any bell??????
    By the way. I've benefitted so much from you vids about vps management. So thank you so much

  • @mirowahedali3962
    @mirowahedali3962 4 ปีที่แล้ว

    Plz show how to create subdomain and install wordpress on it.

    • @TonyTeachesTech
      @TonyTeachesTech  4 ปีที่แล้ว

      You can host a WordPress website at a subdomain with the same exact steps in this tutorial

  • @vaishnav3735
    @vaishnav3735 3 ปีที่แล้ว

    How do I connect a vps with my domain like I do with nameserver in normal web hosting

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      Yep, simply add a DNS A record to your IP address

  • @sidharthv
    @sidharthv 3 ปีที่แล้ว

    Great tutorial.. Thank you!

  • @wanshinlee9866
    @wanshinlee9866 3 ปีที่แล้ว

    Do i need to point my new domain to this IP address before making these steps?

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว +1

      It would be very beneficial to do that as a first step. Technically you could use the IP addresses to begin with, but you'll eventually have to switch over to the domain, so might as well do it initially

    • @wanshinlee9866
      @wanshinlee9866 3 ปีที่แล้ว

      @@TonyTeachesTech If do so, will the new domain also points to my current website? As my rDNS setting are pointing to my current website(Domain)

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      @@wanshinlee9866 No you can only have an A record that points to a single IP address. If you'd like to work on the new server without changing your DNS records but still use the domain name, you edit your local hosts file. I've made a video about this:
      If you have Windows th-cam.com/video/Htn3WojEdMI/w-d-xo.html
      If you have a Mac th-cam.com/video/bSjVIhJIDUo/w-d-xo.html

    • @wanshinlee9866
      @wanshinlee9866 3 ปีที่แล้ว

      ​@@TonyTeachesTech Lots of thanks! so i need to delete the rDNS before pointing my new domain to the IP address?

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      @@wanshinlee9866 Yes, you won't need that anymore

  • @harieshkumar8409
    @harieshkumar8409 2 ปีที่แล้ว +2

    Hey Tony It’s really nice…. Can u make out how to add ssl certificate to this wordpress websites

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว

      Check this out th-cam.com/video/ghZXFyIyK1o/w-d-xo.html

  • @wasisadman6849
    @wasisadman6849 4 ปีที่แล้ว

    Can anyone please explain (" Does he need to buy these 3 domains? or it can be generated as inside the server? ")

    • @TonyTeachesTech
      @TonyTeachesTech  4 ปีที่แล้ว

      You must buy the domain names from a registrar like Google Domains or Namecheap

  • @satishkumarojha5377
    @satishkumarojha5377 3 ปีที่แล้ว

    I am not able to write in wp-config.php it is showing that you can't open file for writing

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว +1

      Sounds like you need to add write permissions to this file. Something like this...
      chmod +w wp-config.php

    • @satishkumarojha5377
      @satishkumarojha5377 3 ปีที่แล้ว

      @@TonyTeachesTech thank you so much sir.....ur videos are helping me a lot 🙏🙏🙏

  • @hashimp9870
    @hashimp9870 8 หลายเดือนก่อน

    Thanks man

  • @alperkeske
    @alperkeske 3 ปีที่แล้ว

    What about SSL for these 3 website?

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      You can use Let's Encrypt th-cam.com/video/PGDx3xxLGgA/w-d-xo.html

  • @arijitbiswas1905
    @arijitbiswas1905 3 ปีที่แล้ว

    ...Need some mysql tutorial too ...

  • @tiosing_eduard1
    @tiosing_eduard1 3 ปีที่แล้ว

    can you teach for does beginner people ??? thank you
    i just wandering if can you release some like this video for does beginner people hehehe
    thank you i hope i see you next time see yah!!!

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      What specifically are you interested in learning? I can certainly point you in the right direction :)

  • @phamvandat2000
    @phamvandat2000 ปีที่แล้ว

    tks so much

  • @mohammadrezaebrahiminoor-ed5ok
    @mohammadrezaebrahiminoor-ed5ok 7 หลายเดือนก่อน

    goooooooooooood

  • @einsteinwallah2
    @einsteinwallah2 3 ปีที่แล้ว

    how to install multiple wordpress on different folders in a single website? like abc.tech/home abc.tech/french abc.tech/german etc

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      You would need to change the Site URL and Site Address in the WordPress settings

  • @Pretzel_God
    @Pretzel_God 11 หลายเดือนก่อน

    after that one xkcd comic, "sql" is forever "squill" to me.

  • @chrisdamonsworld
    @chrisdamonsworld 3 ปีที่แล้ว

    Good video

  • @live.sports717
    @live.sports717 9 หลายเดือนก่อน

    How to host multiple websites with single IP address in Windows using XAMMP?

  • @probaldas4734
    @probaldas4734 4 ปีที่แล้ว

    I again come too check if i am clicked on link button or not because i sm drunk

  • @tritonus1008
    @tritonus1008 3 ปีที่แล้ว

    Instead of opening the website, my browser is googeling it...

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      Huh???

    • @tritonus1008
      @tritonus1008 3 ปีที่แล้ว

      @@TonyTeachesTech Yeah I found the solution now. In Windows 10 you still have to configure the hosts-File for every single new virtual host in ubuntu. (Iam using WSL, the windows internal linux system)