Re: mmcache and FC2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Di, den 23.11.2004 schrieb Alex Evonosky um 15:55:

> After using yum to install the php-mmcache, mmcache is not working..
> 
> from /etc/php.ini:
> 
> #extension="mmcache.so"
> #  mmcache.shm_size="16"
> #  mmcache.cache_dir="/tmp/mmcache"
> #  mmcache.enable="1"
> #  mmcache.optimizer="1"
> #  mmcache.check_mtime="1"
> #  mmcache.debug="0"
> #  mmcache.filter=""
> #  mmcache.shm_max="0"
> #  mmcache.shm_ttl="0"
> #  mmcache.shm_prune_period="0"
> #  mmcache.shm_only="0"
> #  mmcache.compress="1"
> 
> # zend_extension="/usr/lib/php4/mmcache.so"
> #  mmcache.shm_size="16"
> #  mmcache.cache_dir="/tmp/mmcache"
> #  mmcache.enable="1"
> #  mmcache.optimizer="1"
> #  mmcache.check_mtime="1"
> #  mmcache.debug="0"
> #  mmcache.filter=""
> #  mmcache.shm_max="0"
> #  mmcache.shm_ttl="0"
> #  mmcache.shm_prune_period="0"
> #  mmcache.shm_only="0"
> #  mmcache.compress="1"

Which one of the 2 versions would be active? The second - mmcache as
zend extension - is only valid. Is the mmcache.so file at it's place?

> Of course, I had to comment out the mmcache, since httpd would not start...

>  From the httpd error logs, all I get is the following:
> 
> PHP Fatal error:  [Turck MMCache] Turck MMCache 2.4.6 can not be loaded 
> twich in Unknown on line 0

> nothing else...  Is there something in httpd.conf that needs configured 
> as well?  All packages are stock from FC2 CD's and yum updates.

Turck MMCache is not coming with FC2. So where did you take it from? I
would recommend using the following FC2 build by freshrpms.net

http://yarrow.freshrpms.net/rpm.html?id=1101

> A

This configuration is running for me.

$ cat /etc/php.d/mmcache.ini
; Enable Turck MMCache extension module
zend_extension = /usr/lib/php4/mmcache.so
 
; Options to the MMCache module
mmcache.cache_dir = /var/cache/php-mmcache
mmcache.shm_size = 32
mmcache.enable = 1
mmcache.optimizer = 1
mmcache.check_mtime = 1
mmcache.debug = 0
mmcache.filter = ""
mmcache.shm_max = 0
mmcache.shm_ttl = 0
mmcache.shm_prune_period = 0
mmcache.shm_only = 0
mmcache.compress = 1
mmcache.keys = shm
mmcache.sessions = shm
mmcache.content = shm
mmcache.admin.name="admin"
mmcache.admin.password="$1$veryverysecretmd5hash."

Be aware that MMCache has a bug so that you need to empty the disk cache
each time you restart Apache2. I did add a line both to the init script
as well the apachectl script.

Alexander


-- 
Alexander Dalloz | Enger, Germany | new address - new key: 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora GNU/Linux Core 2 (Tettnang) on Athlon kernel 2.6.9-1.6_FC2smp 
Serendipity 18:43:47 up 3 days, 13:31, load average: 0.23, 0.29, 0.27 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux