webdevRefinery Forum: [SOLVED] Memcached in windows? - webdevRefinery Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Rate Topic: -----

User is offline devinsba 

  • Group: Members
  • Posts: 116
  • Joined: 08-August 10
  • LocationClarkson University
  • Expertise:PHP,Java,Javascript

Posted 08 February 2011 - 08:37 PM (#1)

[SOLVED] Memcached in windows?


Hey everyone, I am trying to set up a development environment in Windows 7 x64 and I am not having any luck getting a connection to memcached server from within php. I have the server running and have verified that it is running but I cannot seem to get it to appear in my extensions. If anyone has any ideas I would appreciate it.
0


User is offline Daniel15 

  • dan.cx
  • Group: Moderators
  • Posts: 3415
  • Joined: 17-April 10
  • LocationMelbourne, Australia
  • Expertise:HTML,CSS,PHP,Java,Javascript,Node.js,SQL

Posted 08 February 2011 - 09:12 PM (#2)

Did you install the PHP memcached extension? It is a PECL extension that does not come with PHP by default. See http://downloads.php.net/pierre/ for a compiled Windows DLL (php_memcache-....-x86.zip). Extract that to your PHP extensions directory (eg. C:\Program Files (x86)\PHP\ext, c:\php\ext or c:\xampp\php\ext) and add a reference to it in your PHP.ini file.

Out of curiosity, which version/port of Memcached are you using? [url=http://www.membase.org/]Membase[/url[, or a different one?
Daniel15! :D
Posted Image

Repeat after me: jQuery is not JavaScript. It is not the answer to every JavaScript-related question. When you have to write some JavaScript, do not instantly react with "Oh, I'll do that with jQuery!"

Spoiler
0


User is offline devinsba 

  • Group: Members
  • Posts: 116
  • Joined: 08-August 10
  • LocationClarkson University
  • Expertise:PHP,Java,Javascript

Posted 14 February 2011 - 11:03 AM (#3)

ok, so I have tried the version of the dll, that you linked to, and I have also tried a version I found elsewhere "php_memcache-cvs-20090703-5.3-VC6-x86" I dont really remember where I found it. And the version of Memcached I am using is the version from http://code.jellycan.com/memcached/

If it makes any difference I am using WAMP. I just cant seem to get it to actually load the extension, and there doesn't seem to be any errors being put into the error log.

The error I get with every version I try:

PHP Warning:  PHP Startup: Unable to load dynamic library 'j:/wamp/bin/php/php5.3.4/ext/php_memcache.dll' - %1 is not a valid Win32 application.\r\n in Unknown on line 0

0


User is offline AbrarSyed 

  • Yeah, I know, I am just that awesome...
  • Group: Members
  • Posts: 685
  • Joined: 03-July 10
  • LocationIL, USA
  • Expertise:HTML,CSS,PHP,Javascript,Graphics

Posted 14 February 2011 - 11:13 AM (#4)

if this is for you personally, I suggest going here and getting windows server, its a lot easier to set stuff up on.

otherwise, I can't help you.
MINECRAFT PARTY
67.175.138.40:443 OFFLINE
0


User is offline Daniel15 

  • dan.cx
  • Group: Moderators
  • Posts: 3415
  • Joined: 17-April 10
  • LocationMelbourne, Australia
  • Expertise:HTML,CSS,PHP,Java,Javascript,Node.js,SQL

Posted 14 February 2011 - 05:21 PM (#5)

Quote

%1 is not a valid Win32 application

Huh, that's a very odd error to get :blink: :blink:

I'm not too sure what's causing this :(
Daniel15! :D
Posted Image

Repeat after me: jQuery is not JavaScript. It is not the answer to every JavaScript-related question. When you have to write some JavaScript, do not instantly react with "Oh, I'll do that with jQuery!"

Spoiler
0


User is offline devinsba 

  • Group: Members
  • Posts: 116
  • Joined: 08-August 10
  • LocationClarkson University
  • Expertise:PHP,Java,Javascript

Posted 15 February 2011 - 04:01 PM (#6)

Ok so I managed to get it to work using a 64bit php_memcache.dll file, it is available here http://www.mediafire...u6y1f85gftrepwl and I will try to put it up somewhere permanent shortly.
0


User is offline TheEmpty 

  • I say words in sequences.
  • Group: Members
  • Posts: 5154
  • Joined: 02-October 10
  • Expertise:HTML,CSS,PHP,Java,Javascript,Python,Ruby on Rails,SQL

Posted 15 February 2011 - 04:07 PM (#7)

I downloaded a pre compiled exe :) just googled "memcached exe windows"
Reserved.
0


User is offline devinsba 

  • Group: Members
  • Posts: 116
  • Joined: 08-August 10
  • LocationClarkson University
  • Expertise:PHP,Java,Javascript

Posted 15 February 2011 - 05:07 PM (#8)

View PostTheEmpty, on 15 February 2011 - 04:07 PM, said:

I downloaded a pre compiled exe :) just googled "memcached exe windows"

Yeah i had the server working just couldn't find the php extension that would wok, but solved it
0


User is offline Daniel15 

  • dan.cx
  • Group: Moderators
  • Posts: 3415
  • Joined: 17-April 10
  • LocationMelbourne, Australia
  • Expertise:HTML,CSS,PHP,Java,Javascript,Node.js,SQL

Posted 15 February 2011 - 05:17 PM (#9)

Nice :)
I think my PHP's only a 32-bit one, even though I've got a 64-bit system. I didn't know that you could build a 64-bit version of PHP on Windows :P
Daniel15! :D
Posted Image

Repeat after me: jQuery is not JavaScript. It is not the answer to every JavaScript-related question. When you have to write some JavaScript, do not instantly react with "Oh, I'll do that with jQuery!"

Spoiler
0


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Enter your sign in name and password


Sign in options
  Or sign in with these services