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

Go Back   LiteSpeed Support Forums > External Applications > PHP > APC refuses to work on php 5.1.4

Reply
 
Thread Tools Display Modes
  #11  
Old 07-25-2006, 12:34 PM
amcd amcd is offline
Member
 
Join Date: Jul 2006
Posts: 17
i changed the command in external app configuration and apc is now working as confirmed by apc.php

but my phpinfo doesnt load anymore
Reply With Quote
  #12  
Old 07-25-2006, 12:38 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Now that we have isolated the problem.

The php binary is compiled to read php.ini from "../conf". Which means is that if lsphp is located in /lsws/fcgi-bin/lsphp then the correct php.ini it reads must be in /lsws/conf/php.ini. In addition, you should not use any relative paths in php.ini.
Reply With Quote
  #13  
Old 07-25-2006, 01:06 PM
amcd amcd is offline
Member
 
Join Date: Jul 2006
Posts: 17
what you are saying is right, but somehow it is not happening

if i add "-c /fullpath/php.ini" to the command in external app config then apc runs, my site runs, but phpinfo doesnt work

if i remove that path then apc doesnt work
Reply With Quote
  #14  
Old 07-25-2006, 01:10 PM
amcd amcd is offline
Member
 
Join Date: Jul 2006
Posts: 17
ok, i solved the phpinfo problem

the php5 ini had short open tag off by default - i switched that on and phpinfo works

but why should i have to explicitly specify the ini location with a -c switch? that is still a mystery to me
Reply With Quote
  #15  
Old 07-25-2006, 01:21 PM
amcd amcd is offline
Member
 
Join Date: Jul 2006
Posts: 17
my forums were showing multiple errors with that php.ini

i created a new php.ini in the fcgi-bin directory with only 1 line
extension=apc.so

i figured that if my site runs fine, but only with high load without the ini file, why should i load a huge ini file and complicate things?

now lsphp loads the ini without any '-c' switch (as it looks in current directory first) and everything looks good for the time being
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
replacing system php felosi PHP 3 07-16-2007 11:23 PM
Cannot get PHP and RoR to work together casey Install/Configuration 1 07-13-2007 09:51 PM
PHP curl HTTPS does not work in chroot sofatime PHP 3 05-15-2007 05:51 AM
setup php in rails template cswilliams Install/Configuration 2 01-25-2007 08:21 AM
PHP Accelerators for PHP 5.1.4 ? Arkadius PHP 3 07-24-2006 06:11 PM


All times are GMT -7. The time now is 07:51 AM.



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