mmcache and FC2
Alexander Dalloz
ad+lists at uni-x.org
Tue Nov 23 17:43:53 UTC 2004
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20041123/bf56a741/attachment-0001.sig>
More information about the fedora-list
mailing list