"Memcache Extension not loaded."

Started by john, November 16, 2011, 08:10:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tundracanine

according to this page http://www.if-not-true-then-false.com/2010/install-memcached-on-centos-fedora-red-hat/ on centos also need to do this
yum install php php-pecl-memcache
yum install php php-pecl-memcached


then restart the apache.
/etc/init.d/apache2 restart
that page i mentioned has alot of other info too.
If wanting support help please put bare min info like
Os:
U-232 Version:
Php Version:
Tracker type: like xbt or php
Saves on asking more questions just so people can help someone.

autotron

Memcahe is a 2 part install for any OS, for centos
Quoteto install Memcached:
$ yum install memcached

Afterwards you can confirm memcached is up and running by calling it.
$ memcached -h
memcached 1.2.6
Install the Memcache PECL Extension

Even though memcached is happily running on the server, it's not accessible from PHP without the PECL extension. Fortunately this is a very easy process, just use the pecl command.

$ pecl install memcache

Then add the memcache extension to your php.ini file, usually at /etc/php.ini.
extension=memcache.so

And finally restart Apache so that it will pick up the new extension:
$ /etc/init.d/apache2 restart

for ubuntu etc basically the same
Quote
To start, install memcached via apt-get.

sudo apt-get install memcached

The next step is to install php-pear, the repository that stores memcache.

sudo apt-get install php-pear

If you do not have a compiler on your server, you can download build-essential in order to install memcache:

sudo apt-get install build-essential

Finally use PECL (PHP Extension Community Library) to install memcache:

sudo pecl install memcache

Say yes by pressing enter during the installation when you are asked if you would like to "Enable memcache session handler support? [yes] :"

Once you have completed the installation of memcache with PECL on the VPS, add memcached to memcache.ini:

echo "extension=memcache.so" | sudo tee /etc/php5/conf.d/memcache.ini
then /etc/init.d/apache2 restart

toni68


swizzles

 :) It looks like you have maybe changed the default port memcache listens on. By default memcache listens on port11211
Your cmd shows its listening on port 11000!!! You need to change the port in you memcache file or change it in root.
YOu should then be good to go.;)

john

Quote from: john on November 17, 2011, 10:23:53 AM
Quote from: john on November 16, 2011, 10:03:03 PM
Quote from: MrRep on November 16, 2011, 08:56:40 PM
Then load it mate. make sure you have it installed correctly. what os are you using? if its centOS then try this http://www.sohailriaz.com/how-to-install-memcached-with-memcache-php-extension-on-centos-5x/
[root@ks996628 ~]# ps auwx | grep memcache
root      9969  0.0  0.0  61244   676 pts/2    S+   23:01   0:00 grep memcache
nobody   14676  0.0  0.0 189568   612 ?        Ssl  20:48   0:00 memcached -d -u                                                                              nobody -m 1024 -l 127.0.0.1 -p 11000
[root@ks9996628 ~]#

this is what i get in root ssh
Many thax for everyone help with this ive done 57 install of it and 57 new os put on it and 57 reinstalls of the v2 And still same, Many thax from all here in this forum but its time to fined something that will work without the Memcache , i would have like this v2 as it is its a no no with my host Many thax one and all here at U-232
Or there a way if a very good coder can put this on for me As i have the 2v ready to go on host again. pm me please ill give you my msn
no its not on a shared host at all

daffy81

Quote from: john on November 17, 2011, 10:23:53 AM
Quote from: john on November 16, 2011, 10:03:03 PM
Quote from: MrRep on November 16, 2011, 08:56:40 PM
Then load it mate. make sure you have it installed correctly. what os are you using? if its centOS then try this http://www.sohailriaz.com/how-to-install-memcached-with-memcache-php-extension-on-centos-5x/
[root@ks996628 ~]# ps auwx | grep memcache
root      9969  0.0  0.0  61244   676 pts/2    S+   23:01   0:00 grep memcache
nobody   14676  0.0  0.0 189568   612 ?        Ssl  20:48   0:00 memcached -d -u                                                                              nobody -m 1024 -l 127.0.0.1 -p 11000
[root@ks9996628 ~]#

this is what i get in root ssh
Many thax for everyone help with this ive done 57 install of it and 57 new os put on it and 57 reinstalls of the v2 And still same, Many thax from all here in this forum but its time to fined something that will work without the Memcache , i would have like this v2 as it is its a no no with my host Many thax one and all here at U-232
Or there a way if a very good coder can put this on for me As i have the 2v ready to go on host again. pm me please ill give you my msn

57? didnt know there was 57 os out there... its not hard really, add extension to php/php.ini load dll file into php/ext, restart apache, done. if not working then try different php_memcache.dll files and restart apache each time. refresh browser untill you see site.

p.s is this on a shared host? if so then might aswell give up now

john

#6
Quote from: john on November 16, 2011, 10:03:03 PM
Quote from: MrRep on November 16, 2011, 08:56:40 PM
Then load it mate. make sure you have it installed correctly. what os are you using? if its centOS then try this http://www.sohailriaz.com/how-to-install-memcached-with-memcache-php-extension-on-centos-5x/
[root@ks996628 ~]# ps auwx | grep memcache
root      9969  0.0  0.0  61244   676 pts/2    S+   23:01   0:00 grep memcache
nobody   14676  0.0  0.0 189568   612 ?        Ssl  20:48   0:00 memcached -d -u                                                                              nobody -m 1024 -l 127.0.0.1 -p 11000
[root@ks9996628 ~]#

this is what i get in root ssh
Many thax for everyone help with this ive done 57 install of it and 57 new os put on it and 57 reinstalls of the v2 And still same, Many thax from all here in this forum but its time to fined something that will work without the Memcache , i would have like this v2 as it is its a no no with my host Many thax one and all here at U-232
Or there a way if a very good coder can put this on for me As i have the 2v ready to go on host again. pm me please ill give you my msn

Mindless

Cant be far away, im no expert with Cent os but it looks like the memcache server is installed only part you are missing is the php extension, but wait for swizzles to reply : )

john

Quote from: MrRep on November 16, 2011, 08:56:40 PM
Then load it mate. make sure you have it installed correctly. what os are you using? if its centOS then try this http://www.sohailriaz.com/how-to-install-memcached-with-memcache-php-extension-on-centos-5x/
[root@ks996628 ~]# ps auwx | grep memcache
root      9969  0.0  0.0  61244   676 pts/2    S+   23:01   0:00 grep memcache
nobody   14676  0.0  0.0 189568   612 ?        Ssl  20:48   0:00 memcached -d -u                                                                              nobody -m 1024 -l 127.0.0.1 -p 11000
[root@ks9996628 ~]#

this is what i get in root ssh

swizzles

 :) Hi John I see you have been having some real problems with the installs. Can you tell me what you get in root when you type this:

ps auwx | grep memcache

assuming you are using a linux server, and tell us what you get

oops posted at same time

MrRep

Then load it mate. make sure you have it installed correctly. what os are you using? if its centOS then try this http://www.sohailriaz.com/how-to-install-memcached-with-memcache-php-extension-on-centos-5x/

john

"Memcache Extension not loaded." its hed over 10 installs and still says "Memcache Extension not loaded."