<?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>hbirds.net</title>
	<atom:link href="http://www.hbirds.net/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hbirds.net</link>
	<description>５０歳にして５０の手習いに挑戦。なんて無理！ だけど、いつも新しいことに興味を持って挑戦する心を忘れないようにしたい。 そんなオヤジの挑戦の日々・・・・・・</description>
	<lastBuildDate>Thu, 11 Mar 2010 05:05:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PhpMyAdmin</title>
		<link>http://www.hbirds.net/linux/ubuntuserver/ubuntu-server-ppc-9-10/phpmyadmin/6215</link>
		<comments>http://www.hbirds.net/linux/ubuntuserver/ubuntu-server-ppc-9-10/phpmyadmin/6215#comments</comments>
		<pubDate>Tue, 09 Mar 2010 20:44:06 +0000</pubDate>
		<dc:creator>hbirds</dc:creator>
				<category><![CDATA[Ubuntu Server PPC 9.10]]></category>
		<category><![CDATA[http認証]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[クッキー]]></category>

		<guid isPermaLink="false">http://www.hbirds.net/?p=6215</guid>
		<description><![CDATA[phpmyadmin
このサイトどおりに設定したが、ログイン画面で正しいユーザー名とパスワードを入力しても、ログイン画面にリダイレクトされて戻ってしまい先に進めない状況。
認証に失敗していると思われます。
このサイトを参 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>phpmyadmin</strong><br />
<a href="http://lashlushrashrush.cocolog-nifty.com/blog/2009/05/ubuntu-phpmyadm.html">このサイト</a>どおりに設定したが、ログイン画面で正しいユーザー名とパスワードを入力しても、ログイン画面にリダイレクトされて戻ってしまい先に進めない状況。<br />
認証に失敗していると思われます。<br />
<a href="ttp://dalp.net63.net/index.php?option=com_content&#038;view=article&#038;id=5:how-to-install-phpmyadmin-on-ubuntu-server-804&#038;catid=4:ubuntu&#038;Itemid=3">このサイト</a>を参考に次のコマンドにより、/var/www/phpmyadmin にシンボリックリンクを張ってみました。</p>
<pre class="brush: xml;">$ sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin</pre>
<p>パーミッションの問題である可能性があるので、</p>
<pre class="brush: xml;">$ sudo chmod 755 /var/www/phpmyadmin/config.inc.php
$ sudo chown -R www-data:www-data /var/www/phpmyadmin</pre>
<p>まだ、うまくいきません。</p>
<p>やり直してみました。</p>
<pre class="brush: xml;">$ cd /var/www
$ sudo wget http://prdownloads.sourceforge.net/phpmyadmin/phpMyAdmin-3.2.5-all-languages.tar.gz
$ sudo tar -xvzf phpMyAdmin-3.2.5-all-languages.tar.gz
$ sudo mv phpMyAdmin-3.2.5-all-languages phpmyadmin

$ sudo apt-get install libstring-mkpasswd-perl
$ mkpasswd.pl -l 46

$ cd ./phpmyadmin
$ sudo cp config.sample.inc.php config.inc.php</pre>
<p>$ sudo nano /var/www/phpmyadmin/config.inc.php　により、config.inc.php　を編集</p>
<pre class="brush: xml;">$cfg['blowfish_secret'] = '****************'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */←mkpasswd.pl -l 46をコピー＆ペースト
$cfg['Servers'][$i]['auth_type'] = 'HTTP';←'cookie'から変更</pre>
<p>＊クッキー認証がうまく行かないため、http認証にしました。<br />
phpmyadminの認証方式については、<a href="http://safe-linux.homeip.net/web/linux-phpMyAdmin-03.html#http">このサイト</a>が詳しいです。</p>
<p>ウェブブラウザから http://サーバーのIPアドレス/phpmyadmin/　としてアクセスすると、<br />
<a href="http://www.hbirds.net/wordpress/wp-content/uploads/84199284e624565b640d8356d87613dc.png" rel="shadowbox[post-6215];player=img;"><img src="http://www.hbirds.net/wordpress/wp-content/uploads/84199284e624565b640d8356d87613dc-300x74.png" alt="" title="Screenshot-ユーザ名とパスワードを入力してください" width="300" height="74" class="alignright size-medium wp-image-6237" /></a>右のようなログイン画面が現れます。<br clear="all"></br><br />
<a href="http://www.hbirds.net/wordpress/wp-content/uploads/Screenshot-192.168.0.4-localhost-phpMyAdmin-3.2.5-Mozilla-Firefox.png" rel="shadowbox[post-6215];player=img;"><img src="http://www.hbirds.net/wordpress/wp-content/uploads/Screenshot-192.168.0.4-localhost-phpMyAdmin-3.2.5-Mozilla-Firefox-300x189.png" alt="" title="Screenshot-192.168.0.4 - localhost | phpMyAdmin 3.2.5 - Mozilla Firefox" width="300" height="189" class="alignright size-medium wp-image-6238" /></a>ユーザー名とパスワードを入れると右のように、phpmyadminが起動します。<br clear="all"></br></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hbirds.net/linux/ubuntuserver/ubuntu-server-ppc-9-10/phpmyadmin/6215/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpinfo</title>
		<link>http://www.hbirds.net/linux/ubuntuserver/ubuntu-server-ppc-9-10/phpinfo/6217</link>
		<comments>http://www.hbirds.net/linux/ubuntuserver/ubuntu-server-ppc-9-10/phpinfo/6217#comments</comments>
		<pubDate>Tue, 09 Mar 2010 11:00:23 +0000</pubDate>
		<dc:creator>hbirds</dc:creator>
				<category><![CDATA[Ubuntu Server PPC 9.10]]></category>
		<category><![CDATA[phpinfo]]></category>

		<guid isPermaLink="false">http://www.hbirds.net/?p=6217</guid>
		<description><![CDATA[phpinfo.phpの作成
/var/www/phpinfo.php
というファイルを次の内容で作ります。ファイルを作るときはroot権限が必要になります。
$ sudo nano /var/www/phpinfo.p [...]]]></description>
			<content:encoded><![CDATA[<p><strong>phpinfo.phpの作成</strong><br />
/var/www/phpinfo.php<br />
というファイルを次の内容で作ります。ファイルを作るときはroot権限が必要になります。<br />
$ sudo nano /var/www/phpinfo.php とし、以下の内容を保存します。</p>
<pre class="brush: xml;">&lt;?
phpinfo();
?&gt;</pre>
<p>これだけでブラウザにより、http://サーバーのIPアドレス/phpinfo.phpにアクセスするとPHPその他のコンフィグが見られるようになります。<br />
自分の場合は、ブラウザにhttp://hbirds.homelinux.com/phpinfo.php　またはhttp://192.168.0.4/phpinfo.phpと入力すると、サーバーのPHPの設定内容が確認できます。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hbirds.net/linux/ubuntuserver/ubuntu-server-ppc-9-10/phpinfo/6217/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>perl:locale warning</title>
		<link>http://www.hbirds.net/linux/ubuntuserver/ubuntu-server-ppc-9-10/perllocale-warning/6172</link>
		<comments>http://www.hbirds.net/linux/ubuntuserver/ubuntu-server-ppc-9-10/perllocale-warning/6172#comments</comments>
		<pubDate>Mon, 08 Mar 2010 14:00:29 +0000</pubDate>
		<dc:creator>hbirds</dc:creator>
				<category><![CDATA[Ubuntu Server PPC 9.10]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[USB Ubuntu 9.10]]></category>
		<category><![CDATA[warning;locale、ロケール]]></category>

		<guid isPermaLink="false">http://www.hbirds.net/?p=6172</guid>
		<description><![CDATA[Ubuntu Server9.10でアプリのインストール時に以下のWarningが頻発しており、うっとおしいので対策してみます。
Warningの内容は、以下のとおりperlからロケールの設定がおかしいというご指摘です。 [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu Server9.10でアプリのインストール時に以下のWarningが頻発しており、うっとおしいので対策してみます。<br />
Warningの内容は、以下のとおりperlからロケールの設定がおかしいというご指摘です。</p>
<blockquote><p>perl: warning: Setting locale failed.<br />
perl: warning: Please check that your locale settings:<br />
LANGUAGE = (unset),<br />
LC_ALL = (unset),<br />
LANG = &#8220;ja_JP.UTF-8&#8243;<br />
are supported and installed on your system.<br />
perl: warning: Falling back to the standard locale (&#8220;C&#8221;).</p></blockquote>
<blockquote><p>ロケールとは、ソフトウェアに内蔵される、言語や国・地域ごとに異なる単位、記号、日付、通貨などの表記規則の集合。または単に、利用する言語や国・地域の指定。多くのソフトウェアやプログラミング言語は、使用する言語とともにロケールを設定し、ロケールで定められた方式に基づいてデータの表記や処理を行なう。</p></blockquote>
<p>簡単に言うと利用言語の設定ができていないということ。</p>
<p>自分のロケール設定は、以下で確認できます。<br />
$ locale</p>
<p>Warning対策は、以下のようにすればいいらしい。</p>
<pre class="brush: xml;">$ sudo apt-get install language-pack-ja
$ sudo dpkg-reconfigure locales</pre>
<p>実行してみた結果です。</p>
<pre class="brush: xml;">hbirds@ubuntu:~$ sudo apt-get install language-pack-ja
[sudo] password for hbirds:
Reading package lists... Done
Building dependency tree
Reading state information... Done
language-pack-ja is already the newest version.
The following packages were automatically installed and are no longer required:
  libmcrypt4 libjs-mootools php5-mcrypt dbconfig-common
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
hbirds@ubuntu:~$ sudo dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = &quot;ja.UTF-8&quot;
    are supported and installed on your system.
perl: warning: Falling back to the standard locale (&quot;C&quot;).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales...
  en_AG.UTF-8... done
  en_AU.UTF-8... done
  en_BW.UTF-8... done
  en_CA.UTF-8... done
  en_DK.UTF-8... done
  en_GB.UTF-8... done
  en_HK.UTF-8... done
  en_IE.UTF-8... done
  en_IN.UTF-8... done
  en_NG.UTF-8... done
  en_NZ.UTF-8... done
  en_PH.UTF-8... done
  en_SG.UTF-8... done
  en_US.UTF-8... done
  en_ZA.UTF-8... done
  en_ZW.UTF-8... done
  ja_JP.UTF-8... up-to-date
Generation complete.</pre>
<p>$ loacle により、確認してみました。</p>
<pre class="brush: xml;">hbirds@ubuntu:~$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=ja.UTF-8
LC_CTYPE=&quot;ja.UTF-8&quot;
LC_NUMERIC=&quot;ja.UTF-8&quot;
LC_TIME=&quot;ja.UTF-8&quot;
LC_COLLATE=&quot;ja.UTF-8&quot;
LC_MONETARY=&quot;ja.UTF-8&quot;
LC_MESSAGES=&quot;ja.UTF-8&quot;
LC_PAPER=&quot;ja.UTF-8&quot;
LC_NAME=&quot;ja.UTF-8&quot;
LC_ADDRESS=&quot;ja.UTF-8&quot;
LC_TELEPHONE=&quot;ja.UTF-8&quot;
LC_MEASUREMENT=&quot;ja.UTF-8&quot;
LC_IDENTIFICATION=&quot;ja.UTF-8&quot;
LC_ALL=　　</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.hbirds.net/linux/ubuntuserver/ubuntu-server-ppc-9-10/perllocale-warning/6172/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
