I have this message in admin/logs/status
Performance logging APC Disabled
Performance logging on live web sites works best if APC is enabled.

Performance logging APC memory size
APC has been configured for , which is less than the recommended 48 MB of memory. If you encounter errors when viewing the summary report, then try to increase that limit for APC.

On Apache/2.0.54 (Win32) PHP/4.3.11
but what is this APC? I found a module but also a php.ini setting apc.shm_size=48;
I tested first php.ini setting but message remain (I restart apache);
I tested cacherouter (that is substitute of apc, but not clear where is the option for 48Mb
and also not simple to set) but message remain.

What I can to do for solution?

CommentFileSizeAuthor
#5 APC-W2K3-Installation.pdf279.6 KBsnorkers
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alb’s picture

Title: APC Disbled but what it is? » APC Disbled but what is it?
VM’s picture

APC = Alternative PHP Cache

see: http://pecl.php.net/package/APC

snorkers’s picture

Title: APC Disbled but what is it? » APC Disabled but what is it?

I've been trying to improve the really slow performance of my current D6 installation and have just entered the world of APC in the hope that will improve page load times. PHP extensions are not really my bag, and all I want to do is download an appropriate version of php_apc.dll (alas both test and live servers are Windows), but cannot get hold of the binaries, as the http://pecl4win.php.net site is offline; the Windows binaries will apparently appear later in 2009 somewhere...

So does anyone have copies of the binaries for PHP 5.2.3 or 5.2.6 or have a Dummies guide on how to generate a DLL from the PECL packages (http://pecl.php.net/package/APC)?

Sorry to be lame... I'll document my findings somewhere on the web in the hope that Google will save someone in the future too.

Harry Slaughter’s picture

unfortunately, this may be more difficult on windows than on *nix.

i do know that there is a commandline pecl for the windows version of php though, so you could attempt to install the required extension by typing the following at the commandline (you my want to do this from within the directory in which pecl.exe exists in case your environment vars aren't set up properly):

pecl install apc

you will get a failure if you do not have apache's APXS installed (http://httpd.apache.org/docs/2.0/programs/apxs.html).

good luck!

snorkers’s picture

FileSize
279.6 KB

I've finally found some guidance and located the DLLs to install APC under Windows - PDF attached and DLL currently at http://downloads.php.net/pierre/. Although this solution will actually load up APC (tested with apc.php), as soon as the Drupal site is accessed, the server crashes..?

Possible problem now seems to be a conflict with Zend - which is running on Apache (why? I never downloaded it). No idea how to disable Zend - nothing in php.ini to help - so still have yet to get APC working under a Windows Server... or is there something else in Drupal I need to configure?

anea02’s picture

Version: 5.x-1.x-dev » 6.x-1.22

History repeats itself

Snorkers, did you ever find a solution to this issue and if so do you remember what it was???? I am experiencing exactly the same issue as I try to optimise a slow Drupal / UC install and nothing else has worked - I have 38 second page loads, 800ms of that is SQL queries. PHP memory is set to 128MB, MySQL caching is on ... There has to be an easier way to make a 'slightly more complex' Drupal site responsive on the admin pages (i.e. non-cached content) . This one has been plaguing me all day.

Not really a 'Devel' issue, me thinks, but I am putting my issue here simply because this is the closest I could find to my problem (i.e. APC library is working, PHP has loaded the library, it is only when one attempts to access a Drupal page that Apache restarts (I have an error of ' Parent: child process exited with status 128 -- Restarting')

Adam

niccottrell’s picture

Subscribing

VM’s picture

Status: Active » Fixed

APC has to be compiled in the environment in use. If on a shared host you'd likley have to ask them to do it for you. instructions are included in the APC from PECL.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.