2010年01月27日

OpenPNE340をインストール

PHPのmemory_limitが32Mだとこける。

128M二変更して再度実行。

うまくいった。

2010年01月14日

IE8(Internet Explorer 9)ハック(Hack)

ちなみに、IE7とIE8では

このとき、選択肢に表示される文字列が「全てのジャンル」ではなく「すべてのジャンル」となるのでおったまげ~る。

2010年01月13日

movable type 5でテーブルにスキーマを追加する方法

config.yamlに下記を追加

下記のようにしないのがコツ。

2009年12月18日

nginxでバーチャルホストの設定

[#root@vm13 ~] vi /etc/nginx/conf.d/virtual.conf
server {
listen 80;
server_name ys-factory.example.com;
access_log /path/to/ys-factory.example.com/logs/access_log;
error_log /path/to/ys-factory.example.com/logs/error_log;

location / {
root /path/to/ys-factory.example.com/html;
index index.html index.htm index.php;
}
location /cgi-bin/ {
alias /home/webadmin/clients/ys-factory.example.com/cgi-bin;
}
location / {
fastcgi_pass 127.0.0.1:8080;
#fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param PATH_INFO /home/webadnin/clients/ys-factory.example.com/cgi-bin/*.cgi;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_pass_header Authorization;
fastcgi_intercept_errors off;
}
}

"/etc/nginx/conf.d/virtual.conf" 26L, 632C written
[root@vm13 ~]# nginx -t
2009/12/18 15:41:09 [info] 16721#0: the configuration file /etc/nginx/nginx.conf syntax is ok
2009/12/18 15:41:09 [info] 16721#0: the configuration file /etc/nginx/nginx.conf was tested successfully
[root@vm13 ~]# service nginx restart

2009年12月08日

Redmineをアップデート

■zipをダウンロードして解凍
Sorce Forge
http://rubyforge.org/frs/?group_id=1850

■zipファイルを解凍

■log/delete.meを削除

■SSHでログインして以下を実行
[root@vm02 redmine]# rake config/initializers/session_store.rb
(in /home/webadmin/sandbox/redmine.example.com/html/redmine)
[root@vm02 redmine]# rake db:migrate RAILS_ENV=production
(in /home/webadmin/sandbox/redmine.example.com/html/redmine)

2009年11月26日

memory_limitとupload_max_filesizeとpost_max_sizeについて

phpのPOSTメソッドによるファイルアップロード処理で、php.ini 内の設定の違いによってハマった。
ini_setでは書き換えできないパラメータもあるため、直接php.iniを編集して対応。

memory_limit を越えるファイルをアップロード。
$_POST変数の内容が空の配列になる。
アップロードを試みたファイルは$_FILEに情報が格納されている。

upload_max_filesizeとpost_max_sizeを越えてもアップロードに成功する。

2009年11月18日

Google Maps API 使って逆ジオコーディングしてみた

ソースコードは以下。


ブラウザで上記ページへアクセスすると下記のような結果が取得できる。

2009年10月21日

PHP5.2.8のPDOでエラー

障害が発生しているアプリケーション php.exe、バージョン 5.2.8.8、タイム スタンプ 0x493d760b、障害が発生しているモジュール php_pdo_mysql.dll、バージョン 5.2.8.8、タイム スタンプ 0x493d7650、例外コード 0xc0000005、障害オフセット 0x0000250a、 プロセス ID 0x2270、アプリケーションの開始時刻 0x01ca523a28cee930。


PHP5.3.0のバイナリzipをダウンロードして解凍し、libmysql.dllをコピーして上書きしたら動作確認できた。

MacでSC_Pluginが使えない件

Mac OS X バージョン10.6.1

2009年10月16日

CentOSにyumでHyper Erestraier をインストール

[root@vm02 ~]# yum install hyperestraier
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package hyperestraier.i386 0:1.4.10-2.fc8.2 set to be updated
--> Processing Dependency: libqdbm.so.14 for package: hyperestraier
--> Processing Dependency: liblzo2.so.2 for package: hyperestraier
--> Running transaction check
---> Package qdbm.i386 0:1.8.75-3.fc8.2 set to be updated
---> Package lzo.i386 0:2.02-3.fc8 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
hyperestraier i386 1.4.10-2.fc8.2 fedora 709 k
Installing for dependencies:
lzo i386 2.02-3.fc8 fedora 62 k
qdbm i386 1.8.75-3.fc8.2 fedora 280 k

Transaction Summary
=============================================================================
Install 3 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 1.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): hyperestraier-1.4. 100% |=========================| 709 kB 00:03
(2/3): lzo-2.02-3.fc8.i38 100% |=========================| 62 kB 00:00
(3/3): qdbm-1.8.75-3.fc8. 100% |=========================| 280 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: lzo ######################### [1/3]
Installing: qdbm ######################### [2/3]
Installing: hyperestraier ######################### [3/3]

Installed: hyperestraier.i386 0:1.4.10-2.fc8.2
Dependency Installed: lzo.i386 0:2.02-3.fc8 qdbm.i386 0:1.8.75-3.fc8.2
Complete!

CSS Nite LP, Disk 6「CMSリベンジ編」(2009年6月27日開催)