How to enable alternate php cache?
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Sat Oct 08, 2011 2:41 pm
How to enable alternate php cache?
Hi I've been working with my host provider to solve my site's slow loading and they recommended to switch to fast cgi and apc cache. I've read that I'm suppose to go under global configuration > system and change the cache handler from File to Alternative php cache. But I only have File under drop down. How do I get joomla to utilize APC cache? Thanks. Running joomla 2.5.8
-
- Joomla! Apprentice
- Posts: 45
- Joined: Sun Jan 30, 2011 12:53 pm
- Location: London, UK
- Contact:
Re: How to enable alternate php cache?
In order to utilise APC you will need to make sure that php-pecl-apc module is installed.
In redhat/centos/fedore simply type "yum install php-pecl-apc.x86_64" (assuming that you are running 64bit OS) and restart apache.
In redhat/centos/fedore simply type "yum install php-pecl-apc.x86_64" (assuming that you are running 64bit OS) and restart apache.
-
- Joomla! Enthusiast
- Posts: 144
- Joined: Tue Nov 15, 2011 9:05 pm
- Location: Netherlands
- Contact:
Re: How to enable alternate php cache?
It looks like it is not installed yet. You can check it in the administration part with going to Site -> System information -> PHP Information. If you don't see APC there it is not installed.
In some cases you have to add it to your website php settings. Mostly you find them in the directory:
[yourdomain]/etc/php5. Look for a file called php.ini.
In this file you can add the following lines at the bottom:
Also keep in mind that you probably have to tune APC. You have to do that too in this file. Most important is the file apc.shm_size (amount of memory for APC).
Afterwards you can choose it in the Joomla Cache like you already tried. A warning: Don't change Session Handler there, keep it like it is. Otherwise it will destroy your site.
I can confirm that it makes your site much faster. Only when you change something, don't forget to clear the cache, otherwise you don't see the changes.
Ask your provider to help with installing it.
Good luck
Martin
In some cases you have to add it to your website php settings. Mostly you find them in the directory:
[yourdomain]/etc/php5. Look for a file called php.ini.
In this file you can add the following lines at the bottom:
Code: Select all
[APC]
extension=apc.so
Afterwards you can choose it in the Joomla Cache like you already tried. A warning: Don't change Session Handler there, keep it like it is. Otherwise it will destroy your site.
I can confirm that it makes your site much faster. Only when you change something, don't forget to clear the cache, otherwise you don't see the changes.
Ask your provider to help with installing it.
Good luck
Martin
- SOAMJENA
- Joomla! Ace
- Posts: 1274
- Joined: Thu May 01, 2008 12:36 pm
- Location: QubeSys Technologies Pvt. Ltd ,INDIA
- Contact:
Re: How to enable alternate php cache?
But where do you enable it in Joomla backend ?
I dont see APC listed anywhere.
I dont see APC listed anywhere.
Web Design, eCommerce and Software Development
Joomla Premium Extensions,Templates and Support Packages
Joomla Premium Extensions,Templates and Support Packages
-
- Joomla! Apprentice
- Posts: 20
- Joined: Sun Jun 11, 2006 11:04 pm
Re: How to enable alternate php cache?
Same problem here. Where can I choose it in the backend?
getimo
getimo
- prem726
- Joomla! Intern
- Posts: 89
- Joined: Sat May 15, 2010 10:27 am
- Location: Korat, THAILAND
Re: How to enable alternate php cache?
Thank you , I looking for this for a long time
I will check it in my websites : www.happykorat.com and www.koodtrat.com
I will check it in my websites : www.happykorat.com and www.koodtrat.com
You do not have the required permissions to view the files attached to this post.