[BLFS Trac] #2461: Compile instructions for nginx web server

BLFS Trac trac at linuxfromscratch.org
Tue Feb 26 04:30:25 PST 2008


#2461: Compile instructions for nginx web server
-------------------------+--------------------------------------------------
 Reporter:  amason       |       Owner:  blfs-book at linuxfromscratch.org
     Type:  enhancement  |      Status:  new                           
 Priority:  normal       |   Milestone:  6.3                           
Component:  BOOK         |     Version:  SVN                           
 Severity:  normal       |    Keywords:                                
-------------------------+--------------------------------------------------
 1) Configure the server.

   ./configure --prefix=/usr --conf-path=/etc/nginx/nginx.conf \
     --error-log-path=/var/log/error.log --http-log-
 path=/var/log/access.log \
     --pid-path=/var/run/nginx.pid --lock-path=/var/lock \
     --http-fastcgi-temp-path=/tmp/fcgi --http-client-body-temp-
 path=/tmp/cb \
     --http-proxy-temp-path=/tmp/proxy

 2) There are a lot of hard-coded paths in the Makefile.  These sets them
 to paths
    outside of the /usr tree.
   sed -i -e 's@/usr/logs@/var/log at g' -e 's@/usr/html@/var/www/nginx-
 default at g' \
     -e "s@'/usr'@'/var/www/nginx-default'@g" objs/Makefile
   sed -i -e 's at conf/mime.types@/etc/nginx/mime.types at g' -e
 's at logs/@/var/log/@g' \
     -e 's at root   html;@root   /var/www/nginx-default;@g' conf/nginx.conf

 3) Compile and install
   make
   make install

 4) Copy the base HTML files to the document root:
   cp html/* /var/www/nginx-default

 5) Install nginx's init scripts.

 I have enclosed a patch to add an init script for BLFS-bootscripts.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/2461>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch



More information about the blfs-book mailing list