Tricks and Tips about Systems/Network

October 14, 2010

How do I enable apc php extension on Centos

Filed under: admins,Apache,General — Liju Mathew @ 5:58 am

There is 2 ways to install.

1. Download the apc source code from the pear library and install.
2. Using pear to install apc (easy way)

Ensure that pear is there, if not execute
#yum install php-pear
pear will be installed along with the php installation from the source.

#pecl install apc
echo “extension=apc.so” > /etc/php.ini

Verified it by,
#php -m | grep “apc” or you may choose phpinfo page to verify that
apc

Restart apache to make this working over the web
# service httpd restart

Advertisement

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.