Hello,

I have following question, how can I examine on a shared host if the PHP APC is enabled or not ?

If APC is compiled and installed as DSO, then there is an entry in php.ini
extension="apc.so"
and I can see it in phpinfo() output if it's enabled or not.

But how does it work if APC is statically compiled into PHP ?
Can I see it anyway in phpinfo output ?

If not, how else can I examine it ?
On shared host I have only FTP access and of cource PHP
But I don't have ssh access.

Regards

Comments

dnewkerk’s picture

What may work is to grab a copy of apc.php from the source download here: http://pecl.php.net/package/APC
Upload it to the root of your website's folder and open it. If APC is installed/working, it should display a graph and statistics about your APC cache. If APC is not installed or working correctly, it will instead display a message "No cache info available. APC does not appear to be running."

Edit: forgot to mention... if your host does not agree to give you SSH access, I recommend leaving them (any decent host will give you SSH access upon request). If you find they are not running a PHP cache, I recommend leaving them for that reason as well. Make sure they are also running PHP 5.2+ and MySQL 5, or leave them for that reason as well.

-- David
davidnewkerk.com | absolutecross.com
View my Drupal lessons & guides

rotax42’s picture

Thanks for Your hints,

Yes indeed the APC cache wasn't installed :(

After the host installed it, the application became two times so quick as before :)

I'm asking them now about the SSH access.
Im waiting for the response.

Now I have another issue.
I take the times using devel module.
Something I don't understand or expected happens.
From some comupters the times are significant shorter than from others.
I think it has something to do with the speed of internet connection,
but I don't understand why it is so. I open another topic for it.

Regards