APC accelerator for PHP for only one site?
6 Replies
You can have multiple sites all sharing the same APC pool. This raises potential security issues, though, so I wouldn't recommend it if you have untrusted scripts (web hosting customers) on your server.
Or you can give each site its own APC pool, using FastCGI. This of course can take up more memory than having a shared pool.
Can i enable and disable APC anytime? I mean, i want to test a site script with and without APC just to check speed.
If you're using Debian or Ubuntu and if you installed APC using apt-get, you can disable APC by opening /etc/php5/conf.d/apc.ini in your editor and commenting out the first and only line. (Prepend a semicolon to comment it out.) Then restart Apache.
But, thanks i will take a look.