<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>www.hbirds.net &#187; Ubuntu Server PPC 9.10</title> <atom:link href="http://www.hbirds.net/category/linux/ubuntuserver/ubuntu-server-ppc-9-10/feed" rel="self" type="application/rss+xml" /><link>http://www.hbirds.net</link> <description>５０歳にして５０の手習いに挑戦。なんて無理！ だけど、いつも新しいことに興味を持って挑戦する心を忘れないようにしたい。　　そんなオヤジの挑戦の日々・・・・・・</description> <lastBuildDate>Wed, 01 Feb 2012 20:52:58 +0000</lastBuildDate> <language>ja</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>sudoのtimeout設定</title><link>http://www.hbirds.net/linux/ubuntuserver/ubuntu-server-ppc-9-10/sudo%e3%81%aetimeout%e8%a8%ad%e5%ae%9a/6789</link> <comments>http://www.hbirds.net/linux/ubuntuserver/ubuntu-server-ppc-9-10/sudo%e3%81%aetimeout%e8%a8%ad%e5%ae%9a/6789#comments</comments> <pubDate>Tue, 30 Mar 2010 23:28:43 +0000</pubDate> <dc:creator>hbirds</dc:creator> <category><![CDATA[Ubuntu Server PPC 9.10]]></category> <category><![CDATA[sudo]]></category> <category><![CDATA[timeout]]></category> <category><![CDATA[設定]]></category> <guid
isPermaLink="false">http://www.hbirds.net/?p=6789</guid> <description><![CDATA[Sudoで一度認証されたら次にパスワードを聞かれるのが頻繁だといちいちパスワードを入力するのが、面倒です。 設定ファイルを編集すれば、Sudoで認証されている時間を調整することが可能になります。 $ sudo nano /etc/sudoers で　sudoersファイルを編集し、以下のように追記します。]]></description> <content:encoded><![CDATA[<p>Sudoで一度認証されたら次にパスワードを聞かれるのが頻繁だといちいちパスワードを入力するのが、面倒です。<br
/> 設定ファイルを編集すれば、Sudoで認証されている時間を調整することが可能になります。</p><p>$ sudo nano /etc/sudoers で　sudoersファイルを編集し、以下のように追記します。</p><pre class="brush: xml; title: ; notranslate">Defaults    env_reset, timestamp_timeout=180</pre>]]></content:encoded> <wfw:commentRss>http://www.hbirds.net/linux/ubuntuserver/ubuntu-server-ppc-9-10/sudo%e3%81%aetimeout%e8%a8%ad%e5%ae%9a/6789/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>php5ダウングレード</title><link>http://www.hbirds.net/linux/ubuntuserver/ubuntu-server-ppc-9-10/php5%e3%83%80%e3%82%a6%e3%83%b3%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%89/6736</link> <comments>http://www.hbirds.net/linux/ubuntuserver/ubuntu-server-ppc-9-10/php5%e3%83%80%e3%82%a6%e3%83%b3%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%89/6736#comments</comments> <pubDate>Mon, 29 Mar 2010 20:45:29 +0000</pubDate> <dc:creator>hbirds</dc:creator> <category><![CDATA[Ubuntu Server PPC 9.10]]></category> <category><![CDATA[0000年]]></category> <category><![CDATA[php]]></category> <category><![CDATA[php-5.2.10]]></category> <category><![CDATA[phpmyadmin]]></category> <category><![CDATA[Ubuntu Server 9.10　PPC]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[ダウングレード]]></category> <category><![CDATA[バグ]]></category> <category><![CDATA[日付]]></category> <guid
isPermaLink="false">http://www.hbirds.net/?p=6736</guid> <description><![CDATA[先日、サーバーにインストールしていたphp-5.2.10のバグでWordPressの日付表示が0000年となったり、WP-phpMyAdminにログインできなかったりした問題に対処するため、現時点の最新バージョンのphp-5.3.2にアップグレードしましたが、日付表示は直り、WP-phpMyAdminにログインもできるようになったのですが、WP-phpMyAdminで新たなエラーが発生してしまいました。まだ、WP-phpMyAdminがphpの最新バージョンに対応していないためと思われます。 　よって、phpを5.2.10にバグのパッチを当てたうえで戻してみようと思います。 まず、index of /php5から、php-5.2.10をダウンロードして展開します。 $ cd /usr/local/lib $ sudo wget http://museum.php.net/php5/php-5.2.10.tar.gz $ sudo tar zxvf php-5.2.10.tar.gz $ sudo nano /usr/local/lib/php-5.3.2/php_date.c 以下を参考に、case &#8216;y&#8217;: ・・・となっている行を削除（または、コメントアウト）して、変わりに case &#8216;Y&#8217;: length = slprintf(buffer, 32, &#8220;%d&#8221;, (int) t->y); break; を挿入すれば良いだけです。 I put a patch in the &#8216;Reproduce code&#8217; section that &#8216;fixes&#8217; it.. Reproduce code: &#8212;&#8212;&#8212;&#8212;&#8212; &#8212; php-5.2.10/ext/date/php_date.c 2009-07-27 17:55:06.192343000 -0400 [...]]]></description> <content:encoded><![CDATA[<p>先日、サーバーにインストールしていた<a
href="http://bugs.php.net/bug.php?id=49079">php-5.2.10のバグ</a>でWordPressの日付表示が0000年となったり、WP-phpMyAdminにログインできなかったりした問題に対処するため、現時点の最新バージョンの<a
href="http://www.hbirds.net/linux/ubuntuserver/ubuntu-server-ppc-9-10/php-5-3-2/6697">php-5.3.2にアップグレード</a>しましたが、日付表示は直り、WP-phpMyAdminにログインもできるようになったのですが、WP-phpMyAdminで新たなエラーが発生してしまいました。まだ、WP-phpMyAdminがphpの最新バージョンに対応していないためと思われます。<br
/> 　よって、phpを5.2.10にバグのパッチを当てたうえで戻してみようと思います。</p><p>まず、<a
href="http://museum.php.net/php5/">index of /php5</a>から、php-5.2.10をダウンロードして展開します。<br
/> $ cd /usr/local/lib<br
/> $ sudo wget http://museum.php.net/php5/php-5.2.10.tar.gz<br
/> $ sudo tar zxvf php-5.2.10.tar.gz</p><p>$ sudo nano /usr/local/lib/php-5.3.2/php_date.c</p><p>以下を参考に、case &#8216;y&#8217;: ・・・となっている行を削除（または、コメントアウト）して、変わりに<br
/> case &#8216;Y&#8217;: length = slprintf(buffer, 32, &#8220;%d&#8221;, (int) t->y); break;<br
/> を挿入すれば良いだけです。</p><blockquote><p>I put a patch in the &#8216;Reproduce code&#8217; section that &#8216;fixes&#8217; it..</p><p>Reproduce code:<br
/> &#8212;&#8212;&#8212;&#8212;&#8212;<br
/> &#8212; php-5.2.10/ext/date/php_date.c      2009-07-27 17:55:06.192343000 -0400<br
/> +++ php-5.2.10.1/ext/date/php_date.c    2009-07-27 16:44:23.297327000 -0400<br
/> @@ -798,7 +798,8 @@<br
/> /* year */<br
/> case &#8216;L&#8217;: length = slprintf(buffer, 32, &#8220;%d&#8221;, timelib_is_leap((int) t->y)); break;<br
/> case &#8216;y&#8217;: length = slprintf(buffer, 32, &#8220;%02d&#8221;, (int) t->y % 100); break;<br
/> -                       case &#8216;Y&#8217;: length = slprintf(buffer, 32, &#8220;%s%04ld&#8221;, t->y < 0 ? "-" : "", llabs(t->y)); break;<br
/> +                       /* case &#8216;Y&#8217;: length = slprintf(buffer, 32, &#8220;%s%04ld&#8221;, t->y < 0 ? "-" : "", llabs(t->y)); break; */<br
/> +                       case &#8216;Y&#8217;: length = slprintf(buffer, 32, &#8220;%d&#8221;, (int) t->y); break;</p></blockquote><p>ここから先の手順は、<a
href="http://www.hbirds.net/linux/ubuntuserver/ubuntu-server-ppc-9-10/php-5-3-2/6697">php-5.3.2をインストール</a>したときのものと基本的には同じです。</p><p>$ cd ./php-5.3.2</p><pre class="brush: xml; title: ; notranslate">./configure --prefix=/usr/local/lib/php-5.2.10 --with-apxs2=/usr/bin/apxs2 --enable-pcntl --enable-mbstring --enable-mbregex --enable-zend-multibyte --with-mysql --with-mysqli --with-mcrypt --with-gd --with-openssl --with-zlib --with-pgsql --with-pear=/usr/local/lib/php-5.2.10</pre><p>$ sudo su<br
/> # make<br
/> # maketest<br
/> testの結果は、以下のとおり特に問題はなかったようです。<br
/> Thank you for helping to make PHP better.</p><p># make install<br
/> すると、以下のようにエラーになります。</p><pre class="brush: xml; title: ; notranslate">Installing PHP SAPI module:       apache2handler
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apr-1.0/build/libtool' libphp5.la /usr/lib/apache2/modules
/usr/share/apr-1.0/build/libtool --mode=install cp libphp5.la /usr/lib/apache2/modules/
libtool: install: cp .libs/libphp5.so /usr/lib/apache2/modules/libphp5.so
libtool: install: cp .libs/libphp5.lai /usr/lib/apache2/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /usr/local/lib/php-5.2.10/libs'
chmod 644 /usr/lib/apache2/modules/libphp5.so
[activating module `php5' in /etc/apache2/httpd.conf]
Installing PHP CLI binary:        /usr/local/lib/php-5.2.10/bin/
Installing PHP CLI man page:      /usr/local/lib/php-5.2.10/man/man1/
Installing build environment:     /usr/local/lib/php-5.2.10/lib/php/build/
Installing header files:          /usr/local/lib/php-5.2.10/include/php/
Installing helper programs:       /usr/local/lib/php-5.2.10/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/lib/php-5.2.10/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/lib/php-5.2.10/
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1391
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1396
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1400
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1391
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1396
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1400
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1391
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1396
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1400
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1391
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1396
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1400
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1391
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1396
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1400
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1391
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1396
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1400
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1391
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1396
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1400
[PEAR] Archive_Tar    - installed: 1.3.3
[PEAR] Console_Getopt - installed: 1.2.3
[PEAR] Structures_Graph- installed: 1.0.2
[PEAR] XML_Util       - installed: 1.2.1
[PEAR] PEAR           - installed: 1.8.0
Wrote PEAR system config file at: /usr/local/lib/php-5.2.10/etc/pear.conf
You may want to add: /usr/local/lib/php-5.2.10 to your php.ini include_path
Installing PDO headers:          /usr/local/lib/php-5.2.10/include/php/ext/pdo/
</pre><p>以下のようにhttpd.confを編集し、保存します。<br
/> # nano /etc/apache2/httpd.conf</p><pre class="brush: xml; title: ; notranslate">#dummy
LoadModule hoge hoge.so</pre><p>再度　# make install　を実行<br
/> 結果、Warningは消えました。</p><pre class="brush: xml; title: ; notranslate">root@UbuntuServer:/usr/local/lib/php-5.2.10# make install
Installing PHP SAPI module:       apache2handler
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apr-1.0/build/libtool' libphp5.la /usr/lib/apache2/modules
/usr/share/apr-1.0/build/libtool --mode=install cp libphp5.la /usr/lib/apache2/modules/
libtool: install: cp .libs/libphp5.so /usr/lib/apache2/modules/libphp5.so
libtool: install: cp .libs/libphp5.lai /usr/lib/apache2/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /usr/local/lib/php-5.2.10/libs'
chmod 644 /usr/lib/apache2/modules/libphp5.so
[activating module `php5' in /etc/apache2/httpd.conf]
Installing PHP CLI binary:        /usr/local/lib/php-5.2.10/bin/
Installing PHP CLI man page:      /usr/local/lib/php-5.2.10/man/man1/
Installing build environment:     /usr/local/lib/php-5.2.10/lib/php/build/
Installing header files:          /usr/local/lib/php-5.2.10/include/php/
Installing helper programs:       /usr/local/lib/php-5.2.10/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/lib/php-5.2.10/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/lib/php-5.2.10/
[PEAR] Archive_Tar    - already installed: 1.3.3
[PEAR] Console_Getopt - already installed: 1.2.3
[PEAR] Structures_Graph- already installed: 1.0.2
[PEAR] XML_Util       - already installed: 1.2.1
[PEAR] PEAR           - already installed: 1.8.0
Wrote PEAR system config file at: /usr/local/lib/php-5.2.10/etc/pear.conf
You may want to add: /usr/local/lib/php-5.2.10 to your php.ini include_path
Installing PDO headers:          /usr/local/lib/php-5.2.10/include/php/ext/pdo/
</pre><p>相変わらずPEARのconfigを直せとか言われてますが、後でやることにしてとりあえず放置。</p><p>次に、<br
/> # nano /etc/apache2/httpd.conf　<br
/> で以下のように、全行をコメントアウトし、保存します。</p><pre class="brush: xml; title: ; notranslate">#dummy
#LoadModule hoge hoge.so
#LoadModule php5_module        /usr/lib/apache2/modules/libphp5.so</pre><p>apache2を再起動します。<br
/> # /etc/init.d/apache2 restart</p><p>phpinfo()で確認します。<br
/> <a
href="http://www.hbirds.net/wordpress/wp-content/uploads/Screenshot-phpinfo-Mozilla-Firefox-2.png" rel="shadowbox[sbpost-6736];player=img;"><img
src="http://www.hbirds.net/wordpress/wp-content/uploads/Screenshot-phpinfo-Mozilla-Firefox-2-300x190.png" alt="" title="Screenshot-phpinfo() - Mozilla Firefox-2" width="300" height="190" class="alignright size-medium wp-image-6759" /></a>5.2.10に戻りました。<br
clear="all"></br></p><p><a
href="http://www.hbirds.net/wordpress/wp-content/uploads/13d2a82e3ea0ed85d97c0299657cc007.png" rel="shadowbox[sbpost-6736];player=img;"><img
src="http://www.hbirds.net/wordpress/wp-content/uploads/13d2a82e3ea0ed85d97c0299657cc007-300x190.png" alt="" title="Screenshot-WP-phpMyAdmin ‹ hubuntu.net — WordPress - Mozilla Firefox-2" width="300" height="190" class="alignright size-medium wp-image-6761" /></a>WordPressでWP-phpMyAdminもちゃんとログインできました。<br
clear="all"></br></p> ]]></content:encoded> <wfw:commentRss>http://www.hbirds.net/linux/ubuntuserver/ubuntu-server-ppc-9-10/php5%e3%83%80%e3%82%a6%e3%83%b3%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%89/6736/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>php-5.3.2</title><link>http://www.hbirds.net/linux/ubuntuserver/ubuntu-server-ppc-9-10/php-5-3-2/6697</link> <comments>http://www.hbirds.net/linux/ubuntuserver/ubuntu-server-ppc-9-10/php-5-3-2/6697#comments</comments> <pubDate>Sat, 27 Mar 2010 11:55:39 +0000</pubDate> <dc:creator>hbirds</dc:creator> <category><![CDATA[Ubuntu Server PPC 9.10]]></category> <category><![CDATA[php-5.3.2]]></category> <category><![CDATA[Ubuntu Server 9.10　PPC]]></category> <guid
isPermaLink="false">http://www.hbirds.net/?p=6697</guid> <description><![CDATA[php-5.2.10にバクがあるため、最新版の5.3.2にアップグレードすることにより、バグの解消を試みました。 PHP 5 のインストールを参考に、PHP のインストールと実行には libxml2 が、GD ライブラリを有効にするためには zlib と libpng が必要とのことなので、まずはこの三つをインストールします。 $ sudo aptitude install libxml2-dev　zlib1g-dev libpng-dev また、apxs2 が必要になるとのことですが、$ sudo find / -name apxs2としてもfindできなかったので、 $ sudo aptitude install apache2-prefork-dev として、apxs2　をインストールしました。 以下のプロセスは、Ubuntu 9.0.4 へ PHP5.3.0 動作環境を作るを参考にしました。というか、ほとんどそのまんまです。 phpソースのダウンロードと展開 以下のように、現時点の最新版をダウンロードしました。 $ cd /usr/local/lib $ sudo wget http://jp2.php.net/get/php-5.3.2.tar.gz/from/jp.php.net/mirror $ sudo tar zxvf php-5.3.2.tar.gz $ cd ./php-5.3.2 ソースを展開したら、次にconfigureを実行します。configureには非常に多くのオプションがあるので、詳細については./configure &#8211;helpを実行してください。 [...]]]></description> <content:encoded><![CDATA[<p>php-5.2.10に<a
href="http://bugs.php.net/bug.php?id=49079">バク</a>があるため、最新版の5.3.2にアップグレードすることにより、バグの解消を試みました。<br
/> <a
href="http://debianj.com/debian/php/install.html">PHP 5 のインストール</a>を参考に、PHP のインストールと実行には libxml2 が、GD ライブラリを有効にするためには zlib と libpng が必要とのことなので、まずはこの三つをインストールします。<br
/> $ sudo aptitude install libxml2-dev　zlib1g-dev libpng-dev</p><p>また、apxs2 が必要になるとのことですが、$ sudo find / -name apxs2としてもfindできなかったので、<br
/> $ sudo aptitude install apache2-prefork-dev<br
/> として、apxs2　をインストールしました。</p><p>以下のプロセスは、<a
href="http://d.hatena.ne.jp/tksthdnr/20090721/1248189454">Ubuntu 9.0.4 へ PHP5.3.0 動作環境を作る</a>を参考にしました。というか、ほとんどそのまんまです。</p><p><strong>phpソースのダウンロードと展開</strong><br
/> 以下のように、現時点の最新版をダウンロードしました。<br
/> $ cd /usr/local/lib<br
/> $ sudo wget http://jp2.php.net/get/php-5.3.2.tar.gz/from/jp.php.net/mirror<br
/> $ sudo tar zxvf php-5.3.2.tar.gz<br
/> $ cd ./php-5.3.2</p><blockquote><p>ソースを展開したら、次にconfigureを実行します。configureには非常に多くのオプションがあるので、詳細については./configure &#8211;helpを実行してください。<br
/> オプションとして&#8211;with-apxs2を指定してApacheに組み込むようにします。もしエラーが発生した場合はapxsが存在しない可能性があります。apxsはhttpd-develのパッケージをインストールすれば同時にインストールされます。apxsが存在するのにエラーとなっている場合は直接パスを &#8211;with-apxs2=/usr/sbin のように指定します。<br
/> &#8211;enable-mbstring &#8211;enable-zend-multibyteは日本語環境を使用するためのオプションです。&#8211;with-pgsql、&#8211;with-mysqlはその名の通り、PostgreSQLとMySQLを使用するためのオプションです。こちらはパスを指定することもできるので、ソースからインストールしていて、パスを指定しなければならない場合には、きちんと指定しましょう。</p></blockquote><p>自分の場合は、以下でconfigureしました。</p><pre class="brush: xml; title: ; notranslate">./configure --prefix=/usr/local/lib/php-5.3.2 --with-apxs2=/usr/bin/apxs2 --enable-pcntl --enable-mbstring --enable-mbregex --enable-zend-multibyte --with-mysql --with-mysqli --with-mcrypt --with-gd --with-openssl --with-zlib --with-pgsql --with-pear=/usr/local/lib/php-5.3.2
</pre><p>すると、<br
/> configure: error: mcrypt.h not found. Please reinstall libmcrypt.<br
/> とエラーがでてしまったので、<br
/> $ sudo aptitude install libmcrypt4 libmcrypt-dev<br
/> として、再度、<br
/> $ sudo ./configure &#8211;pre&#8230;..を試みると、<br
/> Thank you for using PHP.<br
/> となりました。</p><blockquote><p>configureが終了したら、あとはmakeを実行します。実行しているマシンパワーによってはかなり時間がかかることもあります。makeまではrootで行う必要はありませんが、make installはrootで実行します。</p></blockquote><p>$ sudo su<br
/> # make<br
/> とすると、</p><pre class="brush: xml; title: ; notranslate">Generating phar.php
Generating phar.phar
PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.
clicommand.inc
invertedregexiterator.inc
directorygraphiterator.inc
directorytreeiterator.inc
pharcommand.inc
phar.inc
Build complete.
Don't forget to run 'make test'.
</pre><p>と、maketest をしなさいと言われたので、<br
/> # maketest<br
/> を実行してみました。<br
/> 結果は、以下のとおりでした。</p><pre class="brush: xml; title: ; notranslate">=====================================================================
EXPECTED FAILED TEST SUMMARY
---------------------------------------------------------------------
output buffering - fatalism [tests/output/ob_011.phpt]
Inconsistencies when accessing protected members [Zend/tests/access_modifiers_008.phpt]
Inconsistencies when accessing protected members - 2 [Zend/tests/access_modifiers_009.phpt]
Bug #48770 (call_user_func_array() fails to call parent from inheriting class) [Zend/tests/bug48770.phpt]
Bug #48770 (call_user_func_array() fails to call parent from inheriting class) [Zend/tests/bug48770_2.phpt]
Bug #48770 (call_user_func_array() fails to call parent from inheriting class) [Zend/tests/bug48770_3.phpt]
SimpleXML: array casting bug [ext/simplexml/tests/034.phpt]
=====================================================================
=====================================================================
WARNED TEST SUMMARY
---------------------------------------------------------------------
via [ext/pdo_sqlite/tests/common.phpt]
	SQLite PDO Common: Bug #34630 (inserting streams as LOBs) [ext/pdo_sqlite/tests/bug_34630.phpt] (warn: XFAIL section but test passes)
