Hi Almaz,

[EMAIL PROTECTED] wrote:

> Hello Dave,
>
> Thanks for your reply!
>
> In a message dated 1/26/00 8:25:26 PM Eastern Standard Time,
> [EMAIL PROTECTED] writes:
>
> > [EMAIL PROTECTED] wrote:
> >
> >  > Hello Everybody,
> >  >
> >  > Fortunately I hope I don have problem with connecting to Internet
> >  > with my modem anymore! Thanks to all of you who helped
> >  > me in that situation!
> >  >
> >  > I have installed Linux Red Hat 6.1 !
> >  > Is anyone here who have Red hat Linux and running WEB-SERVER?
> >  > Will you be so kind to explain me what is procedure of setting
> >  > up WEB SERVER ? What should I do next after I connected to Internet
> >  > via modem?
> >
> >  Well, first you will need to make sure that you have apache (WEB SERVER)
> >  installed and configured, but the internet will only be able to see your
> >  web server if you have a static IP number and have registered a domain
> >  name to that IP number.
>
> I do have apache software came with Red Hat 6.1 but how can I know what
> version is it?
> Also how can I know if my Apache already installed and configured?

To find out if apache is running type 'ps aux | grep httpd' at a command
prompt.  If apache is running, you should see output similar to below.

[root@eden /root]# ps aux | grep httpd
root       463  0.0  0.8  2628 1324 ?        S    Jan26   0:00 httpd
nobody     669  0.0  0.8  2680 1296 ?        S    Jan26   0:00 httpd
nobody     670  0.0  0.8  2680 1296 ?        S    Jan26   0:00 httpd
nobody     671  0.0  0.8  2680 1296 ?        S    Jan26   0:00 httpd
nobody     672  0.0  0.8  2680 1296 ?        S    Jan26   0:00 httpd
nobody     673  0.0  0.8  2680 1296 ?        S    Jan26   0:00 httpd
nobody     674  0.0  0.8  2680 1296 ?        S    Jan26   0:00 httpd
nobody     675  0.0  0.8  2688 1296 ?        S    Jan26   0:00 httpd
nobody     676  0.0  0.7  2692 1272 ?        S    Jan26   0:00 httpd
nobody     677  0.0  0.8  2680 1296 ?        S    Jan26   0:00 httpd
nobody     678  0.0  0.8  2680 1296 ?        S    Jan26   0:00 httpd
nobody     957  0.0  0.8  2688 1296 ?        S    Jan26   0:00 httpd
nobody     958  0.0  0.8  2688 1300 ?        S    Jan26   0:00 httpd
nobody     959  0.0  0.8  2680 1300 ?        S    Jan26   0:00 httpd

If it is running, you can find the version by typing 'httpd -v'.

[root@eden /root]# httpd -v
Server version: Apache/1.3.6 (Unix)  (Red Hat/Linux)
Server built:   Apr  7 1999 17:17:41

If it is not running you can start it by:

[root@eden /root]# /etc/rc.d/init.d/httpd start

The main configuration file for apache is /etc/httpd/conf/httpd.conf and, as
installed, should allow you to type http://127.0.0.1/ into the address line of
the browser on your linux machine. This should show you the apache welcome
page.

> What is static IP?

Static IP means that your IP number, once allocated, does not change. In other
words, every time you connect via a modem, you will get the same IP number.

For example, try the following:

[root@eden /root]# ping www.yahoo.com
PING www.yahoo.com (204.71.200.68): 56 data bytes
64 bytes from 204.71.200.68: icmp_seq=0 ttl=239 time=344.5 ms
64 bytes from 204.71.200.68: icmp_seq=1 ttl=239 time=310.1 ms
64 bytes from 204.71.200.68: icmp_seq=2 ttl=239 time=299.9 ms

--- www.yahoo.com ping statistics ---
4 packets transmitted, 3 packets received, 25% packet loss
round-trip min/avg/max = 299.9/318.1/344.5 ms

www.yahoo.com is always 204.71.200.68

