APC installation in xampp

Problems with the Windows version of XAMPP, questions, comments, and anything related.

APC installation in xampp

Postby mahes » 25. June 2009 11:08

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.....
mahes
 
Posts: 20
Joined: 04. February 2008 10:47

Re: APC installation in xampp

Postby Nobbie » 25. June 2009 12:02

Does the installation description of APC not work, any problems, error messages?
Nobbie
 
Posts: 8761
Joined: 09. March 2008 13:04

Re: APC installation in xampp

Postby mahes » 25. June 2009 12:12

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
mahes
 
Posts: 20
Joined: 04. February 2008 10:47

Re: APC installation in xampp

Postby Nobbie » 25. June 2009 16:07

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.
Nobbie
 
Posts: 8761
Joined: 09. March 2008 13:04

Re: APC installation in xampp

Postby mahes » 25. June 2009 16:09

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...
mahes
 
Posts: 20
Joined: 04. February 2008 10:47

Re: APC installation in xampp

Postby Nobbie » 26. June 2009 11:18

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.
Nobbie
 
Posts: 8761
Joined: 09. March 2008 13:04

Re: APC installation in xampp

Postby px2000 » 25. January 2011 00:43

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
px2000
 
Posts: 1
Joined: 25. January 2011 00:38

Re: APC installation in xampp

Postby valli-R » 14. April 2011 01:53

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
valli-R
 
Posts: 1
Joined: 14. April 2011 01:45


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 45 guests