1 |
To build: |
2 |
|
3 |
% ./configure |
4 |
|
5 |
Edit config.h to change the configuration options if necessary. |
6 |
|
7 |
% make |
8 |
|
9 |
|
10 |
To install: |
11 |
|
12 |
% make install |
13 |
|
14 |
Edit one of your system rc files to run thttpd at boot time. Do NOT |
15 |
run it from inetd, that setup is inefficient so thttpd doesn't support it. |
16 |
|
17 |
|
18 |
Red Hat: |
19 |
|
20 |
On Red Hat Linux systems you can use RPM to install thttpd, like so: |
21 |
|
22 |
cd /usr/src/redhat/SOURCES |
23 |
wget http://www.acme.com/software/thttpd/thttpd-2.21b.tar.gz |
24 |
rpm -ta thttpd-2.21b.tar.gz |
25 |
rpm -i /usr/src/redhat/RPMS/i386/thttpd-2.21b-1.i386.rpm |
26 |
|
27 |
|
28 |
Solaris: |
29 |
|
30 |
If you're running Solaris and you want to use the security-enhancing |
31 |
chroot feature, then you must create the TCP device files in the chroot |
32 |
tree. There is no way around this, Solaris needs these files to accept |
33 |
network connections. You need /dev/tcp, which is a symbolic link like so: |
34 |
/dev/tcp -> ../devices/pseudo/clone@0:tcp |
35 |
And you also need the file it points to: |
36 |
crw-rw-rw- bin 11, 42 May 24 21:32 /devices/pseudo/clone@0:tcp |
37 |
You probably need some other files too, such as shared libraries and |
38 |
a tmp directory. Check out the man page for ftpd, it has a big long |
39 |
shell script for setting up an anonymous ftp area that should also |
40 |
work for thttpd. |