<?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,2010://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>2010-05-20T07:17:11Z</updated>
    <subtitle>備忘録。サーバ管理のメモなど。。。</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 3.34</generator>
 
<entry>
    <title>OpenPNEのcron</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2010/05/openpnecron.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=179" title="OpenPNEのcron" />
    <id>tag:www.fatcat-hosting.net,2010://3.179</id>
    
    <published>2010-05-20T06:50:58Z</published>
    <updated>2010-05-20T07:17:11Z</updated>
    
    <summary># 7 00   7 * * * root sh /home/ecochil.n...</summary>
    <author>
        <name></name>
        
    </author>
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p># 7<br />
00   7 * * * root sh /home/ecochil.net/public_html/park/sns/bin/tool_send_dairy_news.cron     /home/ecochil.net/public_html/park/sns/bin/ /usr/bin/php<br />
00   7 * * * root sh /home/ecochil.net/public_html/park/sns/bin/tool_send_birthday_mail.cron  /home/ecochil.net/public_html/park/sns/bin/ /usr/bin/php<br />
00   7 * * * root sh /home/ecochil.net/public_html/park/sns/bin/tool_send_schedule_mail.cron  /home/ecochil.net/public_html/park/sns/bin/ /usr/bin/php<br />
*/30 * * * * root sh /home/ecochil.net/public_html/park/sns/bin/tool_rss_cache.cron           /home/ecochil.net/public_html/park/sns/bin/ /usr/bin/php</p>]]>
        
    </content>
</entry>
<entry>
    <title>database backup</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2009/09/database_backup.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=178" title="database backup" />
    <id>tag:www.fatcat-hosting.net,2009://3.178</id>
    
    <published>2009-09-02T11:57:57Z</published>
    <updated>2009-09-02T11:58:14Z</updated>
    
    <summary>#!/bin/sh keepday=30 dest=/var/share/bac...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="Debian" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>#!/bin/sh</p>

<p>keepday=30</p>

<p>dest=/var/share/backup</p>

<p>/usr/bin/pg_dump cms_production > $dest/pgsql-backup</p>

<p>srcfile=$dest/pgsql-backup</p>

<p>timestamp=`date +%Y%m%d`<br />
old_date=`date "-d$keepday days ago" +%Y%m%d`</p>

<p>bkfile=$dest/$timestamp.tar.gz</p>

<p>tar zcvf $bkfile $srcfile  > /dev/null 2>&1</p>

<p>if [ $? != 0 -o ! -e $bkfile ]; then<br />
echo "backup faild -- ($srcfile)"<br />
exit 1<br />
fi</p>

<p>rmfile=$dest/$old_date.tar.gz</p>

<p>if [ -e $rmfile ]; then<br />
rm -f $rmfile<br />
fi</p>

<p>rm -f $dest/pgsql-backup</p>

<p><br />
#database backup<br />
29 0 * * * /var/www/dbbackup.sh > /dev/null 2>&1</p>]]>
        
    </content>
</entry>
<entry>
    <title>Xinstall</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2009/08/xinstall.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=176" title="Xinstall" />
    <id>tag:www.fatcat-hosting.net,2009://3.176</id>
    
    <published>2009-08-03T09:26:57Z</published>
    <updated>2009-08-03T09:28:12Z</updated>
    
    <summary>#yum grouplist #yum groupinstall &quot;X Wind...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="CentOS" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>#yum grouplist</p>

<p>#yum groupinstall "X Window System" "GNOME Desktop Environment"</p>

<p>#X -configure</p>

<p>#setup</p>]]>
        
    </content>
</entry>
<entry>
    <title>UTF-8をSJISに変換</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2009/07/utf8sjis.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=175" title="UTF-8をSJISに変換" />
    <id>tag:www.fatcat-hosting.net,2009://3.175</id>
    
    <published>2009-07-28T09:41:02Z</published>
    <updated>2009-07-28T09:43:40Z</updated>
    
    <summary>htaccess php_flag output_buffering On ph...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="PHP" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>htaccess<br />
php_flag output_buffering On<br />
php_value output_handler mb_output_handler<br />
php_value default_charset Shift_JIS<br />
php_value mbstring.language Japanese<br />
php_flag mbstring.encoding_translation On<br />
php_value mbstring.http_input auto<br />
php_value mbstring.http_output Shift_JIS<br />
php_value mbstring.internal_encoding UTF-8<br />
php_value mbstring.substitute_character none</p>]]>
        <![CDATA[<p>― ソ Ы  噂 浬 欺 圭 構 蚕 十 申 曾 箪 貼 能 表 暴 予 禄 <br />
兔 喀 媾 彌 拿 杤 歃 濬 畚 秉 綵 臀 藹 觸 軆 鐔 饅 鷭  </p>]]>
    </content>
