これらは ports でなく本家からDLした YAHOO検索である
1 postgresql-7.3.4.tar.gz   http://www.postgresql.jp/
2  httpd-2.0.47.tar.gz      http://www.php.gr.jp/
3  php-4.3.3.tar.gz         http://archive.apache.org/dist/httpd/

  のインストール

####################   postgresql   #######################################
tar zxvf postgresql-7.3.4.tar.gz   ok
展開したあとINSTALL というファイルに詳しく使い方がある
./configure    ok

  gmake         ok
  su              ok
  gmake install      ok
 6# adduser postgres    ゆざー追加
tar zxvf postgresql-7.3.4.tar.gz   ok
 -------------------------------------------------------------------------------

                                 Short Version

  ./configure
  gmake
  su
  gmake install
  adduser postgres
  mkdir /usr/local/pgsql/data
  chown postgres /usr/local/pgsql/data
  su - postgres
  /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
  /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 &
  /usr/local/pgsql/bin/createdb test
  /usr/local/pgsql/bin/psql test

The long version is the rest of this document.

-------------------------------------------------------------------------------
postgresqlの動作確認
/usr/local/pgsql/がある事を確認

sysinstallで
Add a new group

 Group name:  postgres               GID:     1002                     
 Group members: 無し

Login ID :postadm
Password: p*****
Member Groups :postgres
Full Name :admin
Home Directory :  /usr/local/pgsql/
Login shell:/bin/sh
UID:1002

vipw で 確認する  /usr/local/pgsql/で
chown -R postadm *
chgrp postadm *

su postadm  になる
 mkdir /usr/local/pgsql/data
chown postadm:postgres data
initdb /usr/local/pgsql/data とする

Success. You can now start the database server using:

    /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data
or
    /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l logfile start

と出る
/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data とすると起動し
ユーザーからの要求を待ち受けする状態になる
別の kterm上で
6# su postadm
$ tcsh
> createuser


> createuser eok  eokはuserアカウントの無い者   ある者でもいい
Shall the new user be allowed to create databases? (y/n) y
Shall the new user be allowed to create more new users? (y/n) n
CREATE USER
成功
> createdb tester  testerというデタベースを作る
CREATE DATABASE こう返事が来る
後は postgresSQL の本 p26を見る

テスト用 passwd.sql

create table passwd (
      id      varchar(8) not null ,
      passwd    varchar(8) not null ,
      primary key(id)
 );

> psql tester < /usr/local/pgsql/passwd.sql





-------------------------------------------------------------------------------
#####################  httpd  ##################################################
6# tar zxvf httpd-2.0.47.tar.gz

6# ./configure --enable-module=so

6# make
6# make install


########################  php  ##############################################

6# tar zxvf php-4.3.3.tar.gz
6# ./configure --with-pgsql --with-apxs2=/usr/local/apache2/bin/apxs
6# make
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
6# make install
OK Finish


2003 12 /4

 上と同じ方法で最新版インストールした
postgresql-7.4.tar.gz
php-4.3.4.tar.gz
httpd-2.0.47.tar.gz

php の動作確認  
http.conf
LoadModule php4_module        modules/libphp4.so
    AddType application/x-httpd-php .php .phtml
を追加または 確認する
docuumentroot に (htdocs) test.htmlをおき
        <?php
   phpinfo();
      ?>
と書き アクセスしてみる