Some important Questions

2003-03-28
2003-04-17
  • Henry Stein

    Henry Stein - 2003-03-28

    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?

    Best Regards,
    snoopstyle

     
    • Dmitry Stogov

      Dmitry Stogov - 2003-03-28

      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.

      Thanks. Dmitry.

       
    • Henry Stein

      Henry Stein - 2003-03-28

      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"?

       
      • Dmitry Stogov

        Dmitry Stogov - 2003-03-28

        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.

         
      • Dmitry Stogov

        Dmitry Stogov - 2003-03-28

        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).

         
    • Henry Stein

      Henry Stein - 2003-04-11

      could it be that mmcache doesn't works with mm 1.3.0 or have I make a mistake ?

       
      • Dmitry Stogov

        Dmitry Stogov - 2003-04-14

        I think you made a mistake.
        I tested MMCache with MM 1.3.0 and all worked fine.

         
    • Henry Stein

      Henry Stein - 2003-04-16

      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?

       
      • Dmitry Stogov

        Dmitry Stogov - 2003-04-17

        I didn't understend your question. Do you ask me about libmm or mmcache?

         
    • Henry Stein

      Henry Stein - 2003-04-16

      I had this error in the logs:
      libmm.so.11: cannot open shared object file: No such file or directory

       
      • Dmitry Stogov

        Dmitry Stogov - 2003-04-17

        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. :)

         
    • Henry Stein

      Henry Stein - 2003-04-17

      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 :/

       
      • Dmitry Stogov

        Dmitry Stogov - 2003-04-17

        You can compile and install new libmm into "/usr/local" and change link "/usr/lib/libmm.so.11" to it.

        # ln -s /usr/local/lib/libmm.so /usr/lib/libmm.so.11

        You shouldn't delete old RPM version.

         
    • Henry Stein

      Henry Stein - 2003-04-17

      thank you, the link made it ;)

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks