入口
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

www/apache(4)

ここの情報は apache1 対応です。

apache2 を使うなら、ap2-php4 を見て下さい。

IPv6

もし IPv6 対応を考えているなら、次の ap-php4 を入れる前に /usr/pkgsrc/www/apache6 で make;make install しておく。

そうしないと次の ap-php4 で IPv6 非対応の www/apache の方を入れてしまう。

IPv4+nossl

IPv6 も SSL (https://) も 関係ないという場合は、いきなり次のように

/usr/pkgsrc/www/ap-php4 で make する。

Apache/SSL

あるいは SSL を使いたい時には www/ap-ssl で make install しておく
Installing configuration files:
    /usr/pkg/etc/httpd/apache_start.conf
    /usr/pkg/etc/httpd/ssl.crl/Makefile.crl
    /usr/pkg/etc/httpd/ssl.crl/README.CRL
    /usr/pkg/etc/httpd/ssl.crt/Makefile.crt
    /usr/pkg/etc/httpd/ssl.crt/README.CRT
    /usr/pkg/etc/httpd/ssl.crt/ca-bundle.crt
    /usr/pkg/etc/httpd/ssl.key/README.KEY
    /usr/pkg/etc/httpd/ssl.prm/README.PRM

===========================================================================
You may wish to customize the following files:

        /usr/pkg/etc/httpd/apache_start.conf
===========================================================================
===> Please note the following:

===========================================================================
$NetBSD: MESSAGE,v 1.3 2002/09/24 12:30:45 wiz Exp $

You will need to generate certificates and keys for your server before
Apache will start with mod_ssl support.  Please read

        /usr/pkg/share/doc/mod_ssl/README.mkcert

for more information on how to do this.

In order to start Apache with mod_ssl support, you need to run Apache
with "apachectl startssl" instead of "apachectl start".  The SSL-specific
configuration parts of the default httpd.conf are bracketed by:

  <IfDefine SSL>
  </IfDefine>

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

===> Registering installation for ap-ssl-2.8.10nb1
ap-ssl-2.8.10nb1 requires installed package apache-1.3.26nb5
ap-ssl-2.8.10nb1 requires installed package expat-1.95.2
ap-ssl-2.8.10nb1 requires installed package libmm-1.2.1
ap-ssl-2.8.10nb1 requires installed package openssl-0.9.6g
ap-ssl-2.8.10nb1 requires installed package perl-5.6.1nb6
ttyp0:makoto@ibook  7:29:49/021008(...www/ap-ssl)>
この画面は Jeedosaquin によって表示しています。
Last Update: Sat, 04 May 2019 00:45:20 GMT 1.66 2008/03/08