<?xml version="1.0" encoding="UTF-8" ?>
<feed xml:lang="ja" xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:thr="http://purl.org/syndication/thread/1.0">
  <title type="text">鯖設定とプログラム</title>
  <subtitle type="html">メモ。</subtitle>
  <link rel="self" type="application/atom+xml" href="http://newbie.blog.shinobi.jp/atom"/>
  <link rel="alternate" type="text/html" href="http://newbie.blog.shinobi.jp/"/>
  <updated>2006-11-07T11:15:06+09:00</updated>
  <author><name>No Name Ninja</name></author>
  <generator uri="//www.ninja.co.jp/blog/" version="0.9">忍者ブログ</generator>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" />
  <entry>
    <id>newbie.blog.shinobi.jp://entry/61</id>
    <link rel="alternate" type="text/html" href="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-" />
    <published>2011-10-25T01:22:26+09:00</published> 
    <updated>2011-10-25T01:22:26+09:00</updated> 
    <category term="サーバ" label="サーバ" />
    <title>PHP5.3.8にアップグレードする RHEL4(RedHat Enterprise Linux ES v4)</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![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>]]> 
    </content>
    <author>
            <name>No Name Ninja</name>
        </author>
  </entry>
  <entry>
    <id>newbie.blog.shinobi.jp://entry/60</id>
    <link rel="alternate" type="text/html" href="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" />
    <published>2010-09-30T20:31:36+09:00</published> 
    <updated>2010-09-30T20:31:36+09:00</updated> 
    <category term="AWS" label="AWS" />
    <title>EC2 Apache,MySQL,phpをインストールする </title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[Apache MySQL phpをインストール<br />
<br />
yum -y install httpd php mysql mysql-server php-mysql]]> 
    </content>
    <author>
            <name>No Name Ninja</name>
        </author>
  </entry>
  <entry>
    <id>newbie.blog.shinobi.jp://entry/59</id>
    <link rel="alternate" type="text/html" href="http://newbie.blog.shinobi.jp/aws/ec2%E3%80%80%E8%A8%AD%E5%AE%9A" />
    <published>2010-09-28T14:56:00+09:00</published> 
    <updated>2010-09-28T14:56:00+09:00</updated> 
    <category term="AWS" label="AWS" />
    <title>EC2　設定</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![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 />]]> 
    </content>
    <author>
            <name>No Name Ninja</name>
        </author>
  </entry>
  <entry>
    <id>newbie.blog.shinobi.jp://entry/58</id>
    <link rel="alternate" type="text/html" href="http://newbie.blog.shinobi.jp/aws/ec2%E3%83%A1%E3%83%A2" />
    <published>2010-09-28T13:49:59+09:00</published> 
    <updated>2010-09-28T13:49:59+09:00</updated> 
    <category term="AWS" label="AWS" />
    <title>EC2メモ</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![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 />]]> 
    </content>
    <author>
            <name>No Name Ninja</name>
        </author>
  </entry>
  <entry>
    <id>newbie.blog.shinobi.jp://entry/57</id>
    <link rel="alternate" type="text/html" href="http://newbie.blog.shinobi.jp/ruby/hello%20world" />
    <published>2010-05-31T16:23:38+09:00</published> 
    <updated>2010-05-31T16:23:38+09:00</updated> 
    <category term="Ruby" label="Ruby" />
    <title>Hello World</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[twitterのAPIで遊ぼうと思ったので、ついでに興味があったRubyで書く事にした。<br />
<br />
print(&quot;Hello World.\n&quot;)]]> 
    </content>
    <author>
            <name>No Name Ninja</name>
        </author>
  </entry>
  <entry>
    <id>newbie.blog.shinobi.jp://entry/56</id>
    <link rel="alternate" type="text/html" href="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" />
    <published>2010-01-25T10:55:50+09:00</published> 
    <updated>2010-01-25T10:55:50+09:00</updated> 
    <category term="会社" label="会社" />
    <title>電子証明書の取得方法まとめ</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![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 />]]> 
    </content>
    <author>
            <name>No Name Ninja</name>
        </author>
  </entry>
  <entry>
    <id>newbie.blog.shinobi.jp://entry/55</id>
    <link rel="alternate" type="text/html" href="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" />
    <published>2009-08-27T22:03:54+09:00</published> 
    <updated>2009-08-27T22:03:54+09:00</updated> 
    <category term="未選択" label="未選択" />
    <title>viでのみ文字化け</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![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 />
を記述しておいた。]]> 
    </content>
    <author>
            <name>No Name Ninja</name>
        </author>
  </entry>
  <entry>
    <id>newbie.blog.shinobi.jp://entry/54</id>
    <link rel="alternate" type="text/html" href="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" />
    <published>2009-07-17T15:53:53+09:00</published> 
    <updated>2009-07-17T15:53:53+09:00</updated> 
    <category term="サーバ" label="サーバ" />
    <title>WordPressの自動アップグレードのエラー</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[ディレクトリがないとかではなく、接続が出来ないとエラーの場合。<br />
<br />
パーミッションやら、PASVモードを無効にしてみたり、ホスト名をＩＰにしてみたり、何やっても駄目な時。<br />
サーバ内からのFTPアクセスが蹴られている。<br />
<br />
/etc/hosts.allow に自鯖のＩＰを記入　ついでにlocalhost用も<br />
<br />
vsftpd: 自鯖のＩＰ<br />
vsftpd: 127.0.0.1<br />
<br />
これでFTPが繋がりアップデート出来ました。]]> 
    </content>
    <author>
            <name>No Name Ninja</name>
        </author>
  </entry>
  <entry>
    <id>newbie.blog.shinobi.jp://entry/53</id>
    <link rel="alternate" type="text/html" href="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-" />
    <published>2008-01-16T12:36:05+09:00</published> 
    <updated>2008-01-16T12:36:05+09:00</updated> 
    <category term="ローカルサーバ" label="ローカルサーバ" />
    <title>PHP5.2.5にアップグレードする RHEL4(RedHat Enterprise Linux ES v4)</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![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>]]> 
    </content>
    <author>
            <name>No Name Ninja</name>
        </author>
  </entry>
  <entry>
    <id>newbie.blog.shinobi.jp://entry/52</id>
    <link rel="alternate" type="text/html" href="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" />
    <published>2007-10-31T15:41:25+09:00</published> 
    <updated>2007-10-31T15:41:25+09:00</updated> 
    <category term="その他" label="その他" />
    <title>openads2.4で広告がうまく表示されない場合</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[他は表示されjavascriptでうまく表示されないのなら下記が作用しているかも。<br />
<br />
FirefoxのプラグインでAdblockを入れてる。<br />
NortonのAd Blockerが動いている。]]> 
    </content>
    <author>
            <name>No Name Ninja</name>
        </author>
  </entry>
</feed>