Install Memcache to speed up PHP on IIS

Another way to speed up PHP on Microsoft Windows IIS is by using memcache.

  • Download the DLL for Windows.

http://pecl.php.net/package/memcache

  • Copy the DLL to your PHP Ext folder
  • Edit your PHP.ini file and add -
                  extension=php_memcache.dll

Save your PHP.ini file after modifying

  • Download  Memcached files -

http://code.jellycan.com/memcached/

  • Create a memcache folder on your C: drive and copy the memcahed files into this folder (extracted)
  • Go to a command prompt.  Type CD\memcache

Type the following-

                        memcached.exe -d install        (Enter)

                    Next type
memcached.exe -d start            (Enter)    OR
net start “memcached Server”

How do you see the cache in a chart format?

Use the memcache.php file (copy to your web server directory) – Note you may have to remark out the second server or use 127.0.0.1 instead of localhost.

The only anomaly?   Apparently our server has been up 136 years.

memcache

 

Note:  If you are running Moodle LMS, open your config.php file and enter the following bold lines -
After the following line
require_once(dirname(__FILE__) . ‘/lib/setup.php’);

Adding these new lines:

$CFG->cachetype=’memcached';
$CFG->rcache = true;
$CFG->memcachedhosts= ‘127.0.0.1’;
$CFG->memcachedpconn=true;

 

 

About these ads

About TCAT Shelbyville IT Department

The Tennessee College of Applied Technology - is one of 46 institutions in the Tennessee Board of Regents System, the seventh largest system of higher education in the nation. This system comprises six universities, fourteen community colleges, and twenty-six Applied Technology Colleges.
This entry was posted in freeware, Information Technology, Windows and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s