</entry>
<entry>
    <title>eaccelerator</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2009/07/eaccelerator.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=174" title="eaccelerator" />
    <id>tag:www.fatcat-hosting.net,2009://3.174</id>
    
    <published>2009-07-25T02:18:12Z</published>
    <updated>2009-07-25T02:19:27Z</updated>
    
    <summary>wget http://nchc.dl.sourceforge.net/sour...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="PHP" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>wget http://nchc.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.5.tar.bz2<br />
bunzip2 eaccelerator-0.9.5.tar.bz2<br />
tar xvf eaccelerator-0.9.5.tar -C /usr/local/src<br />
cd /usr/local/src/eaccelerator-0.9.5<br />
phpize</p>

<p><br />
./configure --enable-eaccelerator=shared --with-php-config=/usr/bin/php-config --with-eaccelerator-info</p>

<p>make <br />
make install<br />
cp ./modules/eaccelerator.so /usr/lib/php/extensions/</p>

<p><br />
php.ini</p>

<p>zend_extension = "/usr/lib/php/extensions/eaccelerator.so"<br />
eaccelerator.shm_size="16"<br />
eaccelerator.cache_dir="/tmp/eaccelerator"<br />
eaccelerator.log_file = "/var/log/eaccelerator_log"<br />
eaccelerator.enable="1"<br />
eaccelerator.optimizer="1"<br />
eaccelerator.check_mtime="1"<br />
eaccelerator.debug="0"<br />
eaccelerator.filter=""<br />
eaccelerator.shm_max="0"<br />
eaccelerator.shm_ttl="0"<br />
eaccelerator.shm_prune_period="0"<br />
eaccelerator.shm_only="0"<br />
eaccelerator.compress="1"<br />
eaccelerator.compress_level="9"<br />
eaccelerator.allowed_admin_path="/home/kimchi/html/control.php"</p>]]>
        
    </content>
</entry>
<entry>
    <title>debian crontab エディター変更</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2009/07/debian_crontab.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=173" title="debian crontab エディター変更" />
    <id>tag:www.fatcat-hosting.net,2009://3.173</id>
    
    <published>2009-07-08T02:22:48Z</published>
    <updated>2009-08-04T06:44:17Z</updated>
    
    <summary># update-alternatives --config editor...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="Debian" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p># update-alternatives --config editor</p>]]>
        
    </content>
</entry>
<entry>
    <title>Debian不要なサービスの自動起動を停止</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2009/06/debian_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=172" title="Debian不要なサービスの自動起動を停止" />
    <id>tag:www.fatcat-hosting.net,2009://3.172</id>
    
    <published>2009-06-23T02:50:00Z</published>
    <updated>2009-08-04T06:45:42Z</updated>
    
    <summary># update-rc.d -f apache2 remove # update...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="Debian" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p># update-rc.d -f apache2 remove</p>

<p># update-rc.d apache2 defaults</p>

<p><br />
# apt-get update </p>

<p># apt-get upgrade </p>]]>
        
    </content>
</entry>
<entry>
    <title>Windows 2000で大容量HDを使う</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2009/06/windows_2000hd.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=170" title="Windows 2000で大容量HDを使う" />
    <id>tag:www.fatcat-hosting.net,2009://3.170</id>
    
    <published>2009-06-05T15:03:32Z</published>
    <updated>2009-06-05T15:04:17Z</updated>
    
    <summary>Windows Registry Editor Version 5.00 [HK...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="Tips" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>Windows Registry Editor Version 5.00</p>

<p>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\atapi\Parameters]<br />
"EnableBigLba"=dword:00000001<br />
</p>]]>
        
    </content>
</entry>
<entry>
    <title>courier-imap</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2009/05/courierimap_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=169" title="courier-imap" />
    <id>tag:www.fatcat-hosting.net,2009://3.169</id>
    
    <published>2009-05-20T02:52:17Z</published>
    <updated>2009-08-06T04:02:14Z</updated>
    
    <summary>wget http://optusnet.dl.sourceforge.net/...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="メール" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>wget http://optusnet.dl.sourceforge.net/sourceforge/courier/courier-authlib-0.59.tar.bz2<br />
tar -xjf courier-authlib-0.59.tar.bz2<br />
chown -R root.root courier-authlib-0.59<br />
cd courier-authlib-0.59</p>

<p>./configure --prefix=/usr/local/courier-authlib --without-authpam --without-authldap --without-authpwd --without-authmysql --without-authpgsql --without-authshadow --without-authuserdb --without-authcustom --without-authcram --without-authpipe --with-authdaemon --with-authvchkpw --with-redhat</p>

<p>make<br />
make install<br />
make install-configure</p>

<p><br />
vi /usr/local/courier-authlib/etc/authlib/authdaemonrc<br />
authmodulelist="authvchkpw"</p>

<p><br />
cp courier-authlib.sysvinit /etc/rc.d/init.d/courier-authlib<br />
chmod 744 /etc/rc.d/init.d/courier-authlib<br />
chkconfig --add courier-authlib</p>

<p>/etc/rc.d/init.d/courier-authlib start</p>

