入口
pkgsrc による設置
  php3
    php3-i18n
    database/php3-pgsql
    www/ap-php3
apache 版
postgres (1)
  php4-pgsql (3)
    make install
php4 (apache1)
  www/php4(2)
    php4 の版
  www/ap-php4(5)
  www/apache(4)
    IPv6
    IPv4+nossl
    Apache/SSL
php4(apache2) - 依存関係
  ap2-php4
    php4
    mod_php4.so
    /usr/pkg/etc/php.ini
  php4-session(6)
    session.so
    --enable-session
    core_globals
    map
    php4 i18n 無
    php4 i18n
  configure
セッション管理
  php3 互換モード
  php4 内蔵
  php4 + phplib
  phpinfo()
PostgreSQL 準備
  postmaster
  環境変数
  initdb
    実際の様子
    試しに起動
  postmaster 設定
  postgreql.conf
  pg_hba.conf
  postmaster の起動
  使用者登録
  pg_ctl
  /etc/rc.conf
  shutdown
データべースを作る
psql
  psql \h
  psql \?
  psql \h select
  psql \d
  psql \copy
  psql 操作
  Data Type
    DATE
Application
  pgpost
    pgpost 設置例
    psql で見る
  AuthPG
      create table
        GRANT
  pgimage
  pgimage psql
SQL
URL
  PostgreSQL
  PHP
良くある問題
    undefined pg_connect()
    Link-ID == false
    Call-time pass-by-reference
    session_register
    Undefined session_adapt_flush
    Failed opening for inclusion
  does not exist in ..
  pg_exec() query failed
  Undefined property: Port
  undefined function: preg_match()
  used in non-rule query
その他
適用例
  日記から等

PostgreSQL + Apache + PHP4 | PHP4 programming

ap2-php4

(ap2-php4 は廃止になっている)その代りに apache2 を make しておいてから ap-php4 で make すれば良い。 (2003/11/23)
ttyp0:makoto@st3240  8:19:02/030522(...www/ap2-php4)> \
? ( unsetenv PKG_PATH ; make package )
===> Checking for vulnerabilities in ap2-php-4.2.3
===> Installing for ap2-php-4.2.3
===> Becoming root@st3240 to install ap2-php-4.2.3.
/usr/bin/su Password:
install -c -o root -g wheel -m 444 /usr/pkgsrc/www/ap2-php4/work/php-4.2.3/.libs/libphp4.so 
    /usr/pkg/lib/httpd/mod_php4.so
===> Please note the following:

===========================================================================
$NetBSD: MESSAGE,v 1.1.1.1 2002/10/17 09:56:52 martti Exp $

To add this to your Apache server, you will need to add the following
lines to the appropriate place in your httpd.conf file:

        LoadModule php4_module lib/httpd/mod_php4.so

        AddType application/x-httpd-php .php

You may also add following if you still use .php3 files:

        AddType application/x-httpd-php .php3

===========================================================================

===> Registering installation for ap2-php-4.2.3
ap2-php-4.2.3 requires installed package apache-2.0.45
ap2-php-4.2.3 requires installed package expat-1.95.6nb1
ap2-php-4.2.3 requires installed package perl-5.6.1nb7
ap2-php-4.2.3 requires installed package php-4.2.3nb2
===> Packaging ap2-php-4.2.3
===> Becoming root@st3240 to package ap2-php-4.2.3.
/usr/bin/su Password:
===> Building binary package for ap2-php-4.2.3
Creating package /usr/pkgsrc/packages/All/ap2-php-4.2.3.tgz
Using SrcDir value of /usr/pkg
Registering depends: apache>=2.0.43 expat>=1.95.2 perl>=5.0 php>=4.2.3.
Creating binary pkg '/usr/pkgsrc/packages/All/ap2-php-4.2.3.tgz'
ttyp0:makoto@st3240  8:19:35/030522(...www/ap2-php4)> 
この画面は Jeedosaquin によって表示しています。
Last Update: Fri, 03 May 2019 15:45:20 GMT 1.66 2008/03/08