via [ext/sqlite/tests/pdo/common.phpt]
	SQLite2 PDO Common: Bug #34630 (inserting streams as LOBs) [ext/sqlite/tests/pdo/bug_34630.phpt] (warn: XFAIL section but test passes)
=====================================================================
</pre><p># make install<br
/> すると、以下のようにエラーになります。</p><pre class="brush: xml; title: ; notranslate">Installing PHP SAPI module:       apache2handler
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apr-1.0/build/libtool' libphp5.la /usr/lib/apache2/modules
/usr/share/apr-1.0/build/libtool --mode=install cp libphp5.la /usr/lib/apache2/modules/
libtool: install: cp .libs/libphp5.so /usr/lib/apache2/modules/libphp5.so
libtool: install: cp .libs/libphp5.lai /usr/lib/apache2/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /usr/local/lib/php-5.3.2/libs'
chmod 644 /usr/lib/apache2/modules/libphp5.so
apxs:Error: Activation failed for custom /etc/apache2/httpd.conf file..
apxs:Error: At least one `LoadModule' directive already has to exist..
make: *** [install-sapi] エラー 1
</pre><p>以下のようにhttpd.confを編集し、保存します。<br
/> # nano /etc/apache2/httpd.conf</p><pre class="brush: xml; title: ; notranslate">#dummy
LoadModule hoge hoge.so</pre><p>再度　# make install　を実行</p><pre class="brush: xml; title: ; notranslate">Installing PHP SAPI module:       apache2handler
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apr-1.0/build/libtool' libphp5.la /usr/lib/apache2/modules
/usr/share/apr-1.0/build/libtool --mode=install cp libphp5.la /usr/lib/apache2/modules/
libtool: install: cp .libs/libphp5.so /usr/lib/apache2/modules/libphp5.so
libtool: install: cp .libs/libphp5.lai /usr/lib/apache2/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /usr/local/lib/php-5.3.2/libs'
chmod 644 /usr/lib/apache2/modules/libphp5.so
[activating module `php5' in /etc/apache2/httpd.conf]
Installing PHP CLI binary:        /usr/local/lib/php-5.3.2/bin/
Installing PHP CLI man page:      /usr/local/lib/php-5.3.2/man/man1/
Installing build environment:     /usr/local/lib/php-5.3.2/lib/php/build/
Installing header files:          /usr/local/lib/php-5.3.2/include/php/
Installing helper programs:       /usr/local/lib/php-5.3.2/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/lib/php-5.3.2/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/lib/php-5.3.2/
[PEAR] Archive_Tar    - installed: 1.3.3
[PEAR] Console_Getopt - installed: 1.2.3
[PEAR] Structures_Graph- installed: 1.0.2
[PEAR] XML_Util       - installed: 1.2.1
[PEAR] PEAR           - installed: 1.9.0
Wrote PEAR system config file at: /usr/local/lib/php-5.3.2/etc/pear.conf
You may want to add: /usr/local/lib/php-5.3.2 to your php.ini include_path
/usr/local/lib/php-5.3.2/build/shtool install -c ext/phar/phar.phar /usr/local/lib/php-5.3.2/bin
ln -s -f /usr/local/lib/php-5.3.2/bin/phar.phar /usr/local/lib/php-5.3.2/bin/phar
Installing PDO headers:          /usr/local/lib/php-5.3.2/include/php/ext/pdo/
</pre><p>次に、<br
/> # nano /etc/apache2/httpd.conf　<br
/> で以下のように、全行をコメントアウトし、保存します。</p><pre class="brush: xml; title: ; notranslate">#dummy
#LoadModule hoge hoge.so
#LoadModule php5_module        /usr/lib/apache2/modules/libphp5.so</pre><p>apache2を再起動します。<br
/> # /etc/init.d/apache2 restart</p><p>phpinfo() で確認すると、<br
/> <a
href="http://www.hbirds.net/wordpress/wp-content/uploads/Screenshot-phpinfo-Mozilla-Firefox.png" rel="shadowbox[sbpost-6697];player=img;"><img
src="http://www.hbirds.net/wordpress/wp-content/uploads/Screenshot-phpinfo-Mozilla-Firefox-300x190.png" alt="" title="Screenshot-phpinfo() - Mozilla Firefox" width="300" height="190" class="alignright size-medium wp-image-6716" /></a>PHP Version 5.3.2 となりました。<br
clear="all"></br></p> ]]></content:encoded> <wfw:commentRss>http://www.hbirds.net/linux/ubuntuserver/ubuntu-server-ppc-9-10/php-5-3-2/6697/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
