●pear がインストールされているか確認
[root@www ~]# yum list installed | grep php-pear●なければ pear をインストール
[root@www ~]# yum info php-pear [root@www ~]# yum -y install php-pear●pear バージョン確認
[toshi@www ~]$ pear version PEAR Version: 1.4.9 PHP Version: 5.1.6 Zend Engine Version: 2.1.0 Running on: Linux www.remix.asia 2.6.18-308.4.1.el5 #1 SMP Tue Apr 17 17:08:00 EDT 2012 x86_64 [root@www ~]# pear list Installed packages, channel pear.php.net: ========================================= Package Version State Archive_Tar 1.3.1 stable Console_Getopt 1.2 stable DB 1.7.14 stable PEAR 1.4.9 stable Structures_Graph 1.0.4 stable XML_RPC 1.5.0 stable XML_Util 1.2.1 stable●pear バージョンが低ければアップグレード
[root@www ~]# pear list-upgrades [root@www ~]# pear upgrade-all [root@www ~]# pear upgrade --force Archive_Tar [root@www ~]# pear upgrade --force Console_Getopt [root@www ~]# pear upgrade --force PEAR●ethna インストール設定
[root@www ~]# pear channel-discover pear.ethna.jp Adding Channel "pear.ethna.jp" succeeded Discovery of channel "pear.ethna.jp" succeeded●ethna インストール
[root@www ~]# pear install -a ethna/ethna WARNING: "pear/DB" is deprecated in favor of "pear/MDB2" downloading Ethna-2.5.0.tgz ... Starting to download Ethna-2.5.0.tgz (241,455 bytes) ..................................................done: 241,455 bytes downloading DB-1.7.14.tgz ... Starting to download DB-1.7.14.tgz (133,103 bytes) ...done: 133,103 bytes downloading Smarty-2.6.26.tgz ... Starting to download Smarty-2.6.26.tgz (67,946 bytes) ...done: 67,946 bytes downloading simpletest-1.1.0.tgz ... Starting to download simpletest-1.1.0.tgz (289,405 bytes) ...done: 289,405 bytes install ok: channel://pear.ethna.jp/Ethna-2.5.0 install ok: channel://pear.php.net/DB-1.7.14 install ok: channel://pear.ethna.jp/Smarty-2.6.26 install ok: channel://pear.ethna.jp/simpletest-1.1.0
●ethna コマンド確認
http://localhost/test/www/
http://IPアドレス/test/www/
http://www.mydomain/test/www/
(一般にアプリケーションはドキュメントルートには置かないので)確認したら削除することをお忘れなく。
[root@www ~]# ethna -v●試しに test プロジェクトを作る
[root@www ~]# cd /var/www/html [root@www html]# ethna add-project test●手元のブラウザで php の情報ページを確認。
http://localhost/test/www/
http://IPアドレス/test/www/
http://www.mydomain/test/www/
(一般にアプリケーションはドキュメントルートには置かないので)確認したら削除することをお忘れなく。