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.

 

How to block access to xmlrpc.php serverwide on Directadmin?

L2TP/IPsec VPN fails to connect on Windows 10 or Windows 11- Works fine on iOS

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

Cum sa obtii mai multe like-uri pe Facebook

Cum sa obtii mai multe like-uri pe Facebook

Pensiunea Acasa in Bucovina

Pensiunea Acasa in Bucovina

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

Greseli majore facute de pensiunile din Bucovina

Greseli majore facute de pensiunile din Bucovina

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

Cum procedam la mesaje negative!

Cum procedam la mesaje negative!

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