Obsolete Releases > SME 8.x Contribs
Need help with memcached
newburns:
--- Code: --- memcached i386 1.4.5-1.el5 epel 71 k
Installing for dependencies:
libevent i386 1.4.13-1 smecontribs 112 k
--- End code ---
--- Code: ---yum install --enablerepo=smecontribs --enablerepo=sme7contribs --enablerepo=dag --enablerepo=fws --enablerepo=epel php-pecl-memcache
--- End code ---
--- Code: -----> Finished Dependency Resolution
php-pecl-memcache-2.2.6-1.el5.i386 from epel has depsolving problems
--> Missing Dependency: php-zend-abi = 20050922 is needed by package php-pecl-memcache-2.2.6-1.el5.i386 (epel)
Error: Missing Dependency: php-zend-abi = 20050922 is needed by package php-pecl-memcache-2.2.6-1.el5.i386 (epel)
--- End code ---
Memcache seems to be installed as the config file is present in /etc/sysconfig/memcache, however, I am not sure how to start the service, or even if it is useful without the php client/extension being that I want to use it for most of my cache for websites
newburns:
Felt adventurous.
A webapp asked me if I had memcached, and I said "If I don't, I should"! :grin: So......
1. Installed through yum : gcc
2. Installed through yu,: zlib-devel
3. Compiled libmemcached
4. Tried to make && make install, but version of gcc won't properly compile libmemcahed (according to reviewers)
I have stopped trying to get this to go through, and would like to take another approach. What is necessary to compile everything on Centos so that I am left with an installable .rpm for SME?
http://www.bxtra.net/articles/2011-03-22/how-to-install-memcached-on-centos-memcached-pecl-update-20110322
newburns:
--- Code: ---chmod 755 /etc/rc.d/init.d/tomcat
ln -s /etc/rc.d/init.d/memcached /etc/rc.d/rc7.d/S97memcached
ln -s /etc/rc.d/init.d/memcached /etc/rc.d/rc6.d/K02memcached
ln -s /etc/rc.d/init.d/memcached /etc/rc.d/rc2.d/K02memcached
ln -s /etc/rc.d/init.d/memcached /etc/rc.d/rc1.d/K02memcached
ln -s /etc/rc.d/init.d/memcached /etc/rc.d/rc0.d/K02memcached
--- End code ---
Found out I never started the service!
Now you can either
--- Code: ---/etc/rc.d/init.d/memcached start
--- End code ---
or you can
--- Code: ---service memcached status
--- End code ---
newburns:
Okay.
Install memcached from the Epel Repo
--- Code: ---yum install --enablerepo=smecontribs --enablerepo=sme7contribs --enablerepo=dag --enablerepo=fws --enablerepo=epel memcached
--- End code ---
Start the service and make it a part of auto startup
--- Code: ---chmod 755 /etc/rc.d/init.d/tomcat
ln -s /etc/rc.d/init.d/memcached /etc/rc.d/rc7.d/S97memcached
ln -s /etc/rc.d/init.d/memcached /etc/rc.d/rc6.d/K02memcached
ln -s /etc/rc.d/init.d/memcached /etc/rc.d/rc2.d/K02memcached
ln -s /etc/rc.d/init.d/memcached /etc/rc.d/rc1.d/K02memcached
ln -s /etc/rc.d/init.d/memcached /etc/rc.d/rc0.d/K02memcached
--- End code ---
--- Code: ---service memcached start
--- End code ---
Install gcc and zlib-devel
--- Code: ---yum install --enablerepo=smecontribs --enablerepo=sme7contribs --enablerepo=dag --enablerepo=fws --enablerepo=epel zlib-devel gcc
--- End code ---
Then enable the PECL extension to interact with PHP
--- Code: ---pecl install memcache
--- End code ---
Everything should compile properly
Create a directory
--- Code: ---mkdir /etc/e-smith/templates-custom/etc/php.ini
--- End code ---
Unless you already have that directory, then create a new file
--- Code: ---nano -w 92memcache
--- End code ---
Inside the file copy and paste
--- Code: ---extension=memcache.so
--- End code ---
Now expand and restart
--- Code: ---expand-template /etc/php.ini
/etc/init.d/httpd-e-smith restart
--- End code ---
Go to Wordpress, and look in your Cache plugin to see the newly available "Memcache".
I was trying to go with eAccelerator, but it seemed more complicated than this way. Anything is better than basic disk caching, so I'm happy.
Please try these instructions, and let me know if it works. I will put into a page if all goes well
newburns:
Turns out Memcache is slower than Disk Caching, however, should I add this to the Wiki?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version