Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

linux web and ftp server

Posted on 2001-09-11
5
Medium Priority
?
150 Views
Last Modified: 2013-12-16
refer to http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=linux&qid=20181417

Dear sir,

    I've installed RH 7.1 , with ftp and web server.However, I found that if I access the web server and ftp server from localhost, it is okay. But the computers on the network cannot access it.(I type the ip address of the server).Do you know what's the problem?
    BTW, in which file can I modify the init level such that when I boot into the Red Hat, I will go into graph mode instead of text mode?Thanks!
0
Comment
Question by:hpchong7
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:newmang
ID: 6476038
1) The runlevel is set in the /etc/inittab file.
In this file you will find a line reading  as follows :

id:3:initdefault:

Change the 3 to a 5 and the system will now boot into the GUI.

2) How does your system resolve host names? I found on my system that telnet & ftp did not accept external connections until I added an entry for my network DNS host.

Cheers - Gavin
0
 
LVL 2

Author Comment

by:hpchong7
ID: 6476647
Dear Gavin,
   May be I am the same as your case!!!Where do I add entry for my network DNS host?Thank you so much!
0
 
LVL 4

Accepted Solution

by:
newmang earned 0 total points
ID: 6478062
hpchong

The easiest way is to run linuxconf (as root) then select the networking section and then the name server section

The manual way to do it is to create (or modify) the /etc/resolv.conf file and add the following lines:

search domain.name.one domain.name.two
nameserver my.dns.ip.address

where the first line defines the domain names to use and the second defines the ip address of your DNS host.

You may also have to edit the /etc/nsswitch.conf file to ensure that the hosts: line includes the dns parameter.

linuxconf is the easier way to go about it.

Cheers - Gavin
0
 
LVL 2

Author Comment

by:hpchong7
ID: 6478329
I found that inside my etc/resolv.conf file:

search localhost.localdomain
nameserver  x.x.x.x

while inside /etc/nsswitch.conf file:
hosts:files dns
is already exists,

But I still cannot accept external web,ftp and telnet connection.........
0
 
LVL 2

Author Comment

by:hpchong7
ID: 6478525
Dear Gavin,

  At last I found it's the problem of the linux firewall, which block all external access by default!Anyway, thank you very much for your help which taught me a lot!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question