pearのmimeDecodeを使おうと思ったら・・・ | CentOS4@VPSサーバー管理日記

pearのmimeDecodeを使おうと思ったら・・・

空メール自動応答システムを作ろうと思いました。

phpのPearのmimeDecodeを利用しようと思い、


[root@localhost script]# pear install Mail_mime
HTTP error, got response: HTTP/1.1 404 Not Found
Didn't receive 200 OK from remote server. (HTTP/1.1 404 Not Found)


となってインストールできない!

http://sf51.blog42.fc2.com/blog-entry-1.html

に解決方法があったので参考にさせて頂きました。


# wget --proxy=off -O - -q http://pear.php.net/go-pear | php
としてパッケージを入れなおしました。


んが、


Loading zlib: ok
Downloading package: PEAR-stable......ok
Downloading package: Archive_Tar-stable....ok
Downloading package: Console_Getopt-stable....ok
Downloading package: Structures_Graph-stable....ok
Bootstrapping: PEAR...................(remote) ok
Bootstrapping: Archive_Tar............(remote) ok
Bootstrapping: Console_Getopt.........(remote) ok
Downloading package: MDB2.............ok
Extracting installer..................ok
PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 368640 bytes) in /usr/temp/gopelDhQuM/PEAR/Installer.php on line 425
Allowed memory size of 8388608 bytes exhausted (tried to allocate 0 bytes)


最後の最後でメモリが足らんと。。


/etc/php.iniのメモリをちょっと増やしてみました。

max_execution_time = 30 ; Maximum execution time of each script, in seconds
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)


を、


max_execution_time = 60 ; Maximum execution time of each script, in seconds
memory_limit = 16M ; Maximum amount of memory a script may consume (8MB)


に変更して再度

# wget --proxy=off -O - -q http://pear.php.net/go-pear | php
を実行してうまくいきました。


[root@localhost script]# pear install Mail_Mime
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
downloading Mail_Mime-1.5.2.tgz ...
Starting to download Mail_Mime-1.5.2.tgz (22,176 bytes)
........done: 22,176 bytes
downloading Mail_mimeDecode-1.5.0.tgz ...
Starting to download Mail_mimeDecode-1.5.0.tgz (9,281 bytes)
...done: 9,281 bytes
install ok: channel://pear.php.net/Mail_Mime-1.5.2
install ok: channel://pear.php.net/Mail_mimeDecode-1.5.0


mimeDecodeもうまく入りました。


VPSはこう言う制約があるのかとちょっと勉強になりました。


応援クリックお願いします!


BVLGARI(ブルガリ) B.ZERO1 携帯ストラップ 21700/Amber

BVLGARI(ブルガリ) B.
ZERO1 携帯ストラップ …

販売価格¥10,479

ブルガリのステイタスをいつも携帯に…。ブルガリと言えば老舗ブランドながら若い世代からの支持も厚く、いつかはそのアイテムを手に入れたいと願う人も多いのでは…?ストラップの根元で輝くプレートは、指輪などのジュエリーでもおなじみの「ビーゼロワン」。メタルの硬質な輝き…

拡大画像を見る
商品詳細ページへ カートページへ