httpd-2.0.49のインストール

http://httpd.apache.org/docs-2.0/ja/

■compile&install
開発機なのでとりあえずモジュールは全部有効にしている。

#./configure --enable-module=so --enable-shared=max --with-mpm=worker
#make
#make install
#cd /usr/local/apache2
#mkdir /var/log/apache2
#ln -s /var/log/apache2 logs

■http.confの編集
 Linuxに関係ないところは一部削除

# diff httpd.conf httpd.conf.bak
81c81
< #PidFile logs/httpd.pid
158a159,209
> # WinNT MPM
> # ThreadsPerChild: constant number of worker threads in the server process
> # MaxRequestsPerChild: maximum number of requests a server process serves

> ThreadsPerChild 250
> MaxRequestsPerChild 0

>
> # BeOS MPM
> # StartThreads: how many threads do we initially spawn?
> # MaxClients: max number of threads we can have (1 thread == 1 client)
> # MaxRequestsPerThread: maximum number of requests each thread will process

> StartThreads 10
> MaxClients 50
> MaxRequestsPerThread 10000
>
>
> # NetWare MPM
> # ThreadStackSize: Stack size allocated for each worker thread
> # StartThreads: Number of worker threads launched at server startup
> # MinSpareThreads: Minimum number of idle threads, to handle request spikes
> # MaxSpareThreads: Maximum number of idle threads
> # MaxThreads: Maximum number of worker threads alive at the same time
> # MaxRequestsPerChild: Maximum number of requests a thread serves. It is
> # recommended that the default value of 0 be set for this
> # directive on NetWare. This will allow the thread to
> # continue to service requests indefinitely.

> ThreadStackSize 65536
> StartThreads 250
> MinSpareThreads 25
> MaxSpareThreads 250
> MaxThreads 1000
> MaxRequestsPerChild 0
> MaxMemFree 100

>
> # OS/2 MPM
> # StartServers: Number of server processes to maintain
> # MinSpareThreads: Minimum number of idle threads per process,
> # to handle request spikes
> # MaxSpareThreads: Maximum number of idle threads per process
> # MaxRequestsPerChild: Maximum number of connections per server process

> StartServers 2
> MinSpareThreads 5
> MaxSpareThreads 10
> MaxRequestsPerChild 0

>
241c292
< ServerName www.example.com:80

    • -

> #ServerName www.example.com:80