First of all, I don’t know if I should post this threat in ‘Server Management’.
But, I’m sitting here, with a newly installed dedicated server, where I hired a server administrator to set it up. It’s running suPHP, WHM/cPanel… and APC… Because I really wanted the caching of APC.
Then later I saw, that APC doesn’t work on suPHP… Is this true? Or is it fixed lately? Because the threads I found was from 2009. If it isn’t supported… How easy is it then from going from suPHP over to FastCGI? Which supports it, and have almost same security as suPHP?
I don’t know much about server setup, but still I would really like if I could get APC working, (if it doesn’t work already) How to test?
And how easy it would be to change to FastCGI… what gains and looses I would get? Mainly I’m hosting wordpress and Joomla sites on my server.
Take a look at the output of apc.php that comes with APC to see if it’s doing anything. If you can’t find it send me a PM with your email address and I can email it to you if you wish.
The only file it caches is the apc.php file itself… I can’t see any other files that is cached Running wordpress, and have W3 Total Cache enabled… which is using Page Caching… that is set to APC in the little Select-box thing.
In that case I’d say it’s not working and you should indeed consider switching to something else like fastcgi. I personally don’t have any experience with this (I just run cgi on my server – which probably isn’t the mechanism out there, but it works for me), so I’m afraid I can’t help you any further here. But maybe someone else can?
As well as APC, there are a few other alternatives - xcache and eaccelerator - they all do similar tasks with regards to caching PHP.
I can see why there would be a limitation of suPHP and a opcode cacher however. I think it may be to do with how suphp runs not really allowing apc to function globally the same. Opcode caching works on persistent PHP instances, I believe (though I’m not certain here) suPHP starts and stops PHP as its needed, rather than keeping it running for every user on your system. Normal PHP will be persistent and always running, so it will function. Fast CGI also does this.
I think you would be best changing from suPHP to a fast-cgi based solution if you require opcode caching and the security from suphp or similar.
Yeah, I’ve been looking into xCache and eAccelerator too, but I think suPHP doesn’t support any of them… And yeah, it’s because suPHP ‘stops’ php… Where fastcgi etc let the process running on the server, which also makes fastCGI faster than suPHP, but as soon as I get really need the use of APC, I will get fastCGI instead of suPHP, at the moment, my current sites ain’t that much visited, so performance, and load isn’t a problem, my site loads in around 0.46second, for the whole site, without caching in browser.
I’d say its possibly wise to look at the tweaks to the server setup now then, before you are busy - i run a load of servers and know its very hard to get time on some of them to actually make major adjustments to the web server setup
Scheduling it around various clients and their user of the servers
Yeah, maybe it would be a good thing to do now, but my budget is pretty low at the moment, still a student, so just having that dedicated server really hurts, but starting a business, or trying to, so I don’t know how it will scale, and then I like that I don’t have any limitations, so I can like… if I use much power of a server, I know it’s only me on the server, so I can control anything.
My range of customers, is a very small one, which only browse their websites, between 6am and 9pm or so, rest of the time it’s inactive, which is good… Then having a server administrator from US, when I’m from europe myself, is that she works, when my customers sleep.
So I will take contact to her as soon as possible, when I have budget to it, because I can’t wait too long!