<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>FAT CAT BLOG</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/" />
    <link rel="self" type="application/atom+xml" href="http://www.fatcat-hosting.net/atom.xml" />
   <id>tag:www.fatcat-hosting.net,2008://3</id>
    <link rel="service.post" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3" title="FAT CAT BLOG" />
    <updated>2008-12-14T18:34:28Z</updated>
    <subtitle>備忘録。サーバ管理のメモなど。。。</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 3.34</generator>
 
<entry>
    <title>pdo_mysql</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2008/12/pdo_mysql.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=151" title="pdo_mysql" />
    <id>tag:www.fatcat-hosting.net,2008://3.151</id>
    
    <published>2008-12-14T18:31:14Z</published>
    <updated>2008-12-14T18:34:28Z</updated>
    
    <summary>PDOライブラリを PHPでロードさせようとすると、 PHP Warning: ...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="MySQL" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>PDOライブラリを PHPでロードさせようとすると、</p>

<p>PHP Warning:  Module 'PDO' already loaded in Unknown on line 0<br />
/libexec/ld-elf.so.1: /usr/local/lib/php/extensions/pdo_mysql.so: Undefined symbol "php_pdo_declare_long_constant"</p>

<p>disable-pdoで、configureし直す。。</p>

<p>vi php.ini<br />
include_path = ".:/php/includes:/usr/local/lib/php"<br />
extension_dir = "/usr/local/lib/php/extensions"</p>

<p><br />
extension=pdo.so<br />
extension=pdo_mysql.so</p>

<p><br />
</p>]]>
        
    </content>
</entry>
<entry>
    <title>awstatsの文字化け</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2008/12/awstats.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=149" title="awstatsの文字化け" />
    <id>tag:www.fatcat-hosting.net,2008://3.149</id>
    
    <published>2008-12-05T17:27:48Z</published>
    <updated>2008-12-05T17:28:25Z</updated>
    
    <summary>+use Jcode; sub DecodeEncodedString { my...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="Tips" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>+use Jcode;<br />
sub DecodeEncodedString {<br />
my $stringtodecode=shift;<br />
$stringtodecode =~ tr/\+/ /s;<br />
$stringtodecode =~ s/%([A-F0-9][A-F0-9])/pack(”C”, hex($1))/ieg;<br />
+ Jcode::convert(\$stringtodecode, "utf8");<br />
return $stringtodecode;<br />
}<br />
</p>]]>
        
    </content>
</entry>
<entry>
    <title>Webdav</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2008/11/webdav.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=148" title="Webdav" />
    <id>tag:www.fatcat-hosting.net,2008://3.148</id>
    
    <published>2008-11-22T12:02:06Z</published>
    <updated>2008-11-22T12:02:30Z</updated>
    
    <summary>DavLockDB /var/lock/dav/DavLock Alias /d...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="Tips" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>DavLockDB /var/lock/dav/DavLock</p>

<p>Alias /dav "/home/dav/"<br />
<Directory /home/dav><br />
        AllowOverride FileInfo AuthConfig Limit Indexes<br />
        Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec<br />
        <Limit GET POST OPTIONS PROPFIND><br />
                Order allow,deny<br />
                Allow from all<br />
        </Limit><br />
</Directory><br />
<Location /dav><br />
        DAV On<br />
        Options FollowSymLinks Indexes<br />
        AuthType Basic<br />
        AuthName "WebDAV"<br />
        AuthUserFile /var/www/webdav.passwd<br />
        <Limit GET PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK><br />
                require valid-user<br />
        </Limit><br />
</Location></p>

<p><br />
htpasswd -c /var/www/webdav.passwd</p>]]>
        
    </content>
</entry>
<entry>
    <title>namedのログ</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2008/11/named.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=147" title="namedのログ" />
    <id>tag:www.fatcat-hosting.net,2008://3.147</id>
    
    <published>2008-11-21T07:21:53Z</published>
    <updated>2008-11-21T07:22:10Z</updated>
    
    <summary>logging {         channel my_syslog {   ...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="Tips" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>logging {<br />
        channel my_syslog {<br />
                syslog local6;<br />
                severity info;<br />
        };</p>

<p>        category default {<br />
                my_syslog;<br />
        };<br />
};</p>

<p>local6.*                  /var/log/named.log</p>]]>
        
    </content>
</entry>
<entry>
    <title>携帯振り分け</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2008/11/post_30.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=146" title="携帯振り分け" />
    <id>tag:www.fatcat-hosting.net,2008://3.146</id>
    
    <published>2008-11-17T01:52:51Z</published>
    <updated>2008-11-17T01:53:10Z</updated>
    
    <summary> RewriteEngine On # SoftBank RewriteCond...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="Tips" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p><IfModule mod_rewrite.c><br />
RewriteEngine On</p>

