<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
   <channel>
      <title>FAT CAT BLOG</title>
      <link>http://www.fatcat-hosting.net/</link>
      <description>備忘録。サーバ管理のメモなど。。。</description>
      <language>ja</language>
      <copyright>Copyright 2009</copyright>
      <lastBuildDate>Wed, 02 Sep 2009 20:57:57 +0900</lastBuildDate>
      <generator>http://www.sixapart.com/movabletype/?v=3.34</generator>
      <docs>http://blogs.law.harvard.edu/tech/rss</docs> 

            <item>
         <title>database backup</title>
         <description><![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>]]></description>
         <link>http://www.fatcat-hosting.net/2009/09/database_backup.html</link>
         <guid>http://www.fatcat-hosting.net/2009/09/database_backup.html</guid>
         <category>Debian</category>
         <pubDate>Wed, 02 Sep 2009 20:57:57 +0900</pubDate>
      </item>
            <item>
         <title>Xinstall</title>
         <description><![CDATA[<p>#yum grouplist</p>

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

<p>#X -configure</p>

<p>#setup</p>]]></description>
         <link>http://www.fatcat-hosting.net/2009/08/xinstall.html</link>
         <guid>http://www.fatcat-hosting.net/2009/08/xinstall.html</guid>
         <category>CentOS</category>
         <pubDate>Mon, 03 Aug 2009 18:26:57 +0900</pubDate>
      </item>
            <item>
         <title>UTF-8をSJISに変換</title>
         <description><![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>]]></description>
         <link>http://www.fatcat-hosting.net/2009/07/utf8sjis.html</link>
         <guid>http://www.fatcat-hosting.net/2009/07/utf8sjis.html</guid>
         <category>PHP</category>
         <pubDate>Tue, 28 Jul 2009 18:41:02 +0900</pubDate>
      </item>
            <item>
         <title>eaccelerator</title>
         <description><![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>]]></description>
         <link>http://www.fatcat-hosting.net/2009/07/eaccelerator.html</link>
         <guid>http://www.fatcat-hosting.net/2009/07/eaccelerator.html</guid>
         <category>PHP</category>
         <pubDate>Sat, 25 Jul 2009 11:18:12 +0900</pubDate>
      </item>
            <item>
         <title>debian crontab エディター変更</title>
         <description><![CDATA[<p># update-alternatives --config editor</p>]]></description>
         <link>http://www.fatcat-hosting.net/2009/07/debian_crontab.html</link>
         <guid>http://www.fatcat-hosting.net/2009/07/debian_crontab.html</guid>
         <category>Debian</category>
         <pubDate>Wed, 08 Jul 2009 11:22:48 +0900</pubDate>
      </item>
            <item>
         <title>Debian不要なサービスの自動起動を停止</title>
         <description><![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>]]></description>
         <link>http://www.fatcat-hosting.net/2009/06/debian_1.html</link>
         <guid>http://www.fatcat-hosting.net/2009/06/debian_1.html</guid>
         <category>Debian</category>
         <pubDate>Tue, 23 Jun 2009 11:50:00 +0900</pubDate>
      </item>
            <item>
         <title>Windows 2000で大容量HDを使う</title>
         <description><![CDATA[<p>Windows Registry Editor Version 5.00</p>

<p>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\atapi\Parameters]<br />
"EnableBigLba"=dword:00000001<br />
</p>]]></description>
         <link>http://www.fatcat-hosting.net/2009/06/windows_2000hd.html</link>
         <guid>http://www.fatcat-hosting.net/2009/06/windows_2000hd.html</guid>
         <category>Tips</category>
         <pubDate>Sat, 06 Jun 2009 00:03:32 +0900</pubDate>
      </item>
            <item>
         <title>courier-imap</title>
         <description><![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>]]></description>
         <link>http://www.fatcat-hosting.net/2009/05/courierimap_1.html</link>
         <guid>http://www.fatcat-hosting.net/2009/05/courierimap_1.html</guid>
         <category>メール</category>
         <pubDate>Wed, 20 May 2009 11:52:17 +0900</pubDate>
      </item>
            <item>
         <title>OIDs</title>
         <description><![CDATA[<p>PostgreSQL8.x デフォルトの設定でOIDsの設定は無効。<br />
プリマリキーが存在しない時、プリマリキーとしてOIDsは認識しない。</p>

<p>postgresql.conf</p>

<p>default_with_oids = on</p>]]></description>
         <link>http://www.fatcat-hosting.net/2009/05/oids.html</link>
         <guid>http://www.fatcat-hosting.net/2009/05/oids.html</guid>
         <category>PostgreSQL</category>
         <pubDate>Mon, 18 May 2009 00:34:28 +0900</pubDate>
      </item>
            <item>
         <title>XdebugとWinCacheGrind</title>
         <description><![CDATA[<p>XdebugとWinCacheGrind</p>]]></description>
         <link>http://www.fatcat-hosting.net/2009/05/xdebugwincachegrind.html</link>
         <guid>http://www.fatcat-hosting.net/2009/05/xdebugwincachegrind.html</guid>
         <category>PHP</category>
         <pubDate>Mon, 11 May 2009 21:47:52 +0900</pubDate>
      </item>
            <item>
         <title>log</title>
         <description><![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>]]></description>
         <link>http://www.fatcat-hosting.net/2009/05/log.html</link>
         <guid>http://www.fatcat-hosting.net/2009/05/log.html</guid>
         <category>Tips</category>
         <pubDate>Fri, 01 May 2009 09:07:19 +0900</pubDate>
      </item>
            <item>
         <title>yum再構築</title>
         <description><![CDATA[<p>yum clean all<br />
rpm --rebuilddb</p>]]></description>
         <link>http://www.fatcat-hosting.net/2009/04/yum.html</link>
         <guid>http://www.fatcat-hosting.net/2009/04/yum.html</guid>
         <category>CentOS</category>
         <pubDate>Fri, 10 Apr 2009 10:52:59 +0900</pubDate>
      </item>
            <item>
         <title>mod_delay追加</title>
         <description><![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>]]></description>
         <link>http://www.fatcat-hosting.net/2009/04/mod_delay.html</link>
         <guid>http://www.fatcat-hosting.net/2009/04/mod_delay.html</guid>
         <category>Tips</category>
         <pubDate>Thu, 09 Apr 2009 19:04:18 +0900</pubDate>
      </item>
            <item>
         <title>情報を隠す</title>
         <description><![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>]]></description>
         <link>http://www.fatcat-hosting.net/2009/03/post_31.html</link>
         <guid>http://www.fatcat-hosting.net/2009/03/post_31.html</guid>
         <category>Tips</category>
         <pubDate>Fri, 27 Mar 2009 18:24:35 +0900</pubDate>
      </item>
            <item>
         <title>CPAN</title>
         <description><![CDATA[<p>cpan> o conf urllist<br />
  urllist <br />
    ftp://ftp.jaist.ac.jp/pub/CPAN/<br />
Type 'o conf' to view configuration edit options</p>

<p>cpan> o conf<br />
cpan> o conf urllist pop ftp://ftp.jaist.ac.jp/pub/CPAN/<br />
cpan> o conf commit</p>

<p>cpan> o conf<br />
cpan> o conf urllist push ftp://ftp.ring.gr.jp/pub/lang/perl/CPAN/<br />
cpan> o conf commit</p>

<p><br />
install Jcode</p>]]></description>
         <link>http://www.fatcat-hosting.net/2009/03/cpan.html</link>
         <guid>http://www.fatcat-hosting.net/2009/03/cpan.html</guid>
         <category>Perl</category>
         <pubDate>Sun, 22 Mar 2009 06:31:30 +0900</pubDate>
      </item>
      
   </channel>
</rss>
