2009-04-01から1ヶ月間の記事一覧

https コマンドクライアント

opensslを使うと、telnet port 80 と同じようにHTTPのコマンドを入力できる。 $ openssl s_client -connect 192.168.1.1:443 .... SSLハンドシェイクなどを表示 .... GET / HTTP/1.1 Host: www.example.jp [RETURN]

メール送信確認

コマンドでメール送信を確認。DATAの最後は、"."のみの行であること。以下も参照のこと。 http://www.puni.net/~mimori/smtp/ref.html $ telnet smtp.example.jp 25 Trying 192.168.1.1... Connected to smtp.example.jp. Escape character is '^]'. 220 smt…

eccube 2.3.4 のインストール

以下のマニュアルサイトのようにしてもうまくいかなかったのでメモ。 http://wiki.ec-cube.net/index.php?EC-CUBE%A1%CA2%A1%A5x%B7%CF%A1%CB また、PHPにzlibを組み込んでいて、設定にて、 zlib.output_compression On の場合、installプログラムにFirefox…

CentOSでの自分でインストールしたapacheの起動

/sbin/chkconfigでブート指定されているapacheを自分でインストールしたものに変更する場合。 $ cat /etc/sysconfig/httpd # Currently, you can use the following options: # OPTIONS="whatever" -- These additional options will be passed to httpd # a…

tDiaryからwordpressへの変換のためのスクリプト変更

概要 tDiaryからwordpressへ引っ越しをする際、MovableTypeへ変更するようだ。 http://fumi.me/2009/02/10/tdiary-to-wordpress/ そこで上記で見つけたt2m.plをもとに引っ越しを行った。ただ、こちらの環境に合わせて以下の変更を行っている。 投稿ステータ…

CentOSでのdefault route設定とether1設定

default route 通常はここでよい。 $ cat /etc/sysconfig/network GATEWAY=192.168.1.254 eth1 イーサネットが2枚あるときの2枚目ether1は以下で指定。 $ cat /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 BOOTPROTO=static BROADCAST=192.168.2.…

CSSのfont-family

IE7 on Windows XPでUTF-8が文字コードのデフォルトのfont-familyがちょっと変だと気がついた。 font-familyを指定する場合は、 body { font-family:'ヒラギノ角ゴ Pro W3','Hiragino Kaku Gothic Pro','メイリオ',Meiryo,'MS Pゴシック',sans-serif; } …