• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

[Tip] Use APC

Dodgeboard

Well-known member
I checked to see if APC is enabled on HostGator shared. It's not. I asked if they could enable it. NOPE. Have to upgrade to VPS or dedicated. I told them I didn't want to go to that extreme since so many HG customers are complaining about the speed. I asked them if their VPS/Dedicated was still slower than shared. He said "yes, because the shared servers are much more powerful machines than the other vps/dedicated solutions.

They told me that suPHP is used over APC for "security reasons."

I guess for now, while on HG, I'm out of luck.
 

wwwicked

Active member
For Debian ("lenny" 5.0.3), I followed the post here to install APC:

http://www.simplemachines.org/community/index.php?topic=354914.0

However, I encountered a problem. The default APC build failed. See http://pecl.php.net/bugs/bug.php?id=16078

Bug #16078 error: duplicate 'static' when building
Following the information on that page, I installed apc-beta. That seems to have gone OK, and phpinfo() is now reporting APC v3.1.4.

So, a quick overview of my debian sequence:

Code:
aptitude install php-pear
aptitude install php5-dev
aptitude install apache2-dev
pecl install apc
^ may fail. See http://pecl.php.net/bugs/bug.php?id=16078 If it does:

Code:
pecl install apc-beta
Add extension=apc.so to php.ini and restart Apache.
 

Shamil

Well-known member
XCache is supported via Zend caching, eAccelerator isn't. I've just published an interim of WinCache support, and will submit it to Zend for framework inclusion later today.
 

Shamil

Well-known member
Memcached is supported by Zend_Cache. So, XenForo may also support it.
Yes, XenForo supports it at Framework level. However, on a single server setup, I strongly suggest and advise that APC/WinCache or other op-code cache be used.
 

Trip

Active member
This didn't work out very well for me. I think I might have a conflict with my server configuration. With APC enabled, it produced only white pages.
 
F

Floris

Guest
gz = gzip
t in tgz = tar (normally .tar)

Making a tarball and gzipping it is common in the unix world.

a .tgz file = a tarball that's zipped up.

tar -zxf file.tgz will extract the file.
 

kuyenmotdivad

Well-known member
gz = gzip
t in tgz = tar (normally .tar)

Making a tarball and gzipping it is common in the unix world.

a .tgz file = a tarball that's zipped up.

tar -zxf file.tgz will extract the file.
How come then when I run this in SSH I only get a file called APC or am I running the wrong command

Code:
wget http://pecl.php.net/get/APC
 

g0rn

Well-known member
To make caching working on Beta 2 you have to also add this line to config.php:
PHP:
$config['cache']['enabled'] = true;
 
Top