Web Servers General Talk - newbies question

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers General Talk > July 2004 > newbies question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author newbies question
maurice

2004-07-04, 5:56 pm

Hello all, I have a question, I'm using ssh to access a server which has
linux box installed on it. The version of linux is SuSE Linux 9.1. My
question is this, is linux box a web server. I want to create a test web
page and play around with it. Can I do this from my home pc? I'm reading
information about how to publish a web page and they all say to use a FTP
program, do I need to do this if I am using ssh to access the server? Once
I'm on the server, can't I just use a text editor, like pico, to write some
html code, and save it with some extension? Afterwards, how do I see the
page on a web browser?
thanks in advance for any help
Maurice


David Dorward

2004-07-05, 5:56 pm

maurice wrote:

> Hello all, I have a question, I'm using ssh to access a server which has
> linux box installed on it. The version of linux is SuSE Linux 9.1. My
> question is this, is linux box a web server.


"Web server" can mean one of two things.

(1) A piece of software which understands http
(2) A computer with said piece of software installed on it

Most Linux distros come with at least one web server and Apache is often
installed by default (although some don't install it with Desktop or
Minimal installs).

> I want to create a test web page and play around with it. Can I do this
> from my home pc?


Probably

> I'm reading
> information about how to publish a web page and they all say to use a FTP
> program, do I need to do this if I am using ssh to access the server? Once
> I'm on the server, can't I just use a text editor, like pico, to write
> some html code, and save it with some extension?


There are two issues here.

(1) Creating the webpage
(2) Making it publically accessible over the web

I won't cover #1.

To make it accessible over the web you need a publically accessible web
server (it is likely the machine you ssh into is such). You then need to
place the file (or files) which make up the web page in the appropriate
place on the servers file system for the webserver software to find it.

This could be done by uploading the file with ftp (not advised), uploading
over ssh (typically via scp, sftp or rsync over ssh) or just creating the
file on the server in the first place.

You should consult your system administrator to find out where to place
files for them to appear over the web. /home/yourUsername/public_html/ is a
common location on Linux machines.

> Afterwards, how do I see the page on a web browser?


Again, consult your sysad. If you are putting them in public_html, then it
is likely to be http://www.example.com/~yourUsername/ (where
www.example.com is the hostname of your webserver).


--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Tim

2004-07-05, 5:56 pm

"maurice" <mr_chat123@yahoo.com> posted:

> I'm using ssh to access a server which has linux box installed on it.


My guess is that it's the other way around. You're accessing a server on
a Linux box.

> The version of linux is SuSE Linux 9.1. My question is this, is linux box
> a web server.


A computer running Linux can be a web server. It doesn't have to be one,
and a web server doesn't need to run on a Linux installation. It all
depends on whether web serving software is installed on the system that
you're using.

Basically put, a web server is just software. Any server is just software
(programming).

> I want to create a test web page and play around with it. Can I do this
> from my home pc?


You should be able to do it from any computer. Writing webpages (HTML) is
something that can be done on the simplest machines. Writing more
elaborate things requires that you know what you're doing (writing complex
HTML pages, or scripts and programs that run on the server).

> I'm reading information about how to publish a web page and they all say
> to use a FTP program, do I need to do this if I am using ssh to access
> the server? Once I'm on the server, can't I just use a text editor, like
> pico, to write some html code, and save it with some extension?


It depends on how the server is set up. Many have FTP access so you can
transfer your webpage files over to the server. If you've got SSH access,
you're logged into the remote system and are actually using it. It should
be possible to write documents that way, and save the results into the
right place for the web server to use them.

As a general rule, it doesn't matter in slightest how you name webpages
for them to be served to the web (you don't need to call a page
"example.html" you can call it "example.webpage", if you like), because the
server identifies what sort of information it's serving to the browser
(e.g. says it's "text/html"). But you do have to author your pages in a
manner that suits how the webserver is set up (decent systems allow you to
customise them). Generally speaking, they'll expect HTML pages to have a
..html filename suffix.

> Afterwards, how do I see the page on a web browser?


Browse to the URI that reflects the location of your pages on their
system.

If you were working on a server at "example.org", and put something like
"testpage.html" in the webserver's documents root directory (often
"/var/www/html/"), then you're probably going to be able to see your page
at one of the following URIs: <http://example.com/testpage.html> or
<http://www.example.com/testpage.html>

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com