Methods to install APC (PHP Cache)

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

previous topic - next topic
Go Down


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

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]
We have to remember the location of php

5. Create configuration files

Code: [Select]

6. Compile APC

Code: [Select]
./configure -enable-apc -enable-apc-mmap -with-apxs -with-php-config=/usr/local/bin/php-config
make install
The "make install" commnand will return the location of the 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]

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.
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 Web Designing Chennai | GinGly :: Build your Personal Website | CineBuzz :: Cinema News | My Kids Diary :: Gift your Kids Memories :: Book Website @ 349 Rs monthly
Copyright 2005 - 2021 :: IT Acumens :: All Rights Reserved. :: XML Sitemap
ITAcumens Discussion Forum with 2 lakhs post running for 15 years - Powered by IT Acumens Pro Dedicated Server

My Kids Diary