<p># SoftBank<br />
RewriteCond %{HTTP_USER_AGENT} ^J-PHONE [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Vodafone [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^MOT- [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^SoftBank<br />
RewriteRule ^$ /mobile/v/ [R=302,L]</p>

<p># DoCoMo<br />
RewriteCond %{HTTP_USER_AGENT} ^DoCoMo<br />
RewriteRule ^$ /mobile/i/ [R=302,L]</p>

<p># au(HDML-Only)<br />
RewriteCond %{HTTP_USER_AGENT} ^UP.Browser [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^KDDI<br />
RewriteRule ^$ /mobile/a/ [R=302,L]</p>

<p></IfModule></p>]]>
        
    </content>
</entry>
<entry>
    <title>CentOS 文字化け</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2008/11/centos.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=145" title="CentOS 文字化け" />
    <id>tag:www.fatcat-hosting.net,2008://3.145</id>
    
    <published>2008-11-12T04:38:52Z</published>
    <updated>2008-11-17T01:53:51Z</updated>
    
    <summary>/etc/sysconfig/i18n LANG=&quot;ja_JP.eucJP&quot; S...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="Tips" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>/etc/sysconfig/i18n<br />
LANG="ja_JP.eucJP"<br />
SUPPORTED="ja_JP.eucJP:ja_JP:ja"<br />
SYSFONT="latarcyrheb-sun16" </p>

<p>/etc/man.config<br />
PAGER /usr/bin/lv -i </p>]]>
        
    </content>
</entry>
<entry>
    <title>Debian</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2008/10/debian.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=144" title="Debian" />
    <id>tag:www.fatcat-hosting.net,2008://3.144</id>
    
    <published>2008-10-26T04:39:00Z</published>
    <updated>2008-10-26T10:58:47Z</updated>
    
    <summary>Debianでインストール済のパッケージのリストを表示するには、 # dpkg ...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="FreeBSD&amp;Linux" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>Debianでインストール済のパッケージのリストを表示するには、<br />
# dpkg -l</p>

<p></p>

<p>/etc/apt/sources.list<br />
deb http://ftp2.jp.debian.org/debian/ etch main contrib non-free<br />
deb http://ftp2.jp.debian.org/debian/ etch-proposed-updates main contrib non-free<br />
deb http://ftp2.jp.debian.org/debian-security/ etch/updates main contrib non-free<br />
deb http://security.debian.org etch/updates main contrib non-free</p>

<p>deb-src http://ftp2.jp.debian.org/debian/ etch main contrib non-free<br />
deb-src http://ftp2.jp.debian.org/debian/ etch-proposed-updates main contrib non-free<br />
deb-src http://ftp2.jp.debian.org/debian-security/ etch/updates main contrib non-free<br />
deb-src http://security.debian.org etch/updates main contrib non-free</p>]]>
        <![CDATA[<p>apt-get install ruby irb ruby1.8-dev libpgsql-ruby1.8 libfcgi-ruby1.8 librmagick-ruby1.8 libopenssl-ruby1.8 rdoc zlib1g-dev apache2 postgresql postfix chasen chasen-dictutils libchasen-dev ipadic kakasi libkakasi-ruby1.8 lighttpd zip unzip rsync libgd2-xpm libgd-ruby1.8 libxslt1-dev xsltproc gcc make </p>

<p>wget http://rubyforge.org/frs/download.php/43985/rubygems-1.3.0.tgz<br />
cd rubygems-1.3.0<br />
ruby setup.rb<br />
apt-get install rubygems</p>

<p>gem install rake scrapi tidy --include-dependencies</p>

<p>Gem::GemRunner(NameError)のエラー対策<br />
/usr/bin/gemの10行目(require 'rubygems'の下の行)に<br />
require 'rubygems/gem_runner'を追加</p>

<p></p>

<p>wget http://raa.ruby-lang.org/cache/ruby-chasen/chasen1.6.tar.gz<br />
tar zxvf chasen1.6.tar.gz<br />
cd chasen1.6<br />
ruby extconf.rb<br />
make<br />
make install</p>

<p>wget http://downloads.sourceforge.net/lame/lame-3.97.tar.gz<br />
tar zxvf lame-3.97.tar.gz<br />
cd lame-3.97<br />
./configure<br />
make<br />
make install</p>

<p>aptitude install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl libmd5-perl</p>

<p>wget http://nchc.dl.sourceforge.net/sourceforge/webadmin/webmin_1.320_all.deb<br />
dpkg -i webmin_1.320_all.deb</p>]]>
    </content>
</entry>
<entry>
    <title>CentOS4にはnkfがない。。</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2008/10/centos4nkf.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=143" title="CentOS4にはnkfがない。。" />
    <id>tag:www.fatcat-hosting.net,2008://3.143</id>
    
    <published>2008-10-06T23:22:56Z</published>
    <updated>2008-10-16T19:52:36Z</updated>
    
    <summary>CentOS4にはnkfがない。。 src.rpmで、RPMを作る rpmbui...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="FreeBSD&amp;Linux" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>CentOS4にはnkfがない。。</p>

<p>src.rpmで、RPMを作る</p>

<p>rpmbuild --rebuild nkf-2.0.8b-2.fc9.src.rpm</p>

<p>rpm -ivh nkf-2.0.8b-2.x86_64.rpm<br />
rpm -ivh perl-NKF-2.0.8b-2.x86_64.rpm</p>

<p> </p>]]>
        
    </content>
</entry>
<entry>
    <title>Maximum execution time of 30 seconds exceededの対応方法</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2008/08/max_execution_time.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=140" title="Maximum execution time of 30 seconds exceededの対応方法" />
    <id>tag:www.fatcat-hosting.net,2008://3.140</id>
    
    <published>2008-08-27T02:53:20Z</published>
    <updated>2008-08-27T02:55:10Z</updated>
    
    <summary>set_time_limit(60); ...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="PHP&amp;Perl" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>set_time_limit(60);<br />
</p>]]>
        
    </content>
</entry>
<entry>
    <title>vipmap(vpopmail)</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2008/08/vipmapvpopmail.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=139" title="vipmap(vpopmail)" />
    <id>tag:www.fatcat-hosting.net,2008://3.139</id>
    
    <published>2008-08-21T04:16:14Z</published>
    <updated>2008-08-21T04:17:56Z</updated>
    
    <summary>/etc/sysconfig/network-script/ifcfg-eth0...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="qmail" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>/etc/sysconfig/network-script/ifcfg-eth0:0</p>

<p>DEVICE=eth0:0<br />
BOOTPROTO=static<br />
IPADDR=xxx.xxx.xxx.xxx<br />
NETMASK=255.255.255.0<br />
ONBOOT=yesq<br />
NO_ALIASROUTING=yes</p>

<p>vipmap -a xxx.xxx.xxx.xxx fatcat-hosting.net</p>]]>
        
    </content>
</entry>
<entry>
    <title>date</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2008/08/date.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=138" title="date" />
    <id>tag:www.fatcat-hosting.net,2008://3.138</id>
    
    <published>2008-08-11T09:40:25Z</published>
    <updated>2008-08-11T09:40:42Z</updated>
    
    <summary>Linux date +%Y%m%d -d &apos;yesterday&apos; FreeBS...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="Tips" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>Linux<br />
date +%Y%m%d -d 'yesterday'</p>

<p>FreeBSD<br />
date -v-1d +%Y%m%d</p>]]>
        
    </content>
</entry>
<entry>
    <title>gaminrc</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2008/07/etcgamin.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=136" title="gaminrc" />
    <id>tag:www.fatcat-hosting.net,2008://3.136</id>
    
    <published>2008-07-31T08:05:16Z</published>
    <updated>2008-08-10T05:07:23Z</updated>
    
    <summary>/etc/gamin/gaminrc fsset ext3 poll 10 ...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="Tips" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>/etc/gamin/gaminrc</p>

<p>fsset ext3 poll 10</p>

<p><br />
</p>]]>
        
    </content>
</entry>
<entry>
    <title>最近読んだ本5</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2008/07/5_1.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=135" title="最近読んだ本5" />
    <id>tag:www.fatcat-hosting.net,2008://3.135</id>
    
    <published>2008-07-21T09:00:47Z</published>
    <updated>2008-07-21T09:01:45Z</updated>
    
    <summary>丸山圭三郎 『ソシュールの思想』 岩波書店...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="読書" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>丸山圭三郎 『ソシュールの思想』 岩波書店</p>]]>
        
    </content>
</entry>
<entry>
    <title>RPM のデータベースファイルを再構築</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2008/07/rpm.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=133" title="RPM のデータベースファイルを再構築" />
    <id>tag:www.fatcat-hosting.net,2008://3.133</id>
    
    <published>2008-07-17T23:06:50Z</published>
    <updated>2008-07-17T23:07:08Z</updated>
    
    <summary>rpm --rebuilddb...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="FreeBSD&amp;Linux" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>rpm --rebuilddb</p>]]>
        
    </content>
</entry>
<entry>
    <title>pwd_mkdb</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2008/07/pwd_mkdb.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=132" title="pwd_mkdb" />
    <id>tag:www.fatcat-hosting.net,2008://3.132</id>
    
    <published>2008-07-15T02:37:27Z</published>
    <updated>2008-07-15T02:38:01Z</updated>
    
    <summary>pwd_mkdb -p /etc/master.passwd  /etc/pas...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="FreeBSD&amp;Linux" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>pwd_mkdb -p /etc/master.passwd </p>

<p>/etc/passwd<br />
/etc/pwd.db<br />
/etc/spwd.db</p>]]>
        
    </content>
</entry>

</feed> 

