I am very inspired of Turck MMCache and I think it is one of the best PHP accelerators. Here are my urgent Questions:
1. Must I compile PHP with-mm or only install the MM shared memory library?
2. Can I use the newest version of mm (1.3.0) instead of 1.1.3?
3. I created the cache directory in /tmp/mmcache with chmod 0777 but why is the directory always empty?
4. How and/or when is the cache set to reinitialise?
5. What is the difference between clear und prunge?
1. You shouldn't recompile PHP. You should only install mmlib.
2. You can try. I think it will work.
3. The files will put into this directory only if there is no available shared memory. If you like to see it, set mmcache.shm_size=1.
4. Cached scripts can be deleted from cache with "Clear" command or if source script was modified.
5. "Clear" - deletes all cached files. Files which are used by other HTTPD process/threads are moved to "Removed Scripts" and they will be deleted on request shutdowns.
"Purge" - deletes all removed files.
Do I have to make daily/weekly maintenance if the cache is full etc. or everything is regulated automatically?
Must I every time the source script modified clear the cache manually altough the mmcache.check_mtime is set to "1"?
If the shared memory cache is full all new files will be cached on disk. So you don't have to make any daily/... maintenance.
If mmcache.check_mtime is set to "1" and some cached script is changed then old cached script will be removed from cache, modified script will be compiled and stored. So you don't have to make any maintenance too.
If mmcache.check_mtime is set to "0" and some cached script is changed then you have to clear cache manually (in current version 2.3.8).
could it be that mmcache doesn't works with mm 1.3.0 or have I make a mistake ?
I think you made a mistake.
I tested MMCache with MM 1.3.0 and all worked fine.
how can I replace the RPM version by a SOURCE version? at the moment the files lie on /usr/lib/ must I compile it this way: $ ./configure --prefix=/usr/ or I make it completely wrong?
I didn't understend your question. Do you ask me about libmm or mmcache?
I had this error in the logs:
libmm.so.11: cannot open shared object file: No such file or directory
It is because PHP or MMCache was compiled with old version of MM. The simplest way to fix it - create a symbolyc link.
# ln -s /usr/local/lib/libmm.so /usr/lib/libmm.so.11
Also you can try to recompale PHP. :)
I want to upgrade libmm, from 1.1.3 to 1.3.0
but 1.1.3 was rpm and 1.3.0 is tar.gz and I don't know how to compile a working version of 1.3.0 :/
You can compile and install new libmm into "/usr/local" and change link "/usr/lib/libmm.so.11" to it.
You shouldn't delete old RPM version.
thank you, the link made it ;)
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.