Skip to main content

CentOS 5 で APC と uploadprogress をインストールする

CentOS 5 に APCuploadprogress を導入したときのメモ。

root ユーザーで下記を順に実行。

# yum install php-pear
 
# yum install php-devel
 
# yum install httpd-devel
 
# yum install pcre-devel
 
# pecl install apc
 
# pecl install uploadprogress

/etc/php.ini に次の 2 行を追加。

extension=apc.so
extension=uploadprogress.so

httpd を(再)起動。

/etc/init.d/httpd start

以上で完了。

Drupal6 の status ページで Upload progress が Enable になった。

参考にさせていただいたページ:
http://frankleng.me/2009/08/25/installing-apc-on-centos-5/
http://douzo.seesaa.net/article/173563053.html

最初の資料には pcre-devel の言及がありませんでしが、自分の環境ではこれがないために apc のインストールで失敗。
後者の資料に従って pcre-devel をインストールして無事成功。
感謝です。

チューニングの詳細については下記:
http://www.php.net/manual/ja/apc.configuration.php