コアサーバーに自分専用の PEAR をインストールする

Blog.okuryu

Prev | コアサーバーに自分専用の PEAR をインストールする | Next

Tags: hosting pear php | Date: 2007-08-06T01:49:39+09:00 | Comments: 3 | Trackbacks: 0

コアサーバー がかなりよさげなスペックなので、早速登録してみました。まだ全然いじってないんですが、とりあえず PEAR 環境のチェック。共有環境のため案の定、自由にパッケージをインストールはできないみたいなので、自分のユーザーディレクトリに PEAR のローカルコピーをインストールしてみました。

作業は PEAR の公式マニュアルにある「 PEAR :: Manual :: 共有ホストでの PEAR のローカルコピーのインストール 」を参考に進めました。

SSH でサーバーにログインして次のコマンドを打ちます。

$ pear config-create /virtual/okuryu/pear .pearrc

ホームディレクトリに .pearrc というファイルができます。あと .bashrc を編集して ~/pear にパスを通しておきます。最後に次のコマンドを打ちます。

$ pear install -o PEAR

これで環境は終わり。~/pear/ の下にいろいろできているはず。実際に PHP からパッケージを使う場合は include_path をいじらないとだめなので、次のような感じにしておくといいみたいです。

<?php

ini_set('include_path', '/virtual/okuryu/pear/php' . PATH_SEPARATOR . ini_get('include_path'));

?>

共有環境の PEAR には Services_Yahoo とか入っていないので、そのあたりのパッケージをインストールしてちゃんと動くか確認できれば大丈夫だと思います。

トラックバック

このエントリーのトラックバックURL:
http://www.okuryu.com/mt/mt-tb.cgi/238

コメント

okuryu Author Profile Page | 2007-08-11T18:06:11+09:00

コメントテスト。

cockles69 | 2008-04-07T03:38:08+09:00

I like everything positive. I’m on this website since the first day of its existence and I have never seen anything negative on it. This website is made by people, who think positive and who have many things to tell others. I love this website, I always get positive emotions from it and I can stay here the whole days and nights!

sirbackup | 2008-04-09T19:25:52+09:00

This is first time in my life when I don’t know what to say. After reading all comments I’m shocked. What has happened with our society, with our young generation? They are commenting terrible information, their lexis sounds terrible. Is that true, that only words they know is “cool”, “cute” and cussing words? What are they thinking of? It’s better not to think about it, it’s too sad

コメントを投稿

TypeKey を利用してコメントすることができますが、TypeKey ID をお持ちでない方もそのままコメントすることができます。






画像の中に見える文字を入力してください。


このサイトで公開しているものは クリエイティブ・コモンズ 帰属 - 同一条件許諾 2.5 の下でライセンスされています。