Linux experts.. please help on Apache web server..

puribong

Member
Mar 29, 2001
31
0
0
Hi guys..
I am praticing linux networking.

I have two computers.
Both computers have Red hat9.0 installed but first one I want to make it as DNS SERVER so I installed it as Server.
Second machine, I want to make it as DNS Client.
I configured them as followings:

Computer #1 (DNS SERVER)
Computer Name: Server
IP Address: 192.168.1.1
Subnet mask: 255.255.255.0

Computer #2 (DNS Client)
Computer Name: Client
IP address: 192.168.1.2
Subnet mask : 255.255.255.0

Now I need to install and configure the Apache Web Server using the DNS structure to provide web pages to small intranet and I need to replace the default webpage with INDEX.HTML so that when I type http//:server, I should see that file as a default webpage.

I am also wondering if you can do this with just one computer only.

so can anyone help me with this??



 

burnedout

Diamond Member
Oct 12, 1999
6,249
2
0
First of all, make sure apache is running on your server. You can easily do this by opening a command console or terminal from KDE or Gnome.

Type in: ps -ax | more

If the service is running, you should see about 6-8 entries after you hit the space bar a 1-2 times that display:

/usr/sbin/httpd

This indicates your http daemon or apache service is running. Then you can stay in command line and use wget or close and go back to the desktop and use the browser.

If you stay in command line, type wget http://localhost . If you open the browser, type the same without 'wget' and if the service is running, you should get the default apache page. To replace the page with one named index.html, you simply compose one with a text editor, name it appropriately, and then copy into the /var/www/html directory. Use vi or pico to edit in the directory for a minor screwup. For major screwups, I just work on the original text file and then copy back over to the directory.

Finally, read and work like the rest of us did.

Here is a good online beginners resource
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: puribong
Hi guys..
I am praticing linux networking.

I have two computers.
Both computers have Red hat9.0 installed but first one I want to make it as DNS SERVER so I installed it as Server.
Second machine, I want to make it as DNS Client.
I configured them as followings:

Computer #1 (DNS SERVER)
Computer Name: Server
IP Address: 192.168.1.1
Subnet mask: 255.255.255.0

Computer #2 (DNS Client)
Computer Name: Client
IP address: 192.168.1.2
Subnet mask : 255.255.255.0

Now I need to install and configure the Apache Web Server using the DNS structure to provide web pages to small intranet and I need to replace the default webpage with INDEX.HTML so that when I type http//:server, I should see that file as a default webpage.

I am also wondering if you can do this with just one computer only.

so can anyone help me with this??

You can do this with 1 computer only. Install Apache. Install BIND (or djbdns, or another DNS daemon). Configure each. Replace the index.html.?? with your index.html and you should be done.