Page 1 of 1

APC installation in xampp

PostPosted: 25. June 2009 11:08
by mahes
HI all,

Am using xampp 1.5.4 and i want to know to how to include the APC interface (PECL) in xampp..? any body.....

Re: APC installation in xampp

PostPosted: 25. June 2009 12:02
by Nobbie
Does the installation description of APC not work, any problems, error messages?

Re: APC installation in xampp

PostPosted: 25. June 2009 12:12
by mahes
Actually i do not know how to install this package. As am said am using xampp 1.5.4 version. I downloaded APC from http://pecl.php.net/package/APC and i unpacked into "xampp/php" folder. Also i added below lines in php.ini and restarted apache.

extension=php_apc.dll
extension=apc.so
apc.enabled=1
apc.shm_segments=1
apc.shm_size=128
apc.ttl=7200
apc.user_ttl=7200
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.enable_cli=1
and i enabled extension=php_mcrypt.dll,extension=php_mcrypt_filter.dll,extension=php_memcache.dll by removing ";" in front

finally When am testing with print_r(apc_cache_info()); i got

Fatal error: Call to undefined function apc_cache_info() in D:\Program Files\xampp\htdocs\setup\info.php on line 2

I seen there is pecl.bat file in xampp/php folder. But i do not know how to use

Re: APC installation in xampp

PostPosted: 25. June 2009 16:07
by Nobbie
mahes wrote:I downloaded APC from http://pecl.php.net/package/APC and i unpacked into "xampp/php" folder


Why did you that? Those are C programs and include files, no php files.

You downloaded the source package of APC, if you want to install the binary version, you must compile this project. For the Windows Version you need Microsoft Visual Studio, which you can download from Microsoft.

Re: APC installation in xampp

PostPosted: 25. June 2009 16:09
by mahes
Hi Nobbie,

Thanks for the reply. Can u tell me the simple way to use it.. I mean which is the best to include APc. Please guide me...

Re: APC installation in xampp

PostPosted: 26. June 2009 11:18
by Nobbie
mahes wrote:Can u tell me the simple way to use it


There is no "simple way" to use it. You must download Microsoft Visual Studio and open the APC Projekt file (*.dsp) in the Development Studio and try to run a compile. This is never an easy job as many things may go wrong.

I cannot guide you for that.

Re: APC installation in xampp

PostPosted: 25. January 2011 00:43
by px2000
Hi Nobbie or any other kind soul,

any updates on this situation? Is the suggestion described above still the most efficient way to accomplish the APC installation?

Questions:

1.- What is the most efficient way to install APC on XAMPP version 1.6.7? (I am using windows server 2003)

2.- Is there a link that you can share where I can download a compiled version of APC for windows that is compatible with my XAMPP version?

Thank you in advance for your answer.

Peter

Re: APC installation in xampp

PostPosted: 14. April 2011 01:53
by valli-R
How I installed APC with the latest xampp :


You can also use this custom configuration (add it at the end of php.ini) :

Code: Select all
[APC]
apc.enabled = 1
apc.shm_segments = 1
apc.shm_size = 64
apc.max_file_size = 10M
apc.stat = 1