> What difference between static and regular IP?

A static IP is the 'regular' type. The other type is called dynamic IP. This
means that whenever you dial in by modem, you get allocated whichever IP
number is available. This could be the same as you had the last time, or it
could be one that you have never had before. There is no way of knowing until
you are actually connected what your IP address is.

> I have registered domain but how can I assign it with IP,static IP?

Without knowing more about your particular circumstances, it's difficult to
say, but it is unlikely that you will be able to if you only have a dial-up
account with an ISP. That account probably comes with some free web space on
their server which will have an address such as www.yourisp.com/~alma/. In the
UK, the only way to run your own web server from your own location is to have
a very expensive leased line installed. Things may be different in other parts
of the world.

> >  If you are connecting with a modem through an ISP, your IP number is
> >  most likely allocated dynamically and will therefore be different every
> >  time you connect. You might also find that the IP number your ISP
> >  allocates is in one of the 'internal' ranges, e.g. 192.168.*.*. If this
> >  is the case your machine will not be seen at all by the internet in
> >  general.
> >
> >  You can find out the IP number when you are connected by using
> >  'ifconfig'.  The number you need is in the entry for ppp0 and should
> >  look something like:  inet addr:195.147.170.197  although the number
> >  will of course be different.
>
> I have been type at root while my mac was connected to machine:
> ifconfig
> but nothing came up and
> bath: ifconfig: command not found
> appears.
> How should I use ifconfig for IP?

Is bath your linux server? This is the output from my machine while connected
by modem.

[root@eden /root]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:50:BA:BD:6D:8E
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:174 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          Interrupt:11 Base address:0xe800

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:3453 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3453 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0

ppp0      Link encap:Point-to-Point Protocol
          inet addr:195.147.131.11  P-t-P:195.147.128.3  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:7 errors:3 dropped:0 overruns:0 frame:3
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10

eth0 is the network card for my local office network, lo is the loopback
interface to the local machine and ppp0 is the serial port/modem connection to
the internet.

In my case, my ISP actually assigns me a real IP number (195.147.131.11 on
this particular connection, but it will be different next time I dial-in), so
my machine when connected can, and does occasionally, operate as a web server
for demonstration puposes to clients. In order to do this I have to use
ifconfig to find out my IP address and then tell my client to use (say on the
above connection) 'http://195.147.131.11/' instead of
'http://www.whatever.com/'. As long as all the links in your site are
'relative' rather than 'absolute', everything works fine.

A 'relative' link would be <a href="nextpage.html"> and an absolute link would
be <a href="http://www.whatever.com/nextpage.html">

> >  > I am expecting DSL or CABLE in my area but until then I am gonna use
> >  > my modem
> >
> >  All the above applies to both DSL and cable modems, but even more so. I
> >  have never seen a DSL or cable setup that uses real IP numbers, perhaps
> >  someone else knows differently

Perhaps I didn't explain that very well. When I said real IP numbers, I meant
IP numbers that are not in the 3 ranges of addresses that are reserved for
private networks. These are: 10.0.0.0 to 10.255.255.255, a range in the 170's
which I can't remember offhand, and 192.168.0.0 to 192 .168.255.255. These
addresses will not be passed by internet routers and so can not be seen from
anywhere outside your local network.

> Do you mean that DSL and CABLE use only static IP?

Well it's a bit more complicated than that, but generally a DSL or cable modem
link is usually 'always on'. So once your IP is assigned, it usually stays the
same, but your IP is usually assigned dynamically by the DSL router in the
first place and the companies reserve the right to change it at will. It is
also likely that your IP number will be in one of the reserved ranges.

>
> Thank you in advance,
> Almaz

You're welcome. If you need any more help, email me direct. It's probably
better not to clutter the list with this subject, unless others feel the help
is useful.

regards,
Dave
--
He was part of my dream, of course -- but then I was part of his dream too.
                -- Lewis Carroll

email: [EMAIL PROTECTED]
web: www.largesalad.co.uk/DJMsoft

Reply via email to