Apache + PHP + PostgreSQL

create 05/05/2005 by Mie Suemitsu

update 09/29/2007 by Mie Suemitsu



apache postgresql PHP の順でインストールセットアップした方がうまくいきます
httpd-2.0.54 + php-5.0.4 + postgresql-8.0.2の install メモです
apache は基本的に httpd-2.0.44 の時と変わっていませんが、+ php + postgresql のWEBデータベースサーバ構築という事で改めて書きました

1.Apache をダウンロード
2.Apache を解凍
3.Apache をインストール
4.httpd.conf を編集
httpd.conf のテスト
# /usr/local/apache2/bin/apachectl configtest
Syntax OK ; と表示されればOK
5.Apache を起動
6.Apache を自動起動するスクリプトを書く


7.PHP をダウンロード
8.PHP を解凍
9.PHP をインストール
10.php.ini をコピーして編集する
11.httpd.conf を編集して apache を再起動する
12.php プログラムの動作確認


13.PostgreSQL をダウンロード
14.PostgreSQL を解凍
15.postgres ユーザを作成し postgres ユーザでインストールする
16.PostgreSQL をインストール
17.postgres ユーザの環境変数を設定する
18.データベースの初期化
19.postgresql.conf の編集
20.postmaster の起動と終了
21.regression test
22.postmaster の自動起動
23.php プログラムからのデーベース接続動作確認
お疲れさまでした
PHP開発のお仕事しましょう