 ܥƥƳˤĤ
0. 
 礭ʬƣĤޤۼԤʹƤ
 0.1 cvs ˤˡ
 - check out ޤ
 $ cvs -d  co books_manager

 - export ޤ
    $ cvs -d  export books_manager

 0.2 ѥå(tar.gz) ˤˡ
    $ tar xvzf books_manager-(Сֹ).tar.gz
    Τ褦ˤŸ
    $ cd books_manager
    $ ./configure (ɬפ˱ƥץɲä뤳)
    򤹤 ɬפʥե뤬ޤ



1. configureμ¹
 1.1  configure ץȤ
      ./bootstrap ץȤˤconfigure.in  configure
      롣

 1.2 ./configure μ¹     
 - site/config.inc.php
 - sql/Makefile
configure ץȤˤ꼫ư롣
ñ
 $ ./configure
Ȥ뤫⤷
 $ ./configure --with-dbname=test --enable-dbuser=you
Τ褦ˤ롣
 configureץϰʲΤΤ롣
  --with-dbhost[=DBHOST]   database host 
  --with-dbname[=DBNAME]   database name  [default=proto_books_manager]
  --with-dbuser[=DBUSER]   database user  [default=post]
  --with-dbpass[=DBPASS]   database password 

2. DBκΣ
 $ cd sql

 2.1 DB桼κ
 DBƤʤΤǤк롣
 ȤСpost桼ʤ...
 $ make user
 Τ褦ˤ롣Ǥ postgressudoƤΤ
 θ¤ʤͤϤ餫Ԥ̤뤳ȡ

 2.2 DBκ
 $ make createdb tables

 2.3 DBκ
 php httpd˥ͥסäƤΤǡ
 httpdߤ롣
 $ sudo /sbin/service httpd stop

 $ make dropdb

 θ塢httpdư
 $ sudo /sbin/service httpd start

3. DBκΣ -  餯С
 tar.gzŸǥ쥯ȥ
 $ make setup
 Ƥ cd sql;make user rebirth

4. httpd (RedHat Linux ξ)
 4.1 Apache(/etc/httpd/conf/httpd.conf)

 4.2 PHP(/etc/php.ini)

 4.3 sudo
 sudoers˲ɲäƤȺȸΨ夬ޤ
you ϤʤΥ륢ȤǤ

you    ALL=(root) NOPASSWD: /sbin/service
you    ALL=(postgres) NOPASSWD: ALL

NOPASSWD: Ĥ뤫ɤϴԤ̤Ƥ
-----------------------------------
$Id$


