memcached ubuntu php issue

2011-01-24 Thread Shihab KB
Hi,

I am trying to install memcached in Ubuntu 10.04. I have followed the
instructions from the site
http://stevelove.org/2009/09/30/how-to-install-php-memcached-on-an-ubuntu-server/
to installation.

After installation I can access memcached thru telnet and I executed
stats command. It is working properly. But when I am trying to connect
thru php it is not working. Following is my php file.

[code]
?php
$memcache = new Memcache();
?
[/code]

It return the error “Fatal error: Class 'Memcache' not found in /home/
hysanew/web/memcachetest.php on line 5”.

In my php.ini file and memcached.ini I have added “extension =
memcached.so”.

But when I restart the apache server it log an error in the error log
as “PHP warning : Module ‘memcached’ already loaded in Unknown on line
0.

Can somebody help me regarding this issue?

Regards
Shihab


Re: memcached php doubt

2011-01-24 Thread Shihab KB
Any solutions for this?

On Mon, Jan 24, 2011 at 4:39 AM, Brian Moon br...@moonspot.net wrote:

 On 1/22/11 5:43 AM, Shihab KB wrote:

 When I type status (the type contents are not visible) its exiting And
 display the prompt (D:\memcached)


 Then, memcached is not operating correctly.

 --

 Brian.
 
 http://brian.moonspot.net/



Re: memcached php doubt

2011-01-24 Thread Brian Moon

On 1/23/11 10:07 PM, Shihab KB wrote:

Any solutions for this?


You are running an old version of memcached on Windows. I don't have any 
experience with this and don't know how many people actually do this.


--

Brian.

http://brian.moonspot.net/


Re: Issue 106 in memcached: binary protocol parsing can cause memcached server lockup

2011-01-24 Thread memcached


Comment #4 on issue 106 by airat.ha...@gmail.com: binary protocol parsing  
can cause memcached server lockup

http://code.google.com/p/memcached/issues/detail?id=106

may be this specific issue is solved by the provided patch (haven't tried),
but in general the problem remains.
Even after applying the path suggested the following packet sent through  
udp hangs  memcached udp:

\x00\x00\x00\x00\x00\x01\x00\x00\x80\x05\x00\x01\x08\x00\x00\x00\x00\x00\x00\x0a\xef\xbe\xad\xde\x00\x00\x00\x00\x00\x00\x00\x00

(in fact any subsequent packet causes 100% usage)

Is is a storage_command (in terms of testapp.c), but the cmd (\x05,  
increment) is of type 'arithmetic_command' (in terms of testapp.c).

About this packet - all fields are 'correct' except for the type of cmd.
In the attachment - script that reproduces the livelock.

Attachments:
udp_livelock.py  931 bytes