2011-01-01から1年間の記事一覧

php 5.4 debian package memo

https://github.com/crocos/php5-5.4.x-deb わかっているダメな点 php5-sqlite で sqlite.ini と sqlite3.ini が作られてしまう。sqlite.so は作られないのに fpm の config がおかしい (修正済み debug build symbol がやっぱりけされちゃう dh_split しな…

cron.d にファイル置く場合の注意点

root 権限じゃないとダメ (BAD OWNER) なのは有名な話だけど、permission も 644 じゃないと (というか、owner 以外に w がついてると)だめだった Sep 12 06:00:02 localhost /usr/sbin/cron[8974]: (*system*xxxxx) WRONG INODE INFO (/etc/cron.d/xxxxx) s…

debuild で失敗したときとりあえず patch だけはずす

$ QUILT_PATCHES=debian/patches quilt --quiltrc /dev/null pop -a -R -f

SetEnvIf X-Forwarded-Port 443 HTTPS=on

Apache の環境変数の HTTPS = "on" とかしかチェックしないクソライブラリのために、LBの裏側にいる Apache でこんな設定を書きました、という話。 SetEnvIf X-Forwarded-Port 443 HTTPS=onX-Forwarded-Proto "https" のほうがいいのかもしれない?まぁあと…

ec2-run-instances

http://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference/index.html?ApiReference-cmd-RunInstances.html $ ec2-run-instances ami-xxxxxxxx --availability-zone ap-northeast-1b --instance-type m1.small --instance-count 1 --group def…

WordPress Plugin 開発時に参考にすべきページ

Writing a Plugin « WordPress Codex Plugin API « WordPress Codex Pluggable Functions « WordPress Codex Plugin API/Filter Reference « WordPress Codex Plugin API/Action Reference « WordPress Codex Function Reference « WordPress Codex Theme De…

Indirect modification of overloaded property Hoge::$fuga has no effect

PHP

的なエラーがでた。 __get() によって返される値は参照ないから変更したって意味ないよって言う事。 a[$name]; } public function __set($name, $value) { $this->a[$name] = $value; } } $hoge = new Hoge(); に対して、 $hoge->fuga = 1;的なことをした場…