home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 13 / CDA13.ISO / DOC / HOWTO / OTHER_FO / SGML / MINI / HTTP_NET.GZ / HTTP+Netware.sgml
Encoding:
SGML Document  |  1996-03-30  |  14.5 KB  |  280 lines

  1. <!doctype linuxdoc system>
  2.  
  3. <article>
  4.  
  5. <TITLE>The Linux Intranet HOWTO</TITLE>
  6. <author>Pramod Karnad, <tt><htmlurl url="mailto:karnadp@mozart.inet.co.th" name="karnadp@mozart.inet.co.th"></tt>
  7. <date>v1.1, 14 March 1996
  8. <abstract>
  9. This document describes how to convert your Linux machine into a HTTP server
  10. and connect it to a Netware LAN using the Netware Client under Windows
  11. </abstract>
  12.  
  13. <toc>
  14.  
  15. <sect>Introduction
  16. <p>
  17. This document assumes that you already know how to install TCP/IP on your Linux server and connect it physicaly to your LAN using an Ethernet network card. This also assumes you have some basic knowledge of Netware. The configuration of the Netware server has been shown using version 3.1x as the basis. You can also use INETCFG to achieve the same result. On the client side the discussion is with respect to Windows 3.1x, Windows for Workgroups and Win95.
  18. <P>
  19. In all the examples I am assuming that the Linux server has an IP address
  20. of 200.0.0.1 and therefore I am assigning the address of 200.0.0.2 to the Netware server and 200.0.0.3 to the workstation. You may choose suitable addresses depending on your configuration.
  21.  
  22. <sect1>What is required
  23. <p>
  24. You will need the following software before attempting the installation.
  25. <itemize>
  26.   <item>the HTTP server software which can be downloaded from 
  27.       <htmlurl url="http://hoohoo.ncsa.uiuc.edu/docs/setup/OneStep.html"       name="OneStep NCSA HTTPd Downloader"> page.
  28.   <item>The Novell Netware Client available from
  29.       <htmlurl url="HTTP://netwire.novell.com/" name="Netwire"> (The TCP/IP files can be found in the Lan Workplace update LW42T3.exe).
  30.   <item>WWW Browsers like <htmlurl url="HTTP://home.netscape.com/"              name="Netscape Navigator"> or <htmlurl    url="http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/NCSAMosaicHome.html"    name="NCSA Mosaic">
  31. </itemize>
  32.  
  33. <sect>Install the HTTP server
  34. <p>
  35. When you download the server you have two options: To get the source and compile it yourself, or get the precompiled binaries. The precompiled binaries for Linux (ELF) version are available at NCSA but not the older versions.
  36.  
  37. <sect1>Preparation before downloading
  38. <p>
  39. The server at NCSA will guide you through the steps for configuration options and prepare the various files for you. But before you attempt to download HTTPd be prepared with answers to the following questions
  40.  
  41. <sect2>The Operating System
  42. <p>
  43. First, you much choose whether to download the source or a pre-compiled version of the software. If your particular system doesn't appear in the menu, then you will have to get the default source, and compile it yourself.
  44. <p>
  45. To check the version of your Linux go to the command prompt on your Linux machine and type 
  46. <tscreen><verb>
  47.   linux:~$  uname -a
  48. </verb></tscreen>
  49. which will respond with a line which looks similar to this
  50. <tscreen><verb>
  51.    linux:~$  uname -a
  52.    Linux linux 1.0.9 #4 Tue Sep 13 04:05:51 CDT 1994 i586
  53.    linux:~$
  54. </verb></tscreen>
  55. <p>
  56. The version of Linux is 1.0.9. (Note: The current versions are ELF and should look like linux 1.2.13 ELF)
  57. <p>
  58. The remaining parameters can be specified before downloading or configured later by modifying the file <tt>srm.conf</tt> in the <tt>/usr/local/etc/httpd/conf</tt> directory. The names of the actual directives that appear in the file <tt>httpd.conf</tt> are shown in brackets. The only exception is the directive DocumentRoot which appears in the file <tt>srm.conf</tt>
  59.  
  60. <sect2>Process type (ServerType)
  61. <p>
  62. This specifies how your machine will run your HTTPd server. The preferred method is "standalone". This makes the HTTP daemon to be running constantly. If you choose to load HTTPd under "inetd", the server binary will be reloaded into memory for every request, which may slow your server down.
  63.  
  64. <sect2>Binding Port (Port)
  65. <p>
  66. This specifies which port of your machine that the HTTPd daemon will bind
  67. to and listen for HTTP requests. If you can login as "root", use the default setting of 80.
  68. Otherwise choose a setting between 1025 and 65535.  
  69.  
  70. <sect2>Server user identity (User)
  71. <p>
  72. This is the user id the server will change to when answering requests and acting on files.This question needs to be answered only if you are running the server as "standalone". 
  73. If you are someone without root permissions, just use your own login name. If you are system administrator, you might want to create a special user so you can control file permissions. 
  74.  
  75. <sect2>Server group identity (Group)
  76. <p>
  77. This is the group id the server will change to when answering requests and acting on files. This is similar to Server User identity and is applicable only if you are running the server as standalone.
  78. <p>
  79. If you do not have root permissions, just use the name of your primary group. You can find out your group by typing 
  80. <bf>groups</bf> at the Linux command prompt.
  81.  
  82. <sect2>Server administrator email address (ServerAdmin)
  83. <p>
  84. This is the email address that the user should send an email message to when reporting a problem with the server. You can put your personal e-mail address.
  85.  
  86. <sect2>Location of server directory (ServerRoot)
  87. <p>
  88. This is where the server resides on your system. If you have root permissions leave it in its recommended location <tt>/usr/local/etc/httpd</tt>. If you cannot login as root, choose a subdirectory in your home path. You can find out the path of your home directory with the <bf>pwd</bf> command. 
  89.  
  90. <sect2>Location of HTML files (DocumentRoot)
  91. <p>
  92. This is where the HTML files to be served are located. The default location is <tt>/usr/local/etc/httpd/htdocs</tt>.
  93. You could however set it to be the home directory of the special user you chose in Server user identity, or a subdirectory
  94. in your home directory if you can't login as root.
  95. <P>
  96. When in doubt, use the default settings. Now that you have answers to the above questions you can <htmlurl url="http://hoohoo.ncsa.uiuc.edu/docs/setup/OneStep.html" name="Download NCSA HTTPd">.  You should read the <htmlurl url="http://hoohoo.ncsa.uiuc.edu/docs/" name="HTTPd Documentation"> before you attempt installation. If you are planning to compile the code then you need to modify the makefiles in each of the three directories <tt>support, src, cgi-src</tt>. If your version of Linux is already supporte
  97. d then you just have to type <bf>make linux</bf> at the top level directory (i.e. <tt>/usr/local/etc/httpd</tt>)
  98.  
  99. <sect1>Compiling HTTPd
  100. <p>
  101. Compiling is simple, just type <tt>make linux</tt> at the prompt in the server root directory.
  102. <bf>Note:</bf> Users of pre-ELF Linux have to uncomment <tt>#define NO_PASS</tt> in file <tt>portability.h</tt> and set <tt>DBM_LIBS= -ldbm</tt> in the <tt>Makefile</tt> before compiling HTTPd.
  103.  
  104. <sect>Testing HTTPd
  105. <p>
  106. After you have installed HTTPd, login as root and start it by typing <bf>httpd & </bf>. (assuming you have installed as standalone) You should now be able to see it in the list generated by <bf>ps</bf>. The simplest way to test HTTPd is by Telnet. At the Linux command prompt type
  107. <tscreen><verb>
  108.    linux:~$  telnet 200.0.0.1 80 
  109. </verb></tscreen>
  110. where 80 is the default port for HTTP. If you have configured "Port" as something different then type that number instead. You should get a response which looks like this
  111. <tscreen><verb>
  112.    Trying 200.0.0.1...
  113.    Connected to linux.ppg_corp.
  114.    Escape character is '^]'.
  115. </verb></tscreen>
  116. Now if you type in any character and press Enter you should get a response similar to the one shown below.
  117. <tscreen><verb>
  118.    HTTP/1.0 400 Bad Request
  119.    Date: Wed, 10 Jan 1996 10:24:37 GMT
  120.    Server: NCSA/1.5
  121.    Content-type: text/html
  122.  
  123.    <HEAD><TITLE>400 Bad Request < /TITLE> < /HEAD>
  124.    <BODY><H1>400 Bad Request < /H1>
  125.    Your client sent a query that this server could
  126.    not understand.<P>
  127.    Reason: Invalid or unsupported method.<P>
  128.    < /BODY>
  129. </verb></tscreen>
  130. <P>
  131. Now we are ready to connect to this server using another PC and a WWW Browser.
  132.  
  133. <sect>Connecting on a Netware LAN with Windows
  134. <p>
  135. In order to setup the Netware server you should have Supervisor permissions or atleast Console operator permissions. If these cannot be got, try asking your Network Administrator to help you with the setup.
  136. <P>
  137. In the following examples I am assuming that the Linux server has an IP address of 200.0.0.1 and therefore I am assigning the address of 200.0.0.2 to the Netware server and 200.0.0.3 to the workstation. You may choose suitable addresses depending on your configuration.
  138.  
  139. <sect1>Setup the Netware server
  140. <p>
  141. At the Server enable the Ethernet_II frame type on the LAN by typing these commands or include them in the AUTOEXEC.ncf file.
  142. <tscreen><verb>
  143.    load NE2000 frame=Ethernet_II name=IPNET
  144.    load TCPIP
  145.    bind IP to IPNET addr=200.0.0.2 mask=FF.FF.FF.0
  146.  
  147. </verb></tscreen>
  148. <P>
  149. You might have to specify the slot or board number while loading the NE2000 driver depending on your machine configuration. (eg: load NE2000 slot=3 frame=.....)
  150.  
  151. <sect1>Setup the Netware Client
  152. <p>
  153. On the PC you have three choices Win3.1,WFWG or Win95. The installation procedure differs between Win95 and the older windows if you are using the 32bit client from Microsoft or Novell. If you are going to use the 16bit client, the procedure is the you can refer to the Windows 3.x installation instructions. For installing the 32bit client for Win95 skip to 
  154. <ref id="Win95" name="Windows 95 installation">.
  155.  
  156. <sect2>Windows 3.x
  157. <p>  
  158. If you are using Win3.1 or WFWG you can install the Netware Client (VLMs) and some additional files which are provided with the TCP/IP diskette, namely
  159. <p>
  160.  TCPIP.exe, VTCPIP.386, WINSOCK.dll and WLIBSOCK.dll
  161. <P>
  162. Note that the WINSOCK.dll file is different from the ones provided with Win95 and Trumpet. Install the Netware Client with the support for windows. Copy VTCPIP.386, WINSOCK.dll and WLIBSOCK.dll to the SYSTEM directory and TCPIP.exe to the NWCLIENT directory. Now modify the STARTNET.bat in the NWCLIENT directory to
  163. <tscreen><verb>
  164.    lsl
  165.    ne2000     ---> your network card driver
  166.    c:\windows\odihlp.exe     ---->if you are using WFWG
  167.    ipxodi
  168.    tcpip        ---> add this line
  169.    vlm
  170. </verb></tscreen>
  171. <P>
  172. Create a subdirectory (say) <tt>\NET\TCP</tt> and copy the files HOSTS, NETWORKS, PROTOCOLS and SERVICES from <tt>/etc</tt> on your Linux server or the directory <tt>SYS:ETC</tt> on your Netware server. Edit the copied HOSTS file to add the line for your new Linux server. This will enable you to refer to the Linux server as <tt>http://linux.ppg_corp/</tt> instead of <tt>http://200.0.0.1/</tt>in your WWW browser
  173. <tscreen><verb>
  174.    127.0.0.1      localhost
  175.    200.0.0.1      linux.ppg_corp
  176. </verb></tscreen>
  177. <p>
  178. Edit the NET.cfg file in NWCLIENT directory
  179. <tscreen><verb>
  180.    Link Driver NE2000
  181.        port 300
  182.        int 3
  183.        MEM D0000
  184.        FRAME Ethernet_802.2
  185.  
  186. ; ---- add these lines ----
  187.  
  188.       FRAME Ethernet_II
  189.  
  190.    Protocol TCPIP
  191.       PATH TCP_CFG C:\NET\TCP
  192.       ip_address  200.0.0.3
  193.       ip_netmask  255.255.255.0
  194.  
  195.    Link Support
  196.       MemPool 6192       ---> the minimum is 1024. Try with different values
  197.       Buffers 10 1580    ---> this again can be fine tuned
  198.  
  199. ;---------------------------------
  200.  
  201. </verb></tscreen>
  202. Edit the SYSTEM.ini file in the WINDOWS directory and add this entry for VTCPIP.386
  203. <tscreen><verb>
  204.    [386Enh]
  205.    .....
  206.    network=*vnetbios, vipx.386, vnetware.386, VTCPIP.386
  207.    .....
  208. </verb></tscreen>
  209. <p>
  210. Reboot your PC, run STARTNET.bat and you can now use your favorite WWW browser to access your Web pages. You need not login to Netware and you don't have to run TCPMAN (if you use Trumpet Winsock).
  211.  
  212. <sect2>Windows 95<label id="Win95">
  213. <p>
  214. This section explains how to install the 32bit client on Win95. Firstly you must
  215. install the following
  216. <tscreen><verb>
  217.    Client for Netware Networks (from Microsoft or Novell)
  218.    Microsoft TCP/IP Protocol
  219.    Network Adapter
  220. </verb></tscreen>
  221. <p>
  222. To install these items, click on My Computer, Control Panel, Networks. Click Add. You will now be in a window that displays Client, Adapter, Protocol and Service. 
  223. To install the Client for Netware Networks:
  224. <tscreen><verb>
  225.   1. DoubleClick on Client
  226.   2. Click on Microsoft or Novell
  227.   3. DoubleClick on Client for Netware Networks
  228. </verb></tscreen>
  229. <p>
  230. To install the TCP/IP Protocol:
  231. <tscreen><verb>
  232.   1. DoubleClick on Protocol
  233.   2. Click on Microsoft
  234.   3. DoubleClick on TCP/IP
  235. </verb></tscreen>
  236. <p>
  237. Windows 95 by default installs several other protocols automatically. Remove
  238. them by clicking on them and clicking the Remove button. Typically Win95 installs the Microsoft NetBeui protocol, and IPX/SPX compatible protocol. You can delete the NetBEUI protocol, but you will need the IPX/SPX protocol if you wish to login to the Netware Server. Refer to the 
  239. <htmlurl url="HTTP://www.aa.com/~pcd/slp95faq.html" name="TCP/IP Setup FAQ"> for more details.
  240. <p>
  241. To setup TCP/IP click on TCP/IP, click on Properties, click on the tab IP address
  242. <tscreen><verb>
  243.   Enter your IP address in the "Specify an IP address " 
  244.                         box as 200.0.0.3
  245.   In the Subnet Mask box enter 255.255.255.0
  246.   Click OK
  247. </verb></tscreen>
  248. <p>
  249. You should get a message to reboot. Do so. You should now be able to use the Browser to connect to your HTTP Server.
  250.  
  251. <sect>Other Connections
  252. <P>
  253. This is not the only way to connect to the Linux Server. You can try several other software like:
  254. <itemize>
  255.     <item><htmlurl url="http://lake.canberra.edu.au/pub/samba/samba.html"          name="SAMBA Web Page">
  256.     <item><htmlurl url="http://www.microsoft.com/" 
  257.          name="TCP/IP from Microsoft">
  258.     <item><htmlurl url="http://www.trumpet.com.au/" 
  259.          name="Trumpet TCP/IP packet driver">
  260.     <item><htmlurl url="http://www.crynwr.com:80/crynwr/" 
  261.          name="CRYNWR Packet drivers">
  262. </itemize>
  263. <p>
  264. You might also be interested in providing access to the Netware Server by loading the <htmlurl url="ftp://linux01.gwdg.de/pub/ncpfs/" 
  265. name="NCP driver for Linux">
  266.  
  267. <sect>Applications of the WWW server
  268. <p>
  269. The HTTP server can be used in the office to provide transparent access to information residing on different servers, at several locations and directories. The data can be simple documents in Word, Lotus spreadsheets, or complex databases. It can be used to 
  270. <htmlurl url="http://cscsun1.larc.nasa.gov/~beowulf/db/web_access.html" name="create an interface with RDBMS"> like ORACLE and SYBASE for generating real-time information. Here is a 
  271.  <htmlurl url="HTTP://www.w3.org/hypertext/WWW/RDBGate/Overview.html" name="list of database gateways to the WWW">
  272.  
  273. <sect>Credits & Legalities
  274. <p>
  275. Thanks to the people at NCSA for providing such excellent documentation &
  276. David Anderson for his comments and trying out this HOWTO!
  277. I am told (by David) that you cannot use the Netware Client without having a Netware License.
  278.  
  279. </article>
  280.