====== ubuntuでの環境設定 ====== sudo apt-get -yV install php5-pgsql ====== windows上での環境構築 ====== zip形式でダウンロードしてフォルダへ配置します 以後(phpdir)と表現します ===== pearのインストール ===== phar.phar.batをダウンロードして http://pear.php.net/go-pear.phar から phar.phar.batをダウンロードして(phpdir)へ配置 php go-pear.phar として実行, localへコピーする (phpdir)にコピーされる ===== xdebugのインストール ===== ダウンロードして(phpdir)extへコピー ===== php.iniの設定 ===== extension_dir = "(phpdir)\ext" extension=php_mbstring.dll extension=php_pdo_pgsql.dll extension=php_pgsql.dll date.timezone = "Asia/Tokyo" [mbstring] mbstring.language = Japanese mbstring.internal_encoding = UTF-8 mbstring.http_output = pass mbstring.http_output = pass [xdebug] zend_extension=(phpdir)\ext\php_xdebug-2.3.2-5.4-vc9.dll xdebug.remote_enable=true xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.remote_handler=dbgp xdebug.profiler_enable=1 ;;;;xdebug.remote_autostart=1 ←これをつけるとgo_pear.batが動作しなかった ====== webserver ====== php -S 127.0.0.1:8080