LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   PHP (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=19)
-   -   Apc (http://www.litespeedtech.com/support/forum/showthread.php?t=2359)

shadowteller 10-05-2008 11:20 PM

Apc
 
So I followed this Wiki entry and --enable-apc shows in my phpinfo file. However if I run APC.php it says that APC is not running. Please help.

mistwang 10-06-2008 08:40 AM

If there is a section for APC in your phpinfo page, APC has been loaded. If not, you need to check your php.ini to make sure to load apc.so properly.

shadowteller 10-06-2008 03:59 PM

Thank for the quick reply --- but
 
Quote:

Originally Posted by mistwang (Post 11882)
If there is a section for APC in your phpinfo page, APC has been loaded. If not, you need to check your php.ini to make sure to load apc.so properly.


There is no section in my phpinfo.

; Directory in which the loadable extensions (modules) reside.
extension_dir = /lsphp5/lib/php/extensions/no-debug-non-zts-20060613/

that directory contains apc.so and suhosin.so

I also have another three lines later on in the php.ini

[APC]
apc.shm_size = 32
include_path = "/home/web/php/lsphp5"

Yet I still can not see what is going on and why APC won't fireup.

mistwang 10-07-2008 06:33 AM

do you have "extension=apc.so" in php.ini?

Run

/opt/lsws/fcgi-bin/lsphp5 -i

from command line see if there is any error at the beginning.

shadowteller 10-07-2008 07:29 AM

That did it
 
Thank you so much...now I feel so silly. That did the trick.

I was assuming that line was not needed like suhosin.so is not needed because of this entry:

; Directory in which the loadable extensions (modules) reside.
extension_dir = /lsphp5/lib/php/extensions/no-debug-non-zts-20060613/

Thank you for correcting me. Someitme it takes a second set of eyes.


All times are GMT -7. The time now is 01:27 AM.