How to Host Multiple WordPress Websites on One Server with Apache

Тәжірибелік нұсқаулар және стиль

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.tech/host-multipl...
Check out my vlog channel ‪@TonyFlorida‬
#apache #wordpress

Пікірлер: 123

  • @a.j743
    @a.j7433 жыл бұрын

    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

    3 жыл бұрын

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

  • @gregorypape1675
    @gregorypape16753 жыл бұрын

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

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Great to hear!

  • @iMacbarack
    @iMacbarack Жыл бұрын

    Superb! Bro Your are the Linux Genius.

  • @gralexp
    @gralexp2 жыл бұрын

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

  • @marcf868
    @marcf8682 жыл бұрын

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

  • @alinaseri7951
    @alinaseri7951 Жыл бұрын

    very well detailed. thanks very much.

  • @kevin_kk
    @kevin_kk3 жыл бұрын

    Simple & straight to the point! Thanks

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Sure thing Kevin

  • @anuanusha3986
    @anuanusha39862 жыл бұрын

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

  • @rafi_45
    @rafi_453 жыл бұрын

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

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    You're very welcome!

  • @graveshotx
    @graveshotx3 жыл бұрын

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

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    No problem, glad you enjoyed it!

  • @mirowahedali3962

    @mirowahedali3962

    3 жыл бұрын

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

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

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

  • @roohulamin16
    @roohulamin163 жыл бұрын

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

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Most welcome 😊

  • @Legacybldr
    @Legacybldr2 жыл бұрын

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

  • @TonyTeachesTech

    @TonyTeachesTech

    2 жыл бұрын

    You’re welcome!

  • @sidharthv
    @sidharthv3 жыл бұрын

    Great tutorial.. Thank you!

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    You're very welcome!

  • @hashimp9870
    @hashimp98705 ай бұрын

    Thanks man

  • @JoshMustillo
    @JoshMustillo2 жыл бұрын

    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

  • @IceCoffy
    @IceCoffy3 жыл бұрын

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

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Of course!

  • @Taiwaneverything
    @Taiwaneverything3 жыл бұрын

    Great tutorials, should have much more followers. :)

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    I appreciate that a lot! Thanks :)

  • @phamvandat2000
    @phamvandat200011 ай бұрын

    tks so much

  • @TonyTeachesTech

    @TonyTeachesTech

    11 ай бұрын

    yw

  • @chrisdamonsworld
    @chrisdamonsworld3 жыл бұрын

    Good video

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Glad you enjoyed

  • @JunaidAhmed-ox2xd
    @JunaidAhmed-ox2xd3 жыл бұрын

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

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Check this video out kzread.info/dash/bejne/lJuXtMquk6jUaZM.html

  • @tubePravake
    @tubePravake Жыл бұрын

    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?

  • @mohammadrezaebrahiminoor-ed5ok
    @mohammadrezaebrahiminoor-ed5ok5 ай бұрын

    goooooooooooood

  • @PranavKumarG
    @PranavKumarG3 жыл бұрын

    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.

  • @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 ?

  • @PlayhouseMediaGroup
    @PlayhouseMediaGroup3 жыл бұрын

    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 жыл бұрын

    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

  • @lashachan
    @lashachan2 жыл бұрын

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

  • @3rdtwirl494
    @3rdtwirl494Ай бұрын

    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

  • @mitchellaninyang12
    @mitchellaninyang123 жыл бұрын

    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) kzread.info/dash/bejne/e3an2bGtibnbYs4.html from $5/month or use a tool like DevKinsta kzread.info/dash/bejne/fqd8j6mCdcrQkco.html assuming you are working exclusively with WordPress

  • @chernovchernov
    @chernovchernov Жыл бұрын

    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!

  • @wh3647
    @wh36472 жыл бұрын

    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

  • @ss4717
    @ss47173 жыл бұрын

    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 жыл бұрын

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

  • @walderfranco
    @walderfranco3 жыл бұрын

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

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

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

  • @gindoprinandosinaga8109
    @gindoprinandosinaga8109 Жыл бұрын

    the best mentor ever, really helpfull and clear explenation

  • @TonyTeachesTech

    @TonyTeachesTech

    Жыл бұрын

    Great to hear it :)

  • @lyloulou3581
    @lyloulou35817 ай бұрын

    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 ?

  • @AliRaza-vc7jk
    @AliRaza-vc7jk3 жыл бұрын

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

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

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

  • @AliRaza-vc7jk

    @AliRaza-vc7jk

    3 жыл бұрын

    @@TonyTeachesTech Thanks (Y)

  • @zariffathurrahman6454
    @zariffathurrahman64542 жыл бұрын

    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.

  • @anvarabdu825
    @anvarabdu8252 жыл бұрын

    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

  • @supernovas9587
    @supernovas95873 жыл бұрын

    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

  • @lobnagheriani1757
    @lobnagheriani17572 жыл бұрын

    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

  • @TonyTeachesTech

    @TonyTeachesTech

    2 жыл бұрын

    I don't think so

  • @oxomax
    @oxomax3 жыл бұрын

    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

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    I'm happy to hear that Mohammed!

  • @Popcorncandy09
    @Popcorncandy0915 күн бұрын

    How secure is this though?

  • @ipv4subnet628
    @ipv4subnet6283 жыл бұрын

    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?

  • @trondnylkken956
    @trondnylkken9567 ай бұрын

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

  • @arijitbiswas1905
    @arijitbiswas19053 жыл бұрын

    ...Need some mysql tutorial too ...

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Noted, stay tuned

  • @tiosing_eduard1
    @tiosing_eduard13 жыл бұрын

    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 :)

  • @wcg981dddwwwhhh
    @wcg981dddwwwhhh2 жыл бұрын

    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

    2 жыл бұрын

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

  • @mirowahedali3962
    @mirowahedali39623 жыл бұрын

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

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

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

  • @edgar-mmxxiii
    @edgar-mmxxiii2 жыл бұрын

    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

    2 жыл бұрын

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

  • @edgar-mmxxiii

    @edgar-mmxxiii

    2 жыл бұрын

    @@TonyTeachesTech That worked

  • @antidotejack2771
    @antidotejack2771Ай бұрын

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

  • @vaishnav3735
    @vaishnav37353 жыл бұрын

    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

  • @MAJIDNISAR
    @MAJIDNISAR3 жыл бұрын

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

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Try this kzread.info/dash/bejne/moSppMGyiMnIe5M.html

  • @hydrabeast911
    @hydrabeast9112 жыл бұрын

    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 kzread.info/dash/bejne/aJt8srtpobTLkso.html

  • @gewoondekker3052
    @gewoondekker30522 жыл бұрын

    Do you need the new domain name for the website

  • @TonyTeachesTech

    @TonyTeachesTech

    2 жыл бұрын

    Not necessarily. You can use a subdomain

  • @harieshkumar8409
    @harieshkumar84092 жыл бұрын

    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 kzread.info/dash/bejne/mZyOuqiyedyxYdI.html

  • @mukeshraj4257
    @mukeshraj42573 жыл бұрын

    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

  • @wanshinlee9866
    @wanshinlee98663 жыл бұрын

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

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    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 kzread.info/dash/bejne/eqiilbmomqjKfaw.html If you have a Mac kzread.info/dash/bejne/lIeeuKuheqyqhdI.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

  • @wasisadman6849
    @wasisadman68493 жыл бұрын

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

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

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

  • @Pretzel_God
    @Pretzel_God8 ай бұрын

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

  • @alperkeske
    @alperkeske3 жыл бұрын

    What about SSL for these 3 website?

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    You can use Let's Encrypt kzread.info/dash/bejne/gnt42pWxqK-tl6Q.html

  • @einsteinwallah2
    @einsteinwallah23 жыл бұрын

    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

  • @satishkumarojha5377
    @satishkumarojha53773 жыл бұрын

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

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    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 🙏🙏🙏

  • @live.sports717
    @live.sports7177 ай бұрын

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

  • @probaldas4734
    @probaldas47343 жыл бұрын

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

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Uh oh 🍻

  • @tritonus1008
    @tritonus10082 жыл бұрын

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

  • @TonyTeachesTech

    @TonyTeachesTech

    2 жыл бұрын

    Huh???

  • @tritonus1008

    @tritonus1008

    2 жыл бұрын

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

Келесі