Page 1 of 1

Problem with APC [SOLVED!]

Posted: Thu May 22, 2008 10:02 am
by taufikp
I just installed APC (Alternative PHP Cache - a PHP op-code cache : php.net/apc) and CMSMS (version 1.2, Barbados) doesn't seem to like it. So I test it with my own framework and other scripts (bitweaver and boonex's dolphin) and they're working fine with APC. Is this a known problem and/or has this already fixed in the latest CMSMS?

Re: Problem with APC

Posted: Mon May 26, 2008 4:49 am
by taufikp
No clue, anyone?

Re: Problem with APC

Posted: Mon May 26, 2008 6:22 pm
by Pierre M.
Hello,

why not try CMSms 1.2.5 at least ?

In a very old post I've read Ted stating PHP opcode accelerators are good things. He was naming one, I don't remember which, but not the name you give.
Hope it helps.

Pierre M.

Re: Problem with APC

Posted: Mon May 26, 2008 7:12 pm
by calguy1000
And please follow the forum rules when posting.

"doesn't seem to like it" doesn't tell us anything.

Re: Problem with APC

Posted: Tue May 27, 2008 2:35 am
by taufikp
Sorry for not being clear. When I opened a CMSMS page in a browser, the request run in an endless loop and the requested page will never be loaded.

Here's the last line in Apache's access.log file:

127.0.0.1 - - [27/May/2008:09:30:41 +0700] "GET /cmsms HTTP/1.1" 301 369

By the way, my development system is a WinXP Pro SP2, running Apache/2.2.4, PHP/5.2.3, and MySQL 5.0.45.

Re: Problem with APC

Posted: Tue May 27, 2008 3:27 am
by taufikp
Pierre M. wrote: Hello,

why not try CMSms 1.2.5 at least ?

In a very old post I've read Ted stating PHP opcode accelerators are good things. He was naming one, I don't remember which, but not the name you give.
Hope it helps.

Pierre M.
Hi Pierre,

I haven't try the latest version (1.2.5) yet. Probably one of the opcode accelerators Ted mentioned is eAccelerator? http://eaccelerator.net.

I'm trying APC because this is an official opcode cache for PHP, and will be included as part of PHP 6 distribution. Naturally I want to use it as much as I can in every PHP based website I develop.

Re: Problem with APC

Posted: Tue May 27, 2008 4:22 am
by taufikp
I finally found the solution! The APC binary from pecl4win.php.net is not working well with CMSMS.

I found another site which provides almost all available PHP opcode cache in Windows binary format: http://www.sitebuddy.com/PHP/Accelerato ... ies_builds

So I downloaded the version which was compiled with PATH_MAX = 2048, and the never ending loop is now fixed! ;D