thebo0

Registered
Oct 10, 2012
1
0
1
cPanel Access Level
Root Administrator
I have an out-standing ticket with cPanel support for this issue, but thought I would seek the views of the community whilst waiting for a response.

---

I'm trying to install and configure APC, in order to speed up a Magento shop.

I've installed the relevant extensions and APC is showing when I run "phpinfo()". However my pages are not being cached as required.

I've been told that I should run PHP with FastCGI (?). However when I go to "Service Configuration > Apache Configuration > PHP and SuExec" there are no options within the drop-down boxes. I've uploaded a screen-shot to further demonstrate my problem: http://oi46.tinypic.com/inhimb.jpg

Any help would be greatly appreciated.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
Hello :)

Could you post the ticket number so we can review the ticket and update this thread with the solution?

Thank you.
 

LeadDogGraphics

Well-Known Member
Feb 25, 2012
97
1
58
West Palm Beach, FL
cPanel Access Level
Root Administrator
WHM does not support FastCGI by default. You only get FCGI, which is similar but NOT the same. Google has a giant list of blog articles all over about the differences. APC is best used with mod_ruid2 on WHM at this point, but be aware of the security concerns by using that setup.
 

ddeo

Active Member
Sep 4, 2007
38
0
56
WHM does not support FastCGI by default. You only get FCGI, which is similar but NOT the same. Google has a giant list of blog articles all over about the differences. APC is best used with mod_ruid2 on WHM at this point, but be aware of the security concerns by using that setup.
Is mod_ruid2 part of WHM? Is it better than DSO?

Thanks for your help. Dan
 

LeadDogGraphics

Well-Known Member
Feb 25, 2012
97
1
58
West Palm Beach, FL
cPanel Access Level
Root Administrator
mod_ruid2 is part of WHM, you have to disable any Apache MPM's for it to show up in Easy Apache.

There is a much better explanation than this somewhere, and I am sure someone can help me out here, but the basic idea is:
It is DSO, but it allows the Apache thread to dynamically change user to not run into permission issues. It works great for WordPress.

- - - Updated - - -

Also, if you try to use APC with FCGI, your temp file will blow up like a balloon and each process of apache will have it's own cache, which is not effective. There are a few tweaks and adjustments to tame the beast but it's not worth it.
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
23
143
Houston, TX
cPanel Access Level
Root Administrator
mod_ruid2 is not "part of WHM". It is an Apache httpd module. Apache httpd is separate from cPanel services, including the Webhost Manager. cPanel builds and configures Apache httpd, but they are not the same service and not directly related.

You can read about mod_ruid2 and how cPanel implements it here:

The mod_ruid2 Module