LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-30-2014, 01:52 PM   #1
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Rep: Reputation: Disabled
How can you design websites hosted on Apache?


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!!
 
Old 06-30-2014, 02:19 PM   #2
fang0654
Member
 
Registered: Oct 2003
Location: New York, NY
Distribution: Ubuntu
Posts: 110

Rep: Reputation: 28
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.
 
Old 06-30-2014, 03:06 PM   #3
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fang0654 View Post
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?
 
Old 06-30-2014, 07:42 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Websites hosted on a single IP through reverse IP? ilnli Programming 2 09-17-2011 08:32 PM
unable to view hosted websites Sargalus Linux - Software 1 03-31-2010 04:40 PM
Reverse DNS lookup and get the hosted websites vargadanis Linux - Server 12 02-22-2007 11:06 AM
Multi-Websites Hosted with /etc/hosts File? mpapet Linux - Networking 2 11-13-2006 02:48 PM
can not see websites from my lan, hosted by me siweb Linux - Networking 12 07-30-2004 01:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration