R-Ts NetWorks

Server the Best

How to install APC for php in linux server


How to install APC for php in linux server

pecl install php
 

You can use the below steps to install it manually.

wget http://pecl.php.net/get/APC
tar -zxf APC-3.1.9.tgz
cd APC-3.1.9
whereis php-config
./configure –enable-apc –enable-apc-mmap –with-apxs–with-php-config=/usr/bin/php-config
make
make install
restart the apche
/etc/init.d/httpd restart
 
 
If you are getting below error message :
/root/tmp/pear/APC/apc.c:454: error: ‘apc_regex’ has no member named ‘preg’
then you have to intall php-devel on server.
you can check the php-devel packages using the below command.
yum list php-devel
Once it will show the packages then you can install it using the below command.
yum install php-devel

 

Advertisements

December 20, 2011 - Posted by | Installation, PHP |

No comments yet.

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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: