Forums / Install & configuration / Lost apc.so - how to get it back for php4 only?
Daniele Gubert
Monday 28 January 2008 8:27:22 pm
Everything had been worked perfectly with APC and Exponential on my Debian Etch amd64 until I issued:
pecl upgrade apc
which upgraded to APC-3.0.16 and created a new library in/usr/lib/php5/20060613/apc.so
and replaced the previous/usr/lib/php4/20050606/apc.so [APC-3.0.14 - shoot, I don't have a backup...]
The problem must be that I installed php5 [cgi] after php4 and apc...
If I move the new apc.so to the correct extension_dir, Apache2 can't load it and says:
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/20050606/apc.so' - /usr/lib/php4/20050606/apc.so: undefined symbol: zend_opcode_handlers in Unknown on line 0
How can I recompile apc for just PHP/4.4.4-8+etch4 and give Exponential a cache again?
Regards, :DTM.
Tuesday 29 January 2008 3:40:49 pm
Quite simple indeed... remove php5, compile APC for php4, reinstall php5...
pecl uninstall apc aptitude remove php5-cgi aptitude remove php5-dev php5-mysql php5-gd php5-mcrypt pecl install apc aptitude install php5-cgi aptitude install php5-dev php5-mysql php5-gd php5-mcrypt
Is there a better solution [maybe a conf. switch to compile for either php4 or php5, or both]?
Good nite, :DTM.