Iulian Halac - Solutii web complete!
  • Home
  • Contact
  • Politica Confidentialitate
Home
Contact
  • Home
  • Contact
Iulian Halac - Solutii web complete!
Linux

Installing Alternative PHP Cache (APC)

APC is the Alternative PHP Cache, which is a free, open, and robust framework for caching and optimizing PHP intermediate code. What this means is that APC reads your PHP files, parses them into a more efficient binary format and then caches them in memory so that each request for your PHP files and PHP library files can be fed from the parsed cache. This will generally lead to a speed increase when serving a PHP site, especially one with a lot of library files.

Alternative PHP Cache (APC) will be integrated by default on PHP6. Though this setting will default to off, APC’s caching can significantly increase the speed of your web application. There are currently some great PHP caching libraries available but integrated support can make the system run faster.

  1. To install it with the default CLI version of php, use the following:

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

Here an error may appear:

Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

you can fix it with: yum -y install autoconf

 

whereis php-config
./configure –with-php-config=/usr/local/bin/php-config
make
make install

2. Then, we needed to edit the 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. service httpd restart

When you download and install the APC cache, there’s a file in the root level of the source archive called apc.php – this is a PHP script which allows you to view information about the status of the PHP Cache as shown in the screenshots below. You simply need to copy the apc.php file to a directory that is served by your Apache (or other) web server and then load up the page in your browser.

 

  • Popular
  • Recent
  • Comments

    Arhive

    <
    2012
    • 2020
    • 2019
    • 2018
    • 2017
    • 2016
    • 2015
    • 2014
    • 2013
    • 2012
    ▼
    >
    Jan1 Post
    Feb0 Posts
    Mar0 Posts
    Apr0 Posts
    May0 Posts
    Jun0 Posts
    Jul0 Posts
    Aug0 Posts
    Sep0 Posts
    Oct0 Posts
    Nov0 Posts
    Dec0 Posts
    Jan0 Posts
    Feb2 Posts
    Mar0 Posts
    Apr0 Posts
    May0 Posts
    Jun0 Posts
    Jul0 Posts
    Aug0 Posts
    Sep0 Posts
    Oct0 Posts
    Nov0 Posts
    Dec0 Posts
    Jan1 Post
    Feb0 Posts
    Mar0 Posts
    Apr0 Posts
    May1 Post
    Jun0 Posts
    Jul0 Posts
    Aug0 Posts
    Sep0 Posts
    Oct0 Posts
    Nov0 Posts
    Dec0 Posts
    Jan0 Posts
    Feb0 Posts
    Mar0 Posts
    Apr0 Posts
    May0 Posts
    Jun0 Posts
    Jul0 Posts
    Aug0 Posts
    Sep0 Posts
    Oct0 Posts
    Nov0 Posts
    Dec2 Posts
    Jan1 Post
    Feb2 Posts
    Mar0 Posts
    Apr0 Posts
    May0 Posts
    Jun0 Posts
    Jul0 Posts
    Aug2 Posts
    Sep1 Post
    Oct3 Posts
    Nov0 Posts
    Dec0 Posts
    Jan0 Posts
    Feb0 Posts
    Mar4 Posts
    Apr2 Posts
    May0 Posts
    Jun2 Posts
    Jul0 Posts
    Aug0 Posts
    Sep2 Posts
    Oct0 Posts
    Nov0 Posts
    Dec0 Posts
    Jan1 Post
    Feb2 Posts
    Mar2 Posts
    Apr0 Posts
    May2 Posts
    Jun4 Posts
    Jul2 Posts
    Aug5 Posts
    Sep5 Posts
    Oct7 Posts
    Nov1 Post
    Dec1 Post
    Jan0 Posts
    Feb6 Posts
    Mar2 Posts
    Apr3 Posts
    May3 Posts
    Jun5 Posts
    Jul2 Posts
    Aug1 Post
    Sep1 Post
    Oct3 Posts
    Nov6 Posts
    Dec3 Posts
    Jan0 Posts
    Feb0 Posts
    Mar0 Posts
    Apr0 Posts
    May0 Posts
    Jun0 Posts
    Jul0 Posts
    Aug0 Posts
    Sep0 Posts
    Oct14 Posts
    Nov4 Posts
    Dec5 Posts

    Directadmin AddType .html

    High disk I/O

    Exim: cum investigam frozen messages in mailqueue

    Tot ce trebuie sa stii despre GDPR (Regulamentul UE 679/2016)

    Cum sa verifici daca serverul Linux este vulnerabil la Spectre si Meltdown

    Cum sa verifici daca serverul Linux este vulnerabil la Spectre si Meltdown

    How to mount broken linux server HDD

    RoTLD va efectua tranzitia catre sistemul de inregistrare anuala pentru domeniile .ro

    RoTLD va efectua tranzitia catre sistemul de inregistrare anuala pentru domeniile .ro

    wordpress upload images HTTP Error

    Pensiunea Acasa in Bucovina

    Pensiunea Acasa in Bucovina

    Cum sa obtii mai multe like-uri pe Facebook

    Cum sa obtii mai multe like-uri pe Facebook

    Impresii despre Delta Dunarii

    Impresii despre Delta Dunarii

    De ce campanii pe Facebook?

    De ce campanii pe Facebook?

    Iata cum puteti accesa lista cartilor romanesti din iTunes BookStore

    Iata cum puteti accesa lista cartilor romanesti din iTunes BookStore

    ROTLD

    ROTLD

    The Emperor 200 cel mai tare scaun din lume si probabil cel mai scump

    The Emperor 200 cel mai tare scaun din lume si probabil cel mai scump

    Distractie la inaltime in Gura Humorului

    Distractie la inaltime in Gura Humorului

    Folosesc DNS Profesionist

    100% Uptime Guarantee! Accelerate Your Website! DNS Made Easy
    100% Uptime Guarantee!
    Accelerate Your Website!
    DNS Made Easy

    Pensiunea Eden, Cazare Delta Dunarii

    Meniu:

    • Home
    • Contact
    • Politica Confidentialitate