2010-12-06

Devices of Near Future

I like this.

2010-08-16

Wordled Profile

This is a Wordle Visualiation of my profile based on my public profile on LinkedIn. Thanks Jonathan!


2010-07-09

Mac Looks Smarter with SSD

Seven months have passed since I changed my broken HDD, last December, to SSD on my Black Intel-based MacBook, the SSD was broken down again. SSD has done great jobs in terms of performance. Its speed of Reading and Writing was incredibly fast.

Today, my SSD is fixed and back to my Mac. He looks smiling with SSD in his brain.

2010-06-18

WordPress 3.0 “Thelonious” is out today

WordPress 3.0, the thirteenth major release of WordPress is now out.

Major new features in this release include a sexy new default theme called Twenty Ten. Theme developers have new APIs that allow them to easily implement custom backgrounds, headers, shortlinks, menus (no more file editing), post types, and taxonomies. (Twenty Ten theme shows all of that off.)

Developers and network admins will appreciate the long-awaited merge of MU and WordPress, creating the new multi-site functionality which makes it possible to run one blog or ten million from the same installation.

WordPress 3.0 "Thelonious"
(Japanese translation)

ServersMan@VPSでmemory limitエラーが出た際の設定のメモ

WordPressの設定中に、memory sizeのエラーがでました。BlueOnyxのデフォルトでは16Mになっており、これでは足りないとのこと。
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 233472 bytes) in /home/.sites/**/site*/web/blog/wp-admin/menu.php on line 214

設定方法は次のとおり。BlueOnyx上で、[サイトの管理] - [仮想サイト名] - [サービス] - [PHP]より、[Memory limit]をデフォルトの約2倍の30Mに増加させて、[保存]する。BlueOnyx上で設定を[保存]した場合、Apacheの再起動は必要ない模様です。

設定自体は、一般的には、/etc/php.ini上の「memory_limit」にて可能ですが、.htaccess上で「php_value memory_limit **M」とすることもできます。

2010-06-17

ServersMan@VPSでopen_basedirを無効にする方法のメモ

ServersMan@VPSでWordPressのPermalinksを設定しようとすると、以下のようなopen_basedirのWarningが出てしまいます。

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/.htaccess) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/home/.sites/28/site1/) in /home/.sites/28/site1/web/blog/wp-admin/options-permalink.php on line 141


Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/home/.sites/28/site1/) in /home/.sites/28/site1/web/blog/wp-admin/options-permalink.php on line 141


Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/.htaccess) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/home/.sites/28/site1/) in /home/.sites/28/site1/web/blog/wp-admin/options-permalink.php on line 141


Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/.htaccess) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/home/.sites/28/site1/) in /home/.sites/28/site1/web/blog/wp-admin/includes/misc.php on line 133


Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/home/.sites/28/site1/) in /home/.sites/28/site1/web/blog/wp-admin/includes/misc.php on line 133


Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/.htaccess) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/home/.sites/28/site1/) in /home/.sites/28/site1/web/blog/wp-admin/includes/misc.php on line 133


Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/web.config) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/home/.sites/28/site1/) in /home/.sites/28/site1/web/blog/wp-admin/includes/misc.php on line 158


Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/111859504c19f991a1ca2.tmp) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/home/.sites/28/site1/) in /home/.sites/28/site1/web/blog/wp-admin/includes/misc.php on line 574


Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/111859504c19f991a1ca2.tmp) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/home/.sites/28/site1/) in /home/.sites/28/site1/web/blog/wp-admin/includes/misc.php on line 577


Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/web.config) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/home/.sites/28/site1/) in /home/.sites/28/site1/web/blog/wp-admin/includes/misc.php on line 574


Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/web.config) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/home/.sites/28/site1/) in /home/.sites/28/site1/web/blog/wp-admin/includes/misc.php on line 577


open_basedirとは、PHPを実行できるディレクトリを指定したものに制限するための設定です。

phpinfo()で設定を確認してみると、以下のようにデフォルトで設定されています。
open_basedir /tmp/:/var/lib/php/session/:/home/.sites/28/site1/ /tmp/:/var/lib/php/session/

このWarningを無効にするには、</etc/httpd/conf/vhosts/site1>(仮想サイトsite1の設定)で定義されているopen_basedirを無効にします。

#php_admin_value open_basedir /tmp/:/var/lib/php/session/:/home/.sites/28/site1/
php_admin_value open_basedir none

apacheを再起動するのをお忘れなく。
/etc/init.d/httpd restart

なお、BlueOnyx上でも、open_basedirのLocal Value(仮想サイト特有の設定)を確認できます。

[サイトの管理] - [該当する仮想サイト名] - [サービス] - [PHP] - [Open basedir] 



2010-06-16

ServersMan@VPSでBlueOnyx使用時にWordPressのPermalinkを有効にする際のメモ

DTIのServersMan@VPS(エンジニアセット)を試しています。最近やっと開通。

このVPS上には、BlueOnyxというサーバ管理ツールがインストールされていますが、WordPressのインストール後のパーマリンクの設定についてメモしておきます。

蛇足ですが、OSはCentOSですが、BlueOnyxが動いているためウェブサイトのドキュメントルートが/var/www/htmlではなく、/home/sites/仮想サイト名/webにあったりして、慣れるまで少しわかりにくい。

パーマリンクの設定を変更し、.htaccessを手動で更新しましたが、更新後ブラウザで新しいパーマリンクにアクセスすると、エラーとなってアクセスできなくなってしまいます。

これは、BlueOnyx用の設定(/etc/httpd/conf.d/blueonyx.conf)で/home/.sites以下で有効なApacheの設定やAllowOverrideのディレクティブが定義されており、/home/sites/仮想サイト名/web以下での.htaccessがセキュリティ上の理由によりデフォルトでは禁止されています。

.htaccessを簡単に有効にするには、BlueOnyx上で、[サーバの管理] - [ネットワークサービス] - [ウェブ](ウェブの設定)でAllowOverrideのAllをチェック(有効に)します。
これで、WordPressのパーマリンク設定が有効になります。

参考
http://www.blueonyx.it/index.php?mact=News,cntnt01,detail,0&cntnt01articleid=34&cntnt01returnid=54