Lost apc.so - how to get it back for php4 only?

Author Message

Daniele Gubert

Monday 28 January 2008 8:27:22 pm

Everything had been worked perfectly with APC and eZ Publish 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 eZ Publish a cache again?

Regards, :DTM.

Daniele Gubert

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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 11:36:15
Script start
Timing: Jan 18 2025 11:36:15
Module start 'layout'
Timing: Jan 18 2025 11:36:15
Module start 'content'
Timing: Jan 18 2025 11:36:16
Module end 'content'
Timing: Jan 18 2025 11:36:16
Script end

Main resources:

Total runtime0.5843 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 589.2969152.6563
Module start 'layout' 0.00580.0043 741.953139.5078
Module start 'content' 0.01010.5721 781.4609427.7656
Module end 'content' 0.58210.0021 1,209.22668.1094
Script end 0.5843  1,217.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.6086160.0002
Check MTime0.00130.2235160.0001
Mysql Total
Database connection0.00080.144110.0008
Mysqli_queries0.537892.0358520.0103
Looping result0.00050.0912500.0000
Template Total0.547093.620.2735
Template load0.00190.328620.0010
Template processing0.545193.283820.2725
Template load and register function0.00010.025510.0001
states
state_id_array0.00210.359210.0021
state_identifier_array0.00160.275720.0008
Override
Cache load0.00160.2723190.0001
Sytem overhead
Fetch class attribute can translate value0.00070.125610.0007
Fetch class attribute name0.00120.205420.0006
XML
Image XML parsing0.00030.054810.0003
class_abstraction
Instantiating content class attribute0.00000.001020.0000
General
dbfile0.00080.1354100.0001
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs