2007-05-28から1日間の記事一覧

psqlコマンドいろいろ。

コマンド 機能 \? psqlコマンドの一覧を表示する \h SQLコマンドの一覧を表示する \h SQLコマンド名 SQLコマンドの使い方を表示する \l データベースの一覧を表示する \dt 表の一覧を表示する \d 表名 表の項目一覧を表示する \dT 項目の型の一覧を表示する …

DB.phpがうまくincludeできない。

> pear install DB pearコマンドが動作しないときは、pearをインストール php.iniを編集。 include_path=".:/usr/local/lib/php などのように編集。 > cd / > find -name DB.php などをして、見つかったディレクトリ(ダウンロードしてきたソースなんかは無…

pearをインストール

pear: http://pear.php.net/ http://www.go-pear.org/ > lynx -source http://go-pear.org | php * 設問はすべて[enter] 念のため更新 > pear channel-update pear.php.net

apacheが丸見え。index.htmlがないとディレクトリ構造が丸見えになってしまう。

# # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # d…

シンボリックリンク,symbolic link

ln -s [リンク先] [リンク生成先]

htmlTemplate

htmlTemplate:http://sourceforge.net/projects/htmltemplate/

xdebugのインストール

xdebug:http://www.xdebug.org/ > cd /usr/local/src/(とか適当に作業ディレクトリ) > wget http://www.xdebug.org/link.php?url=xdebug200rc4(などバージョンに合わせて) > tar zxvf xdebug-2.0.0RC4.tgz > cd xdebug-2.0.0RC4 > phpize > ./configure …

eAcceleratorのインストール

eAccelerator:http://sourceforge.net/projects/eaccelerator/ > cd /usr/local/src/eAccelerator/(とか。作業ディレクトリ。適当に。) > wget http://nchc.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.5.tar.bz2(とか。適当に。) > …

80番ポートを使ってるユーザを調べて止める。

/sbin/fuser -n tcp 80 /sbin/fuser -kn tcp 80

libphp5.soが作成されない(php5.x系インストール)

Red Hat Enterprise Linux ES release 4 (Nahant Update 4) 環境下でphp-5.2.2をソースからインストールすると、libphp5.soが作成されない。 特定環境でのバグらしい。 参考:PHP5インストールでのlibphp5.soバグ対応 http://www.oklab.org/language_c/php5_…

Redhatのバージョンを確認する

cat /etc/redhat-release