Yii Framework Forum: how to install apc & memcache on xampp ? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

how to install apc & memcache on xampp ? Rate Topic: -----

#1 User is offline   naser 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 85
  • Joined: 30-October 09
  • Location:tehran - Iran

Posted 30 October 2009 - 09:10 AM

hi,there

i'm using xampp for my web server and i wanna install apc & memcache extension on xampp

what should i do ? and is it important to install that extensions for using yii framework ?

sorry for my english :rolleyes:

tnx
0

#2 User is offline   dimis283 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 277
  • Joined: 24-January 09

Posted 30 October 2009 - 09:14 AM

memcache ,It is important only if you use cmemcache , apc for performance as I know.
Me I set up eaccelerator and as I saw my site where faster.
Dimis
Posted Image
0

#3 User is offline   naser 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 85
  • Joined: 30-October 09
  • Location:tehran - Iran

Posted 30 October 2009 - 09:30 AM

Quote

memcache ,It is important only if you use cmemcache , apc for performance as I know.
Me I set up eaccelerator and as I saw my site where faster.
Dimis

penny drops !

but how can i install apc & memcache on xampp ?
i'm using ubuntu 9.04 and xampp 1.7.1
0

#4 User is offline   dimis283 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 277
  • Joined: 24-January 09

Posted 30 October 2009 - 09:34 AM

Google drops also :)
http://www.google.gr...c+xampp&spell=1
Posted Image
0

#5 User is offline   naser 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 85
  • Joined: 30-October 09
  • Location:tehran - Iran

Posted 30 October 2009 - 10:53 AM

ok , tnx
i didn't get my answer

but, can i use eaccelerator extension instead of apc for performance ?

if yes, how ?

tnx
0

#6 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,016
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 30 October 2009 - 02:50 PM

Yes. Simply configure CEAcceleratorCache as your cache component in main.php.
0

#7 User is offline   naser 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 85
  • Joined: 30-October 09
  • Location:tehran - Iran

Posted 31 October 2009 - 03:38 AM

Quote

Yes. Simply configure CEAcceleratorCache as your cache component in main.php.


is it enough to load eAccelerator PHP extension and below configuration ?

array(
    ......
    'components'=>array(
        ......
        'cache'=>array(
            'class'=>'system.caching.CEAcceleratorCache',
        ),
    ),
);

0

#8 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,016
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 31 October 2009 - 06:28 AM

Yes, that should do it. That way you can easily change the cache technology just by using another component class. But actually i never used EAccelerator. Just give it a try...

(You shouldn't need the path prefix 'system.caching.', 'EAcceleratorCache' is enough.)
0

#9 User is offline   naser 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 85
  • Joined: 30-October 09
  • Location:tehran - Iran

Posted 31 October 2009 - 06:47 AM

View PostMike, on 31 October 2009 - 06:28 AM, said:

Yes, that should do it. That way you can easily change the cache technology just by using another component class. But actually i never used EAccelerator. Just give it a try...

(You shouldn't need the path prefix 'system.caching.', 'EAcceleratorCache' is enough.)


tnx, guys :rolleyes:
0

#10 User is offline   Michéal 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 24-May 10

Posted 24 May 2010 - 09:56 PM

Any idea where I can get a copy of CMemCache and CApcCache dlls?
I have googled to no avail...
0

#11 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,016
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 25 May 2010 - 02:10 AM

These classes are part of Yii. They are pure PHP, no dll involved. What you are looking for is probably the PHP extensions for memcached (php_memcache.dll) and APC (php_apc.dll). Not sure if they come with XAMPP. Check the installation, maybe you just missed to activate them.
0

#12 User is offline   Michéal 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 24-May 10

Posted 25 May 2010 - 03:33 PM

Thanks Mike, will recheck...

Update... Found them... wasn't straight forward, a lot of version out there... ;)
The php_memcache is working fine but the php_apc results in the following error:
client denied by server configuration... Did I missed some configuration?

As a matter of interest, all other test sites generate apc-error, or a time out error... I guess php_apc require some work... (other test sites no yii related).
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users