LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > Apc

Reply
 
Thread Tools Display Modes
  #1  
Old 10-05-2008, 11:20 PM
shadowteller shadowteller is offline
New Member
 
Join Date: Oct 2008
Posts: 3
Default 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.
Reply With Quote
  #2  
Old 10-06-2008, 08:40 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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.
Reply With Quote
  #3  
Old 10-06-2008, 03:59 PM
shadowteller shadowteller is offline
New Member
 
Join Date: Oct 2008
Posts: 3
Default Thank for the quick reply --- but

Quote:
Originally Posted by mistwang View Post
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.
Reply With Quote
  #4  
Old 10-07-2008, 06:33 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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.
Reply With Quote
  #5  
Old 10-07-2008, 07:29 AM
shadowteller shadowteller is offline
New Member
 
Join Date: Oct 2008
Posts: 3
Default 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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:12 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.