Oct 18, 2017, 02:43 PM

News:

Kalyan @ IT Acumens enjoy running his Cinema Portal : CineBuzz - Latest Movie Updates


Methods to install APC (PHP Cache)

Started by Sudhakar, Nov 09, 2009, 05:27 AM

previous topic - next topic
Go Down

Sudhakar

What is APC?
APC is a free, open, and robust framework for caching and optimizing PHP intermediate code.
Install instructions

1. Login to the server as root

2. Download APC


Code: [Select]
w get http://pecl.php.net/get/APC-3.0.14.tgz

3. Extract and move into the directory

Code: [Select]
gzip -d APC-3.0.14.tgz
tar -xf APC-3.0.14.tar
cd APC-3.0.14


4. Locate where php is

Code: [Select]
which php

This should return something like:
Code: [Select]
/usr/local/bin/php
We have to remember the location of php

5. Create configuration files

Code: [Select]
phpize

6. Compile APC

Code: [Select]
./configure -enable-apc -enable-apc-mmap -with-apxs -with-php-config=/usr/local/bin/php-config
make
make install
The "make install" commnand will return the location of the apc.so extention please note the location. You will need this later.

7. Install APC into php.ini

You will have to first locate php using the locate command

Code: [Select]
locate php

This will usualy return /usr/local/Zend/etc/php.ini on a server that has Zend optimizer installed.
Code: [Select]

Now we will edit php.ini and add the APC extension.

pico /usr/local/Zend/etc/php.ini


Scroll down to the buttom and add the fallowing before the lines about the zend optimizer (They start with [Zend])

Code: [Select]
extension="/apc_location/apc.so"

8. Restart Apache

If you done everything it's time to restart Apache

service httpd restart

Hope this helps !  :yes

Source : Thanks to the Unidentified Author.[/b][/color]  :educated

pradeep prem

it as easy to install APC cache from this website

it as given many codes to install

thanks for share

Go Up
 

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.
Name:
Email:
Verification:
Please leave this box empty:

Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:

shortcuts: alt+s submit/post or alt+p preview
IT Acumens | GinGly :: SMS Backup | Acumen :: Discussion Board | AshokPillar :: Hosting | CineBuzz :: Latest Cinema News | My Kids Diary :: Capture your kids magical moment
Copyright 2005 - 2017 :: IT Acumens :: All Rights Reserved.
ITAcumens Forum with 2 lakhs post running for 10 years - Powered by HostGator Dedicated Server