Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 4311  / 2 Years ago, thu, december 9, 2021, 2:16:39

Was a tie between here and Server Fault, and I decided that it belongs more here.



Anyway, I am seeking to host a website on my computer using Ubuntu Server 11.04. I've got just a few questions.



First off, does anyone know of any good tutorials, guides, or other documentation for learning their way around the terminal? I know the basics, but any sort of in-depth guide would be absolutely lovely. I know that it is possible to install a GUI, but I'd just honestly enjoy working with and learning the terminal more anyway, and I'm certain I'll have to learn it at some point in my life.



Secondly, do any of you have links to videos or (preferably) written guides on how I can set it up so that others may access and view the pages and files I upload?



FINAL THOUGHT: I am running Ubuntu Server in a Virtual Machine as all the spare computers in my home have fallen victim to my screwdriver. Would this give me any issues? I am aware that desktops are generally not built for long periods of activity.



FINAL THOUGHT PS: Thank you all so much for any assistance that you can provide. It is incredibly appreciated. (。◕‿◕。)


More From » 11.04

 Answers
1

The Ubuntu documentation can probably get you most of the way.



1. Using the terminal



This is a very open-ended issue. Tutorials like UsingTheTerminal will tell you some of the basics but I'm really not sure how much you think you need to know.



Start there. If you run into any more issues, try Google, the search on this site and failing that, post a new question explaining what you're trying to do.



2. Hosting a website



If you're just hosting simple html files (no dynamic languages), the easiest document to read through is the server guide for Apache (a web server).



If you want MySQL and PHP too, the LAMP page might do you better. It still uses Apache, so don't be afraid to read both as you'll get a better understanding of Apache from the server guide.



Neither of these explain the underlying networking that you'll need to do too:




  • Port forwarding on the router to allow people to access your computer's port 80 from the internet.

  • The DNS (eg DynDNS) so you can bind a domain name to a dynamic IP your ISP gives you.



If you're just hosting things on a local network, you can ignore those items.



3. Is virtualised good enough?



Desktops aren't built to run all the time? Speaking as somebody whose desktop has been in near-enough constant use for two years (down for upgrades, rewiring, etc), I can say, as long as it's a good desktop, it'll make a perfectly serviceable server.



You're right, in essence. Server grade hardware is built with long service terms in mind but modern consumer hardware is (and has been for the past 5-10 years) very acceptable. I say that with the bias of somebody who tends to buy premium components... I'm not sure what budget hardware is like these days.



What is the VM host? If it's also Ubuntu, why not just install Apache on that, and forgo the virtualisation?



Virtualised systems are slower. They take up a chunk of overhead too (not too much in Ubuntu Server's case, but still 100+ megabytes of ram that you might not have spare). However, serving static files from Apache is a trivial task. It uses a pathetically small amount of CPU time, so performance really shouldn't be an issue at all.


[#44124] Saturday, December 11, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jectedrin

Total Points: 491
Total Questions: 105
Total Answers: 111

Location: Netherlands
Member since Mon, Jun 7, 2021
3 Years ago
;