![]() |
APC refuses to work on php 5.1.4
i was running php 4.4.2 with APC 3.0.10 and it was working ok
today i upgraded php to 5.1.14 and i just cannot get APC to work i tried compiling apc statically into the php binary also but it doesnt work there are no errors regarding this in the error_log also it is as if APC doesnt exist |
|
Please view our APC how-to wiki for PHP:
http://www.litespeedtech.com/community/wiki/ Based on your phpinfo, you either do not have the correct APC compiled for php 5.1.4 or it's installed into the wrong location. Follow our wiki for a perfect how-to. |
i did follow your wiki exactly, both for installation of php 5 and for installation of APC
earlier i had installed php 4.4.2 and APC also by following your wiki and faced no problems |
Quote:
|
Remove the current APC source directory. Re-download APC package and uncompress. And start the compilation from the beginning.
Looks like you compiled APC for PHP 4.4 and then used the same source directory for PHP 5. You usually can get away with this with "make clean" by removing all PHP 4.4 generated config files but most often than not, you run into problems if all files are not removed. |
Quote:
later i created a new directory and tried to install the latest version from cvs also, but same results |
Not sure what's going on with your setup. Hopefully other people can jump and help out.
The problem is not that you can't compile APC, it is that php.ini entries could be incorrect or that php is reading from the wrong php.ini so resulting in the fact it can't load/find the apc.so module. |
Try this
"php -c /myfullpath/php.ini -i" Run your php 5.1.4 binary and explicitely state the php.ini file path. Check the output for APC. |
root@webserver [/usr/local/lsws/fcgi-bin]# ./lsphp -c usr/local/lsws/conf/php.ini -i | less
i ran this and i can see APC :yahoo: does this mean that php running from the webserver is reading config from the wrong location? but as u can see, phpinfo shows Configuration File (php.ini) Path ../conf |
| All times are GMT -7. The time now is 07:03 AM. |