<p></p>

<p>wget http://optusnet.dl.sourceforge.net/sourceforge/courier/courier-imap-4.1.2.tar.bz2<br />
tar -xjf courier-imap-4.1.2.tar.bz2<br />
chown -R root.root courier-imap-4.1.2<br />
cd courier-imap-4.1.2</p>

<p>COURIERAUTHCONFIG=/usr/local/courier-authlib/bin/courierauthconfig CPPFLAGS=-I/usr/local/courier-authlib/include ./configure --prefix=/usr/local/courier-imap --disable-root-check --with-ssl --enable-unicode=iso-2022-jp,iso-8859-1,utf-8,iso-8859-10 --with-redhat</p>

<p>make<br />
make install<br />
make install-configure<br />
</p>]]>
        
    </content>
</entry>
<entry>
    <title>OIDs</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2009/05/oids.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=168" title="OIDs" />
    <id>tag:www.fatcat-hosting.net,2009://3.168</id>
    
    <published>2009-05-17T15:34:28Z</published>
    <updated>2009-05-17T15:36:11Z</updated>
    
    <summary>PostgreSQL8.x デフォルトの設定でOIDsの設定は無効。 プリマリキ...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="PostgreSQL" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>PostgreSQL8.x デフォルトの設定でOIDsの設定は無効。<br />
プリマリキーが存在しない時、プリマリキーとしてOIDsは認識しない。</p>

<p>postgresql.conf</p>

<p>default_with_oids = on</p>]]>
        
    </content>
</entry>
<entry>
    <title>XdebugとWinCacheGrind</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2009/05/xdebugwincachegrind.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=167" title="XdebugとWinCacheGrind" />
    <id>tag:www.fatcat-hosting.net,2009://3.167</id>
    
    <published>2009-05-11T12:47:52Z</published>
    <updated>2009-05-11T12:48:02Z</updated>
    
    <summary>XdebugとWinCacheGrind...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="PHP" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>XdebugとWinCacheGrind</p>]]>
        
    </content>
</entry>
<entry>
    <title>log</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2009/05/log.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=166" title="log" />
    <id>tag:www.fatcat-hosting.net,2009://3.166</id>
    
    <published>2009-05-01T00:07:19Z</published>
    <updated>2009-05-01T00:07:30Z</updated>
    
    <summary>/var/log/httpd/*log /home/*/logs/*log { ...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="Tips" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>/var/log/httpd/*log /home/*/logs/*log {<br />
    monthly<br />
    rotate 12<br />
    missingok<br />
    dateext<br />
    notifempty<br />
    sharedscripts<br />
    postrotate<br />
        /sbin/service httpd reload > /dev/null 2>/dev/null || true<br />
    endscript<br />
}</p>]]>
        
    </content>
</entry>
<entry>
    <title>yum再構築</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2009/04/yum.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=165" title="yum再構築" />
    <id>tag:www.fatcat-hosting.net,2009://3.165</id>
    
    <published>2009-04-10T01:52:59Z</published>
    <updated>2009-08-04T09:09:11Z</updated>
    
    <summary>yum clean all rpm --rebuilddb...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="CentOS" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>yum clean all<br />
rpm --rebuilddb</p>]]>
        
    </content>
</entry>
<entry>
    <title>mod_delay追加</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2009/04/mod_delay.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=164" title="mod_delay追加" />
    <id>tag:www.fatcat-hosting.net,2009://3.164</id>
    
    <published>2009-04-09T10:04:18Z</published>
    <updated>2009-04-09T10:04:47Z</updated>
    
    <summary>mod_delay追加   DelayEngine on DelayTable ...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="Tips" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>mod_delay追加</p>

<p><IfModule mod_delay.c><br />
  DelayEngine on<br />
</IfModule></p>

<p>DelayTable          /var/proftpd/proftpd.delay<br />
 <br />
mkdir /var/proftpd <br />
</p>]]>
        
    </content>
</entry>
<entry>
    <title>情報を隠す</title>
    <link rel="alternate" type="text/html" href="http://www.fatcat-hosting.net/2009/03/post_31.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.fatcat-hosting.net/mt-atom.cgi/weblog/blog_id=3/entry_id=163" title="情報を隠す" />
    <id>tag:www.fatcat-hosting.net,2009://3.163</id>
    
    <published>2009-03-27T09:24:35Z</published>
    <updated>2009-03-27T09:25:47Z</updated>
    
    <summary>Apacheの情報を隠す ServerTokens Prod ServerSig...</summary>
    <author>
        <name></name>
        
    </author>
            <category term="Tips" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.fatcat-hosting.net/">
        <![CDATA[<p>Apacheの情報を隠す</p>

<p>ServerTokens Prod<br />
ServerSignature Off</p>

<p><br />
PHPの情報を隠す<br />
php.iniの設定</p>

<p>expose_php = On<br />
　↓<br />
expose_php = Off</p>]]>
        
    </content>
</entry>

</feed> 

