Go Back   SZONE.US Forums > Do it yourself (DIY) > Web Tips

Web Tips Tips and tricks specializing in programming languages of the web. ie. PHP, MYSQL, XHTML, CSS, etc

Install APC on Windows and Apache

Views:16737
Reply
Thread Tools Search this Thread Rate Thread
  #1  
Unread 05.10.08, 06:24 AM
Zachariah Boren's Avatar
Zachariah Boren Zachariah Boren is offline
Administrator
 
Join Date: 02.07
Location: Canoga Park, CA
Posts: 928
Blog Entries: 6
Images: 10075
Send a message via ICQ to Zachariah Boren Send a message via MSN to Zachariah Boren Send a message via twitter to Zachariah Boren
Install APC on Windows and Apache

Alternative PHP Cache (APC) is a free and open opcode cache for PHP.

Quote:
What is PECL?
PECL is a repository for PHP Extensions, providing a directory of all known extensions and hosting facilities for downloading and development of PHP extensions.

The packaging and distribution system used by PECL is shared with its sister, PEAR
Installing APC on Windows is simple task to do. Unfortunately, looking for the .dll file is not! The DLL's used to enable this in PHP4 to PHP6 can be found here at PECL. Please choose the correct version based on your PHP version installed on your webserver.

Download and save the php_apc.dll file to your PHP extensions folder. On my PC, this folder is located here:
c:\php\ext

As soon as you have successfully downloaded the file, you will have to edit your php.ini. Open php.ini with your favourite text editor and insert a line like this:

Code:
;extension=php_yaz.dll
;extension=php_zip.dll
extension=php_apc.dll
Since I have no reason to tweak the APC configurations, I didn't insert any custom APC configuration values to the php.ini file. But if this is what you want to do, some of these options need to be set inside your php.ini file.

One such configuration option is the:
Code:
apc.shm_size	"30"	PHP_INI_SYSTEM
For those of you who don't already know it, the PHP_INI_SYSTEM in there means that this directive may only be set in the php.ini or Apache's httpd.conf files.

Save the php.ini file and restart Apache and you're ready to experiment using APC functions in your php scripts.

Mr Floris did a blog on Installing APC on CentOS 5 Server
__________________
http://www.szone.us | http://www.gzhq.net
Twitter | Facebook | My:Hacks @ vBulletin.org
Member of Kiwanis Club of Chatsworth
Reply With Quote
  #2  
Unread 01.03.12, 12:23 AM
watson88 watson88 is offline
Junior Member
 
Join Date: 01.12
Posts: 1
Thanks a lot i was searching for this for very long time, actually i recently join this forum and i hope got lot of such useful information in future.
Reply With Quote
Reply

Tags
apache, apc, install, windows

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Vista: Restore Missing Desktop Icons Zachariah Boren Computer Software 0 01.31.09 07:58 AM
Clean out Windows Temp folder Zachariah Boren Computer Software 0 01.31.09 07:53 AM
Windows Vista and No Telnet Zachariah Boren Computer Software 0 04.22.08 04:37 PM
91 Utilities to Supercharge Windows Steve Boren Computer Software 0 04.08.08 12:31 PM
Microsoft Windows Vista Service Pack 1 Steve Boren Computer Software 0 02.27.08 11:18 AM


All times are GMT -8. The time now is 07:30 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2007 - 20017 SZONE.US All rights reserved