Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hey guys I am not sure if this belongs here as I am confused as to how this even works so sorry if it doesnt. I have a cents box running Apache Web server. It's been configured currently and works, however the main home page is just some text I entered to show that the Web server is working. How do I go about adding things to the website besides text such as banners or images like this website has at the top? I understand you need to know HTML5 and you do this in a program such as dreamweaver, but then how do you get that onto the Web server?
If I am incorrect or am missing information please give me everything you know, I am new to this and want to learn. I will learn HTM5 if I have to (I learned the lua language in the past). Thanks!!
Everything for the web site (depending on how Apache2 is configured) sits in what is called the web root. This is usually /var/www. So for example, if you have a file index.html, with an image banner.jpg, they would both be in the /var/www folder. You'll usually set it up on your own local computer, and copy it over using something like sftp.
Everything for the web site (depending on how Apache2 is configured) sits in what is called the web root. This is usually /var/www. So for example, if you have a file index.html, with an image banner.jpg, they would both be in the /var/www folder. You'll usually set it up on your own local computer, and copy it over using something like sftp.
Okay I am starting to understand. Could I keep all of these things in a separate folder in /var/www/html instead of it all just disorganized in html folder?
the file and folder structure of your webroot is what is visible to people visiting your website, so you have to ask yourself, do you want them to enter "mydomain.com/" or "mydomain.com/folders/www/". as simple as that.
the server usually looks for an "index.html" file first and serves that out to the public.
this is essentially just an ordinary text file. you fill it with html syntax.
you can start coding html by hand, i find it far more satisfying than using some software for that.
as to the design, these days CSS is the way to go.
tutorials are all over the web. maybe w3schools.com is a good starting place (although criticised by some).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.