Fastestmirror make my installation failure.

thunn

Verified User
Joined
Mar 13, 2012
Messages
167
Hello Supporters,
I'm going to install APC to cache PHP, when I install I get the following error:

Code:
[root@ns ~]# yum install php-pecl-apc
Loaded plugins: fastestmirror
Determining fastest mirrors
 * base: mirrors.digipower.vn
 * extras: mirrors.digipower.vn
 * updates: mirrors.digipower.vn
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package php-pecl-apc available.
Nothing to do

Please help. Is there any way that I can ignore this fastest mirror?

Thank you very much.
 
I suppose that php-* is just in ignore list form yum for dont break directadmin installation.

I dont see any relation with faster mirror, you need to install from source, not from yum.

Regards
 
Hello,

Install APC from sources or with pecl then. Both variants are possible without installing any php-* rpm with yum.

Hello Supporters,
I'm going to install APC to cache PHP, when I install I get the following error:
 
Yes, thanks for both. I have success install it as follow:

1) To install it with the default CLI version of php, use the following:
cd /usr/local/directadmin/custombuild
wget http://pecl.php.net/get/APC-3.1.9.tgz
tar xvzf APC-3.1.9.tgz
cd APC-3.1.9
/usr/local/bin/phpize
./configure --with-php-config=/usr/local/bin/php-config
make
make install
2) Then, we needed to edit the php.ini (/usr/local/lib/php.ini) to add the code:
extension=apc.so
apc.enabled=1
apc.shm_size=128M
apc.ttl=7200
apc.user_ttl=7200
apc.enable_cli=1
3) as well as change the php.ini line from:
extension_dir = "./"
to be:
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613/"

4) Remove any related to ZendOptimizer to avoid conflict.

Btw, I'm a bit curious about eAccelerator and APC, which one is better in performance?
I only prefer using APC because it's a package from php.net, not sure this is faster than eAccelerator or not.
 
Back
Top