Re: Easyapache and memcached
Memcached is a high-performance, distributed memory object caching system, generic in Nature, Purpose Intended for use in speeding up dynamic web applications by alleviating database load. So basically, memcached is a caching system that stores data in RAM for speed. We therefore run a daemon on our server, you connect it (tcp) and sends and / or requests data, it is extremely simple. It should however keep in mind that data stored in shared memory are lost during a reboot, it will be intelligent and there will not anything. The ideal is to use as an adjunct to other caching system (file system) and store only data.
Re: Easyapache and memcached
If you need to install and configure memcache
You can download from their official site
or uses apt-get
Code:
example @: ~ $ sudo apt-get install memcached
Edit / etc / memcached.conf modifies the ip and port to listen, and the memory allocated if necessary (it is also recommended that a specific user to start the daemon).
Lance memcached using the following command line:
Code:
example @: ~ $ sudo / etc / init.d / memcached start
Check that everything went well, no errors were logged (log file by default: / var / log / memcached).
Re: Easyapache and memcached
Memcached is a cache server that uses the RAM on the server to store its data. This storage mode guarantees fast reading well below the traditional system cd cache files.
Memcached and eAccelerator can work together without any problem.
- Memcached caches the results and variables php.
- eAccelerator optimize PHP code.
Prerequisites:
- libevent
- libevent-dev
Re: Easyapache and memcached
I would like to install the memcache PHP extension local to xampp. I use Windows as the operating system Vista SP1. There is indeed a good guide on the internet - but for Linux. Since I use Windows, I probably perform entirely different steps. And one more question: Do I need an extra or memcache daemon is installed with the PHP extension with?
Re: Easyapache and memcached
Have you deleted in c: / xampp / apache / bin / php.ini not just use the comment character '#' before the entry
Code:
extension = php_memcache.dll
Apache and test new star? php_memcache.dll is located in the ext folder in php, it is very simple. Also you can find the help file in the directory and the installation process are provided there.
Re: Easyapache and memcached
CMD command under Windows Memcache must not install, then run.
Code:
path \ to \ install-d memcached.exe
Code:
path \ to \ memcached.exe-d start
Stop with it:
Code:
path \ to \ memcached.exe d-stop
In php.ini must also be enabled Memcache:
Code:
[Memcache]
extension = php_memcache.dll
memcache.allow_failover = 1
memcache.max_failover_attempts = 20
memcache.chunk_size = 8192
memcache.default_port = 11 211
"Extension = php_memcahce.dll" stand with me not even in it in php.ini, but must drinstehn To even work out. But working without memcached.exe of me at all.