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

Go Back   LiteSpeed Support Forums > External Applications > PHP > Yet another try to install APC

Reply
 
Thread Tools Display Modes
  #1  
Old 09-21-2006, 12:05 PM
weird weird is offline
New Member
 
Join Date: Sep 2006
Posts: 7
Cool Yet another try to install APC

According Wiki I compile lsphp with options:
./configure --prefix=/opt/php5 --with-litespeed --with-config-file-path=../conf --enable-magic-quotes --with-zlib --with-gd=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --with-mysql=/usr --with-imap=/usr --with-kerberos --with-imap-ssl

Then copy sapi/litespeed/php to /opt/lsws/fcgi-bin/lsphp.
It works fine. I see phpinfo().

Also, I do make; make install to copy php-related files to /opt/php5.

Again, according Wiki I compile APC:
skrepka:/tmp/APC-3.0.11# /opt/php5/bin/phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20050922
Zend Extension Api No: 220051025

skrepka:/tmp/APC-3.0.11# ./configure --enable-apc --with-php-config=/opt/php5/bin/php-config
...

skrepka:/tmp/APC-3.0.11# make
...

skrepka:/tmp/APC-3.0.11# make install
Installing shared extensions: /opt/php5/lib/php/extensions/no-debug-non-zts-20050922/

Modify /opt/lsws/conf/php.ini:

extension=apc.so
include_path = ./:/opt/php5
;extension_dir = ./

Not work! Error 503. Why?
Reply With Quote
  #2  
Old 09-21-2006, 12:56 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Got anything in lsws/logs/stderr.log?
Reply With Quote
  #3  
Old 09-21-2006, 01:03 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
I think php may not able to locate apc.so.

What I would do is to copy apc.so to lsws/lib, then change /opt/lsws/conf/php.ini to

extension=../lib/apc.so
Reply With Quote
  #4  
Old 09-21-2006, 01:21 PM
weird weird is offline
New Member
 
Join Date: Sep 2006
Posts: 7
I just copy apc.so to /opt/lsws/lib, and write

extension_dir = /opt/lsws/lib
extension = apc.so

Now in phpinfo() I see correct apc section. Thanks
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 04:02 PM.



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