<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule" >
  <channel>
  <title>鯖設定とプログラム</title>
  <link>http://newbie.blog.shinobi.jp/</link>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://newbie.blog.shinobi.jp/RSS/" />
  <description>メモ。</description>
  <lastBuildDate>Mon, 24 Oct 2011 16:21:40 GMT</lastBuildDate>
  <language>ja</language>
  <copyright>© Ninja Tools Inc.</copyright>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" />

    <item>
    <title>PHP5.3.8にアップグレードする RHEL4(RedHat Enterprise Linux ES v4)</title>
    <description>
    <![CDATA[curlを有効にしたかったので、ついでに何年ぶりかにPHPをアップグレードした。<br />
<br />
PHP5.2.5からPHP5.3.8にサーバをアップグレードする。<br />
<br />
<a href="http://newbie.blog.shinobi.jp/Entry/53/">前回のPHP5.2.4からPHP5.2.5にアップグレード</a>と同様にインストールしてみる。<br />
<br />
# cd /usr/local/src/<br />
<br />
# wget <a href="http://jp.php.net/get/php-5.3.8.tar.gz/from/a/mirror">http://jp.php.net/get/php-5.3.8.tar.gz/from/a/mirror</a><br />
# ls -al<br />
php-5.3.8.tar.bz2<br />
<br />
# tar jxvf php-5.3.8.tar.bz2<br />
# cd php-5.3.8<br />
<br />
# ../configure --prefix=/usr/local --bindir=/usr/local/bin/ --with-apxs2=/usr/sbin/apxs --with-mysql=/usr --enable-mbstring --enable-mbregex --with-freetype-dir=/usr --with-png-dir=/usr --with-gd --enable-gd-native-ttf --with-gettext --with-gmp --with-iconv --with-jpeg　-dir=/usr --with-openssl --with-pspell --with-regex --with-zlib --with-layout=GNU --enable-bcmath --enable-exif --enable-ftp --enable-magic-quot<br />
es --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm --enable-wddx --without-oci8 --with-pear --with-kerberos=/usr/kerberos --with-ldap=shared --enable-bcmath --enable-shmop --enable-calendar --with-pdo-mysql --with-mcrypt <strong><font style="color: rgb(255, 0, 0);">--with-curl</font></strong><br />
<br />
+--------------------------------------------------------------------+<br />
| License: |<br />
| This software is subject to the PHP License, available in this |<br />
| distribution in the file LICENSE. By continuing this installation |<br />
| process, you are bound by the terms of this license agreement. |<br />
| If you do not agree with the terms of this license, you must abort |<br />
| the installation process at this point. |<br />
+--------------------------------------------------------------------+<br />
<br />
Thank you for using PHP.<br />
<br />
# make<br />
<br />
Build complete.<br />
(It is safe to ignore warnings about tempnam and tmpnam).<br />
<br />
アパッチを止める<br />
/etc/init.d/httpd stop<br />
インストール<br />
# make install<br />
アパッチ起動<br />
/etc/init.d/httpd start<br />
<br />
これでアップグレードは完了。<br />
<br />
# php -v<br />
<br />
5.3.8の情報に変わっていた。<br />
<br />
Deprecated: Directive &#39;magic_quotes_gpc&#39; is deprecated in PHP 5.3 and greater in Unknown on line 0<br />
と警告が出ている。5.3以降は&#39;magic_quotes_gpc&#39;が推奨されていないようだ。<br />
<br />
# vi&nbsp;/usr/local/etc/php.ini<br />
<br />
magic_quotes_gpc = Offとした<br />
もう一つ非推奨のregister_long_arraysも<br />
register_long_arrays = Off<br />
とした。<br />
<br />
# php -v<br />
PHP 5.3.8 (cli) (built: Oct 25 2011 00:53:30)<br />
Copyright (c) 1997-2011 The PHP Group<br />
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies<br />
<br />
エラーも出なくなりcurlも利用可能となった。<br />
<br />
PHPアップグレード履歴<br />
<a href="../../../../Entry/17/">PHP4.3.9からPHP5.1.5にアップグレード</a><br />
<a href="../../../../Entry/19/">PHP5.1.5からPHP5.2.0にアップグレード</a><br />
<a href="../../../../Entry/31/">PHP5.2.0からPHP5.2.1にアップグレード</a><br />
<a href="http://newbie.blog.shinobi.jp/Entry/46/">PHP5.2.1からPHP5.2.3にアップグレード</a><br />
<a href="http://newbie.blog.shinobi.jp/Entry/50/">PHP5.2.3からPHP5.2.4にアップグレード</a><br />
<a href="http://newbie.blog.shinobi.jp/Entry/53/">PHP5.2.4からPHP5.2.5にアップグレード</a>]]>
    </description>
    <category>サーバ</category>
    <link>http://newbie.blog.shinobi.jp/%E3%82%B5%E3%83%BC%E3%83%90/php5.3.8%E3%81%AB%E3%82%A2%E3%83%83%E3%83%97%E3%82%B0%E3%83%AC%E3%83%BC%E3%83%89%E3%81%99%E3%82%8B%20rhel4-redhat%20enterprise%20linux%20es%20v4-</link>
    <pubDate>Mon, 24 Oct 2011 16:22:26 GMT</pubDate>
    <guid isPermaLink="false">newbie.blog.shinobi.jp://entry/61</guid>
  </item>
    <item>
    <title>EC2 Apache,MySQL,phpをインストールする </title>
    <description>
    <![CDATA[Apache MySQL phpをインストール<br />
<br />
yum -y install httpd php mysql mysql-server php-mysql]]>
    </description>
    <category>AWS</category>
    <link>http://newbie.blog.shinobi.jp/aws/ec2%20apache-mysql-php%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%99%E3%82%8B%20</link>
    <pubDate>Thu, 30 Sep 2010 11:31:36 GMT</pubDate>
    <guid isPermaLink="false">newbie.blog.shinobi.jp://entry/60</guid>
  </item>
    <item>
    <title>EC2　設定</title>
    <description>
    <![CDATA[マシンの言語を日本語に変更<br />
vi /etc/sysconfig/i18n<br />
<br />
LANG=&quot;en_US.UTF-8&quot;をLANG=&quot;ja_JP.UTF-8&quot;<br />
<br />
タイムゾーンを日本に変更<br />
cp -i /usr/share/zoneinfo/Japan /etc/localtime<br />
<br />
タイムゾーン変えたので、ハマリそうなcrontabを再起動<br />
/etc/init.d/crond restart<br />
<br />
<br />]]>
    </description>
    <category>AWS</category>
    <link>http://newbie.blog.shinobi.jp/aws/ec2%E3%80%80%E8%A8%AD%E5%AE%9A</link>
    <pubDate>Tue, 28 Sep 2010 05:56:00 GMT</pubDate>
    <guid isPermaLink="false">newbie.blog.shinobi.jp://entry/59</guid>
  </item>
    <item>
    <title>EC2メモ</title>
    <description>
    <![CDATA[AmazonEC2の始め方が変わっているのでメモ。<br />
<br />
Instances立ち上げてrootになるまで。<br />
<br />
AWS Management Consoleの左したKey Pairsからキーに名前を付けて保存しておく。<br />
デフォルトでアマゾンがEC2に最適化しているLinuxが表示される。<br />
さっきのキーを選択してInstancesを１つ立ち上げる。<br />
立ち上がったInstancesを選択し、Instances ActionsからConnectを選択。<br />
<span>Connect to your instance using instance's public DNSに書かれているDNSをコピーしておく。<br />
WinならTeraTermなどのホストに貼り付け、ユーザ名はec2-user（前はrootだったみたい）にし、パスは無し。<br />
</span>RSA/DSA鍵を使うを選んで、さっき保存した鍵ファイルを指定。<br />
ログイン出来たら、sudo passwd rootでrootのパスワード作る。<br />
su<br />
<br />
<br />
<br />]]>
    </description>
    <category>AWS</category>
    <link>http://newbie.blog.shinobi.jp/aws/ec2%E3%83%A1%E3%83%A2</link>
    <pubDate>Tue, 28 Sep 2010 04:49:59 GMT</pubDate>
    <guid isPermaLink="false">newbie.blog.shinobi.jp://entry/58</guid>
  </item>
    <item>
    <title>Hello World</title>
    <description>
    <![CDATA[twitterのAPIで遊ぼうと思ったので、ついでに興味があったRubyで書く事にした。<br />
<br />
print(&quot;Hello World.\n&quot;)]]>
    </description>
    <category>Ruby</category>
    <link>http://newbie.blog.shinobi.jp/ruby/hello%20world</link>
    <pubDate>Mon, 31 May 2010 07:23:38 GMT</pubDate>
    <guid isPermaLink="false">newbie.blog.shinobi.jp://entry/57</guid>
  </item>
    <item>
    <title>電子証明書の取得方法まとめ</title>
    <description>
    <![CDATA[<br />
会社で電子証明書を取得する必要があったのでまとめ。<br />
<br />
まずはソフトを買っておく。安いのでいいのでＮＴＴデータのでいい。<br />
<a href="http://www.nttdata.co.jp/services/syoumei/syoumei_buy.html">http://www.nttdata.co.jp/services/syoumei/syoumei_buy.html</a><br />
５２５０円<br />
<br />
次に申請書を印刷して記載。<br />
<a href="http://www.moj.go.jp/ONLINE/ELECTRON/13-1-1.pdf">http://www.moj.go.jp/ONLINE/ELECTRON/13-1-1.pdf</a><br />
<br />
記載例<br />
<a href="http://www.moj.go.jp/ONLINE/ELECTRON/13-1-2.html">http://www.moj.go.jp/ONLINE/ELECTRON/13-1-2.html</a><br />
<br />
代表者が行かないのなら、委任状がいる。<br />
<a href="http://www.moj.go.jp/ONLINE/ELECTRON/13-1-5.html">http://www.moj.go.jp/ONLINE/ELECTRON/13-1-5.html</a><br />
<br />
<font face="ＭＳ ゴシック">手数料は３か月のときは２５００円、３か月を超えるときは３か月当たり１８００円を加算した額。<br />
１２か月の証明期間を受けるなら２５００円＋１８００＋１８００＋１８００＝７９００円になる。<br />
<br />
ソフトが届いたら、申請に必要なＣＤＲを作る。<br />
申請書とソフトで作ったＣＤＲと委任状と印鑑カードをもって法務局に行く。<br />
手数料分の登記印紙（法務局で売ってる）を買って申請書に貼る（収入印紙じゃない）<br />
<br />
電子認証局ってのが法務局に入っているので、そこに全部提出でＯＫ。<br />
</font><br />]]>
    </description>
    <category>会社</category>
    <link>http://newbie.blog.shinobi.jp/%E4%BC%9A%E7%A4%BE/%E9%9B%BB%E5%AD%90%E8%A8%BC%E6%98%8E%E6%9B%B8%E3%81%AE%E5%8F%96%E5%BE%97%E6%96%B9%E6%B3%95%E3%81%BE%E3%81%A8%E3%82%81</link>
    <pubDate>Mon, 25 Jan 2010 01:55:50 GMT</pubDate>
    <guid isPermaLink="false">newbie.blog.shinobi.jp://entry/56</guid>
  </item>
    <item>
    <title>viでのみ文字化け</title>
    <description>
    <![CDATA[catでは文字化けしていないのに、viで文字化けしていた。<br />
当環境は全てUTF-8で合わせてあるので、<br />
<br />
:set enc=UTF-8<br />
<br />
とする事で解消した。毎回打ち込むのが面倒なので、<br />
ユーザーのルートディレクトリで<br />
vi .vimrc<br />
として<br />
set enc=UTF-8<br />
を記述しておいた。]]>
    </description>
    <category>未選択</category>
    <link>http://newbie.blog.shinobi.jp/%E6%9C%AA%E9%81%B8%E6%8A%9E/vi%E3%81%A7%E3%81%AE%E3%81%BF%E6%96%87%E5%AD%97%E5%8C%96%E3%81%91</link>
    <pubDate>Thu, 27 Aug 2009 13:03:54 GMT</pubDate>
    <guid isPermaLink="false">newbie.blog.shinobi.jp://entry/55</guid>
  </item>
    <item>
    <title>WordPressの自動アップグレードのエラー</title>
    <description>
    <![CDATA[ディレクトリがないとかではなく、接続が出来ないとエラーの場合。<br />
<br />
パーミッションやら、PASVモードを無効にしてみたり、ホスト名をＩＰにしてみたり、何やっても駄目な時。<br />
サーバ内からのFTPアクセスが蹴られている。<br />
<br />
/etc/hosts.allow に自鯖のＩＰを記入　ついでにlocalhost用も<br />
<br />
vsftpd: 自鯖のＩＰ<br />
vsftpd: 127.0.0.1<br />
<br />
これでFTPが繋がりアップデート出来ました。]]>
    </description>
    <category>サーバ</category>
    <link>http://newbie.blog.shinobi.jp/%E3%82%B5%E3%83%BC%E3%83%90/wordpress%E3%81%AE%E8%87%AA%E5%8B%95%E3%82%A2%E3%83%83%E3%83%97%E3%82%B0%E3%83%AC%E3%83%BC%E3%83%89%E3%81%AE%E3%82%A8%E3%83%A9%E3%83%BC</link>
    <pubDate>Fri, 17 Jul 2009 06:53:53 GMT</pubDate>
    <guid isPermaLink="false">newbie.blog.shinobi.jp://entry/54</guid>
  </item>
    <item>
    <title>PHP5.2.5にアップグレードする RHEL4(RedHat Enterprise Linux ES v4)</title>
    <description>
    <![CDATA[PHP5.2.4からPHP5.2.5にローカルサーバをアップグレードする。<br />
<br />
<a href="http://newbie.blog.shinobi.jp/Entry/50/">前回のPHP5.2.3からPHP5.2.4にアップグレード</a>と同様にインストールしてみる。<br />
<br />
# cd /usr/local/src/<br />
<br />
# wget <a href="http://jp.php.net/get/php-5.2.4.tar.gz/from/a/mirror">http://jp.php.net/get/php-5.2.5.tar.bz2/from/this/mirror</a><br />
# ls -al<br />
php-5.2.5.tar.bz2<br />
<br />
# tar jxvf php-5.2.5.tar.bz2<br />
# cd php-5.2.5<br />
<br />
# ./configure --prefix=/usr/local --bindir=/usr/local/bin/ --with-apxs2=/usr/sbin/apxs --with-mysql=/usr --enable-mbstring --enable-mbregex --with-freetype-dir=/usr --with-png-dir=/usr --with-gd --enable-gd-native-ttf --with-ttf --with-gettext --with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-pspell --with-regex --with-zlib --with-layout=GNU --enable-bcmath --enable-exif --enable-ftp --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm --enable-discard-path --enable-wddx --without-oci8 --with-pear --with-kerberos=/usr/kerberos --with-ldap=shared --enable-bcmath --enable-shmop --enable-calendar --with-pdo-mysql --with-mcrypt<br />
<br />
+--------------------------------------------------------------------+<br />
| License:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br />
| This software is subject to the PHP License, available in this&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; |<br />
| distribution in the file LICENSE.&nbsp; By continuing this installation&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br />
| process, you are bound by the terms of this license agreement.&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br />
| If you do not agree with the terms of this license, you must abort&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br />
| the installation process at this point.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; |<br />
+--------------------------------------------------------------------+<br />
<br />
Thank you for using PHP.<br />
<br />
# make<br />
<br />
Build complete.<br />
(It is safe to ignore warnings about tempnam and tmpnam).<br />
<br />
アパッチを止める<br />
/etc/init.d/httpd stop<br />
インストール<br />
# make install<br />
アパッチ起動<br />
/etc/init.d/httpd start<br />
<br />
これでアップグレードは完了。<br />
<br />
# php -v<br />
<br />
5.2.5の情報に変わっていた。<br />
公開サーバにも--with-pgsql=/usrを追加しインストールした。<br />
<br />
PHPアップグレード履歴<br />
<a href="../../../../Entry/17/">PHP4.3.9からPHP5.1.5にアップグレード</a><br />
<a href="../../../../Entry/19/">PHP5.1.5からPHP5.2.0にアップグレード</a><br />
<a href="../../../../Entry/31/">PHP5.2.0からPHP5.2.1にアップグレード</a><br />
<a href="http://newbie.blog.shinobi.jp/Entry/46/">PHP5.2.1からPHP5.2.3にアップグレード</a><br />
<a href="http://newbie.blog.shinobi.jp/Entry/50/">PHP5.2.3からPHP5.2.4にアップグレード</a>]]>
    </description>
    <category>ローカルサーバ</category>
    <link>http://newbie.blog.shinobi.jp/%E3%83%AD%E3%83%BC%E3%82%AB%E3%83%AB%E3%82%B5%E3%83%BC%E3%83%90/php5.2.5%E3%81%AB%E3%82%A2%E3%83%83%E3%83%97%E3%82%B0%E3%83%AC%E3%83%BC%E3%83%89%E3%81%99%E3%82%8B%20rhel4-redhat%20enterprise%20linux%20es%20v4-</link>
    <pubDate>Wed, 16 Jan 2008 03:36:05 GMT</pubDate>
    <guid isPermaLink="false">newbie.blog.shinobi.jp://entry/53</guid>
  </item>
    <item>
    <title>openads2.4で広告がうまく表示されない場合</title>
    <description>
    <![CDATA[他は表示されjavascriptでうまく表示されないのなら下記が作用しているかも。<br />
<br />
FirefoxのプラグインでAdblockを入れてる。<br />
NortonのAd Blockerが動いている。]]>
    </description>
    <category>その他</category>
    <link>http://newbie.blog.shinobi.jp/%E3%81%9D%E3%81%AE%E4%BB%96/openads2.4%E3%81%A7%E5%BA%83%E5%91%8A%E3%81%8C%E3%81%86%E3%81%BE%E3%81%8F%E8%A1%A8%E7%A4%BA%E3%81%95%E3%82%8C%E3%81%AA%E3%81%84%E5%A0%B4%E5%90%88</link>
    <pubDate>Wed, 31 Oct 2007 06:41:25 GMT</pubDate>
    <guid isPermaLink="false">newbie.blog.shinobi.jp://entry/52</guid>
  </item>

    </channel>
</rss>