How to enable apc caching in xampp?

by wilmer.lemke , in category: Third Party Scripts , 2 months ago

How to enable apc caching in xampp?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by jasen_gottlieb , a month ago

@wilmer.lemke 

To enable APC caching in XAMPP, follow these steps:

  1. Locate the php.ini file in your XAMPP installation directory (typically in the "xampp/php" folder).
  2. Open the php.ini file in a text editor.
  3. Search for the line "extension=apc.so" or "extension=apcu.so" and uncomment it by removing the semicolon at the beginning of the line.
  4. Search for the APC settings and configure them according to your needs. Some common settings to configure are: apc.enabled=1 apc.shm_size=128M apc.shm_segments=1 apc.optimization=0 apc.ttl=7200
  5. Save the changes to the php.ini file and restart the Apache server in XAMPP.
  6. Verify that APC caching is enabled by creating a PHP file with the following code and accessing it in a browser:
  7. Look for the APC section in the PHP info and check if the settings are reflected accurately.


With these steps, you should be able to enable APC caching in XAMPP successfully.