Magento Forum

   
Page 1 of 4
APC setup
 
jan212
Guru
 
Avatar
Total Posts:  407
Joined:  2008-01-03
 

Regarding to the newest release notes,

Added availability to set global/cache/prefix for APC cache

:

How to setup the prefix?

<cache>
  <
prefix>apc</prefix>
</
cache>

in config.xml between <global>???

 
Magento Community Magento Community
Magento Community
Magento Community
 
jan212
Guru
 
Avatar
Total Posts:  407
Joined:  2008-01-03
 

Any documentation, links or hints would be useful?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Brandlive_br
Guru
 
Avatar
Total Posts:  653
Joined:  2008-05-19
Buenos Aires, Argentina
 

If you select APC as yoru cache, you just need follow this steps:

1) Copy the APC Php extension into your php extensions directory.
2) Add to your php.ini, at the end of file, the next configuration:

[PHP_APC]
extension=php_apc.dll or extension=php_apc.so (it depends if you use Windows or Linux)

[APC]
apc.enabled = 1
apc.shm_segments = 1
apc.shm_size = 64
apc.max_file_size = 10M
apc.stat=1

That is a semi-default config.
Then, restart your Apahce. At this point, your APC cache it’s working.
Magento use Apc automatically.

I hope that you can use this like a first-step.

 
Magento Community Magento Community
Magento Community
Magento Community
 
MmaxX
Sr. Member
 
Avatar
Total Posts:  112
Joined:  2008-04-01
 

Personnaly, I had already installed APC on my OVH server (Gentoo distrib), but with this new configuration :
[APC]
apc.enabled = 1
apc.shm_segments = 1
apc.shm_size = 64
apc.max_file_size = 10M
apc.stat=1

, my website is really faster. It’s a rocket, less than one second to load a new page !

When I remember the first time I’ve installed Magento, with Wampserver and without APC, with 10 seconds between two pages : it is far far away.

 
Magento Community Magento Community
Magento Community
Magento Community
 
jan212
Guru
 
Avatar
Total Posts:  407
Joined:  2008-01-03
 

Hello,

Thanks, but I allready setup this configuration and apc is working, but i doesn’t cache any variables…

 
Magento Community Magento Community
Magento Community
Magento Community
 
Brandlive_br
Guru
 
Avatar
Total Posts:  653
Joined:  2008-05-19
Buenos Aires, Argentina
 

Just a question for-dummies.
Wich options have you selected ino the cahce panel?

 
Magento Community Magento Community
Magento Community
Magento Community
 
jan212
Guru
 
Avatar
Total Posts:  407
Joined:  2008-01-03
 

what do you mean with cache panel?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Oxa Koba
Jr. Member
 
Avatar
Total Posts:  8
Joined:  2008-04-15
Oregon, United States
 

Between the comments here and the link provided on Magento’s system requirements page, I had hoped to enable APC Cache. Unfortunately, the installation instructions that came with the APC download and the suggestions here in the forums are written above my technical level.

Could someone please provide a thorough step-by-step guide to installing APC cache that assumes novice level understanding of PHP.

Imagine your explaining the steps to a frontend web designer; someone that knows HTML, CSS and JS. Someone very familiar with FTP but not at all familiar with command line interfaces. Someone who finds PHPMyAdmin endurable but confusing. There are a lot of us in the Magento community that do not speak MySQL, PHP or Zend. Nor do we do know our sudo from our pseudo.

Thank you for any help you are willing to lend.

--------------------------------------------------------------------------------

PS—Its *very* discouraging that Varien goes so far as to recommend APC cache on the system requirements page yet neglects to provide a tutorial for installing it into Magento.

 
Magento Community Magento Community
Magento Community
Magento Community
 
jan212
Guru
 
Avatar
Total Posts:  407
Joined:  2008-01-03
 

If you’re not familiar with server administration it would be no good idea smile. Also you had forgotten to post your server setup. There are different ways on different operating systems.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Oxa Koba
Jr. Member
 
Avatar
Total Posts:  8
Joined:  2008-04-15
Oregon, United States
 

My Setup: MediaTemple (gs) Grid-Service

* PHP 4.4.7-1
* PHP 5.2.2-1
* Perl v5.8.4
* Python v2.3.5
* Apache 2.0.54
* MySQL 4.1.11
* PostgreSQL 7.4.7

I am currently using PHP 5 for Magento.

And I believe its a linux server.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Oxa Koba
Jr. Member
 
Avatar
Total Posts:  8
Joined:  2008-04-15
Oregon, United States
 
jan212 - 02 June 2008 09:08 AM

If you’re not familiar with server administration it would be no good idea.

If that is the case, can you explain why? (both for me and for all the other Magento users struggling with this.)

 
Magento Community Magento Community
Magento Community
Magento Community
 
jan212
Guru
 
Avatar
Total Posts:  407
Joined:  2008-01-03
 

I can’t explain it in my poor english as i would do this in my native language(german), but written in short words a server is a complex construct with a lot of different dependencies and only 1 wrong char could bust your whole system. You can try to install apc, compared to other things that a comparatively easy operation, but i recommend to do this not in a production enviroment.

A stupid compare: You can coat your whole house yourself or assign a professional painting firm. Primary there would be 3 different things in the conclusion. You’ll need a longer time and your coat wouldn’t be as good, but you’ll *virtualy save your money

That doesn’t mean you can’t do it yourself, it’s my personal position in getting things effeciently done.

If you need a good howto try google or howtoforge, cause i don’t know your OS i can’t give deeper information. If you don’t know how to access your server via SSH or have some basic skills in command line based administration you have to start from this point.

*I am speaking of virtualy cause you don’t save money if your income is higher than the painting firms cost smile. In this case you should do your usually job and let others do the work they are doing since years.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Oxa Koba
Jr. Member
 
Avatar
Total Posts:  8
Joined:  2008-04-15
Oregon, United States
 

Thank you, Jan212, for the prompt and frank reply.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Branko56
Jr. Member
 
Total Posts:  14
Joined:  2008-12-11
 

Hi All,

Wondering if i could get some advice, I’ve recently set up a magento store ([url=http://www.goshcelebrityfashion.com.au]http://www.goshcelebrityfashion.com.au[/url]) and have been experiencing fairly slow performance. I’ve tweaked the mysql config and installed apc but haven’t noticed much improvement. Page requests are around 5 seconds and are slow mostly on catalog list pages. Also tried to install the ‘fooman speedster’ extension to minify js & css but gave up, don’t know that this extension is even that useful.

The server is running Fedora and has about 2GB of ram.

Thanks,
Branko

 
Magento Community Magento Community
Magento Community
Magento Community
 
Dumpy Dooby
Jr. Member
 
Total Posts:  14
Joined:  2008-05-08
 

I installed APC just fine on my server, and I am by no means an experienced system administrator.

If you have WHM/cPanel, it’s fairly simple…
- Software >> Module Installers >> PHP Pecl Installer
- In the “Install a PHP Pecl” text field, type APC and click “install.”

If you’re using command line, it’s just as easy, but you can use the howtoforge tutorials for that.

 
Magento Community Magento Community
Magento Community
Magento Community
 
head
Jr. Member
 
Total Posts:  16
Joined:  2007-09-26
 

very old thread - but unsolved!

this works:

/magento/app/etc/local.xml

<global>
        ...
        <
cache>
            <
backend>apc</backend>
            <
prefix>alphanumeric</prefix>
        </
cache>
        ...
</global>

You also have to enable the cache under System/Cache Management

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 1 of 4