<? echo('<?xml version="1.0" encoding="utf-8"?>') ?>
<rss version="2.0">
<channel>
<title>Olive-Design CGI PHP Linux Server Memo</title>
<link>http://www.olive-design.com/~cgi/MT/</link>
<description>Server Technical Memo</description>
<language>ja</language>
<copyright>Copyright 2006</copyright>
<lastBuildDate>Sat, 10 Sep 2005 21:41:35 +0900</lastBuildDate>
<generator>http://www.movabletype.org/?v=3.151-ja</generator>
<docs>http://blogs.law.harvard.edu/tech/rss</docs> 

<item>
<title>ntpサーバーの設定</title>
<description><![CDATA[<p>サーバーの正確な時間をセットする為にNTPクライアントを使ってNTPタイムサーバーに情報を取りに行く様に設定します。</p>

<p>（１）まず最初にntp.confを修正します<br />
<table border=0 width=95%><tr><td><br />
<table bgcolor=black width=100% border=1 cellspacing=0><tr><td><font color=white>#vi /etc/ntp.conf<br />
</font></td></tr></table><br />
</td></tr></table></p>

<p>ファイルを開いたら<br />
<table border=0 width=95%><tr><td><br />
<table bgcolor=black width=100% border=1 cellspacing=0><tr><td><font color=white><br />
#<br />
# Undisciplined Local Clock. This is a fake driver intended for backup<br />
# and when no outside source of synchronized time is available. The<br />
# default stratum is usually 3, but in this case we elect to use stratum<br />
# 0. Since the server line does not have the prefer keyword, this driver<br />
# is never used for synchronization, unless no other other<br />
# synchronization source is available. In case the local host is<br />
# controlled by some external source, such as an external oscillator or<br />
# another protocol, the prefer keyword would cause the local host to<br />
# disregard all other synchronization sources, unless the kernel<br />
# modifications are in use and declare an unsynchronized condition.<br />
#<br />
#server 127.127.1.0     # local clock<br />
fudge   127.127.1.0 stratum 10</p>

<p>#<br />
# Drift file.  Put this in a directory which the daemon can write to.<br />
# No symbolic links allowed, either, since the daemon updates the file<br />
# by creating a temporary in the same directory and then rename()'ing<br />
# it to the file.<br />
#<br />
driftfile /etc/ntp/drift<br />
multicastclient                 # listen on default 224.0.1.1<br />
broadcastdelay  0.008 </p>

<p>#<br />
# Keys file.  If you want to diddle your server at run time, make a<br />
# keys file (mode 600 for sure) and define the key number to be<br />
# used for making requests.<br />
#<br />
# PLEASE DO NOT USE THE DEFAULT VALUES HERE. Pick your own, or remote<br />
# systems might be able to reset your clock at will. Note also that<br />
# ntpd is started with a -A flag, disabling authentication, that<br />
# will have to be removed as well.<br />
#<br />
#keys           /etc/ntp/keys<br />
</font></td></tr></table><br />
</td></tr></table></p>

<p>このファイルの最後に各プロバイダでも公開されているntpサーバーまたは、<br />
<a href="http://plamo.minidns.net/ntpsites.shtml">国内公開 ntp サイト一覧</a><br />
などを参考にして</p>

<p>server ***.***.***.*** </p>

<p>の行を追加します。(***はntpサーバーアドレス)</p>

<p><br />
（２）ntp.confを修正して保存したら、ntpサーバーと同期をとるために<br />
ntpdateコマンドで時計を合わせ直します。</p>

<table border=0 width=95%><tr><td>
<table bgcolor=black width=100% border=1 cellspacing=0><tr><td><font color=white>#/etc/rc.d/init.d/ntpd stop<br>
#/usr/sbin/ntpdate 210.173.160.57</font></td></tr></table>
</td></tr></table>

<p>（３）NTPDを起動します。<br />
<table border=0 width=95%><tr><td><br />
<table bgcolor=black width=100% border=1 cellspacing=0><tr><td><font color=white>#/etc/rc.d/init.d/ntpd start</font></td></tr></table><br />
</td></tr></table></p>

<p>（４）動作確認<br />
<table border=0 width=95%><tr><td><br />
<table bgcolor=black width=100% border=1 cellspacing=0><tr><td><font color=white>#/usr/sbin/ntpq -p<br />
　remote　　refid　　　　　　st t when　poll 　reach　delay　offset　 jitter<br />
==============================================================================<br />
*ntp2.jst.mfeed. 210.173.160.86　　2 u 　3　64　1　39.731　21.946　0.002<br />
</font></td></tr></table><br />
</td></tr></table><br />
しばらくして*が表示されたら同期完了です。(ローカルの時計との誤差が+-１分ぐらいでないと同期できません。）</p>

<p>（５）再起動後自動起動するように設定します。<table border=0 width=95%><tr><td><br />
<table bgcolor=black width=100% border=1 cellspacing=0><tr><td><font color=white>#/sbin/chkconfig ntpd on<br />
</font></td></tr></table><br />
</td></tr></table></p>]]></description>
<link>http://www.olive-design.com/~cgi/MT/archives/2005/09/ntp.html</link>
<guid>http://www.olive-design.com/~cgi/MT/archives/2005/09/ntp.html</guid>
<category>時間合わせNTPサーバー</category>
<pubDate>Sat, 10 Sep 2005 21:41:35 +0900</pubDate>
</item>
<item>
<title>Windows＋Apache＋PHPインストール（その3）</title>
<description><![CDATA[<p>Apacheを再起動させたら最後にPHPの動作確認をしてみましょう。<br />
エデッタ等でphpinfo.phpというファイル名の以下の内容のファイルを作成します。</p>

<p></p>

<p><br />
</p>]]></description>
<link>http://www.olive-design.com/~cgi/MT/archives/2005/09/windowsapacheph_2.html</link>
<guid>http://www.olive-design.com/~cgi/MT/archives/2005/09/windowsapacheph_2.html</guid>
<category>WindowsでPHP</category>
<pubDate>Thu, 08 Sep 2005 22:34:46 +0900</pubDate>
</item>
<item>
<title>Windows＋Apache＋PHPインストール（その2）</title>
<description><![CDATA[<p>PHPのインストールがうまくできたら最後にApacheで.phpファイルが実行できるようにApacheの設定ファイルの編集をおこないます。</p>

<p><br />
</p>]]></description>
<link>http://www.olive-design.com/~cgi/MT/archives/2005/09/windowsapacheph_1.html</link>
<guid>http://www.olive-design.com/~cgi/MT/archives/2005/09/windowsapacheph_1.html</guid>
<category>WindowsでPHP</category>
<pubDate>Thu, 08 Sep 2005 22:17:49 +0900</pubDate>
</item>
<item>
<title>Windows＋Apache＋PHPインストール（その１）</title>
<description><![CDATA[<p>ここでは、Windows2000をWWWサーバーOSとして、<br />
wwwサーバーには「Apache」を使ってPHP用のローカルのテスト環境作成例を紹介します。</p>

<p><br />
</p>]]></description>
<link>http://www.olive-design.com/~cgi/MT/archives/2005/09/windowsapacheph.html</link>
<guid>http://www.olive-design.com/~cgi/MT/archives/2005/09/windowsapacheph.html</guid>
<category>WindowsでPHP</category>
<pubDate>Tue, 06 Sep 2005 21:10:26 +0900</pubDate>
</item>
<item>
<title>Windows＋Apache＋ActivePerlインストール（その3）</title>
<description><![CDATA[<p>ActivePerlのインストールがうまくできたら最後にApacheで.cgiファイルが実行できるようにApacheの設定ファイルの編集をおこないます。<br />
</p>]]></description>
<link>http://www.olive-design.com/~cgi/MT/archives/2005/07/windowsapacheac_1.html</link>
<guid>http://www.olive-design.com/~cgi/MT/archives/2005/07/windowsapacheac_1.html</guid>
<category>WindowsでPerl</category>
<pubDate>Wed, 06 Jul 2005 21:48:07 +0900</pubDate>
</item>
<item>
<title>Windows＋Apache＋ActivePerlインストール（その２）</title>
<description><![CDATA[<p>Apacheがうまくインストールできたら、次はActivePerlをインストールします。<br />
以下のURLから最新バージョンをダウンロードしてきます。<br />
<a href="http://www.activestate.com/Products/ActivePerl/">http://www.activestate.com/Products/ActivePerl/</a><br />
最新版のWindows のmsiインストーラパッケージをダウンロードしておきます。<br />
ダウンロードしたファイルをダブルクリックしてセットアップをはじめます。</p>]]></description>
<link>http://www.olive-design.com/~cgi/MT/archives/2005/06/windowsapacheac.html</link>
<guid>http://www.olive-design.com/~cgi/MT/archives/2005/06/windowsapacheac.html</guid>
<category>WindowsでPerl</category>
<pubDate>Tue, 28 Jun 2005 21:57:37 +0900</pubDate>
</item>
<item>
<title>Windows＋Apache＋ActivePerlインストール（その１）</title>
<description><![CDATA[<p>ここでは、Windows2000をWWWサーバーOSとして、wwwサーバーには「Apache」を、Perlエンジンには「ActivePerl」を利用して組み合わせにおける、ローカルのCGIテスト環境作成例を紹介します。</p>]]></description>
<link>http://www.olive-design.com/~cgi/MT/archives/2005/06/windowapacheact.html</link>
<guid>http://www.olive-design.com/~cgi/MT/archives/2005/06/windowapacheact.html</guid>
<category>WindowsでPerl</category>
<pubDate>Sun, 26 Jun 2005 22:39:53 +0900</pubDate>
</item>


</channel>
</rss>