php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58848 APC fails to build/install correctly (centos 5)
Submitted: 2009-09-02 08:05 UTC Modified: 2010-11-03 19:31 UTC
From: pal at elt dot ro Assigned:
Status: No Feedback Package: APC (PECL)
PHP Version: 5.1.6 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-09-02 08:05 UTC] pal at elt dot ro
Description:
------------
I have 2 servers each of them having the same distro (Centos 
5) on them, on the first one building and installing APC was 
done without any errors, on the second one there is 
something really wrong happening.

APC on first server works perfectly, on the second server :
 pear install pecl/apc
downloading APC-3.0.19.tar ...
Starting to download APC-3.0.19.tar (Unknown size)
..............done: 564,736 bytes
47 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
 1. Use apxs to set compile flags (if using APC with 
Apache)? : yes

1-1, 'all', 'abort', or Enter to continue: (enter pressed)

Build process completed successfully
Installing '/usr/local/lib/php/extensions/no-debug-non-zts-
20060613/apc.so'
install ok: channel://pecl.php.net/APC-3.0.19
configuration option "php_ini" is not set to php.ini 
location
You should add "extension=apc.so" to php.ini

ok, that dll isnt where is supposed to be, moving it in 
/usr/lib/php/modules/ and restarting httpd (having also 
apc.so marked as extension) will result in it complaining 
about not being able to load this module because there is an 
undefined symbol: rfc...

as a reference 
rpm -qi httpd on the first server where APC works 

Name        : httpd                        Relocations: (not 
relocatable)
Version     : 2.2.3                             Vendor: 
CentOS
Release     : 22.el5.centos.2               Build Date: Tue 
14 Jul 2009 01:08:15 PM EEST

rpm -qi http on the second server where APC do not work

Name        : httpd                        Relocations: (not 
relocatable)
Version     : 2.2.3                             Vendor: 
CentOS
Release     : 22.el5.centos.2               Build Date: Tue 
14 Jul 2009 01:08:15         PM EEST

rpm -qi php on the first server (APC working)

Name        : php                          Relocations: (not 
relocatable)
Version     : 5.1.6                             Vendor: 
CentOS
Release     : 23.2.el5_3                    Build Date: Tue 
07 Apr 2009 03:04:02 PM EEST
Install Date: Mon 31 Aug 2009 06:53:13 PM EEST      Build 
Host: builder10.centos.org


rpm -qi php on the second server (APC failure)

Name        : php                          Relocations: (not 
relocatable)
Version     : 5.1.6                             Vendor: 
CentOS
Release     : 23.2.el5_3                    Build Date: Tue 
07 Apr 2009 03:04:02 PM EEST
Install Date: Mon 31 Aug 2009 06:53:13 PM EEST      Build 
Host: builder10.centos.org

live phpinfo (server where APC works) 
http://ns.elt.ro/kb3/pinfo.php
live phpinfo (server where APC fails to compile/install) 
http://games.elt.ro/pinfo.php

On the server where APC works (rpm -qi centos-release) : 
Name        : centos-release               Relocations: (not 
relocatable)
Version     : 5                                 Vendor: 
CentOS
Release     : 2.el5.centos                  Build Date: Thu 
19 Jun 2008 04:48:51 PM EEST
Install Date: Mon 04 Aug 2008 02:02:52 PM EEST      Build 
Host: builder16.centos.org

On the server where APC DO NOT work (rpm -qi centos-release) 
: 
Name        : centos-release               Relocations: (not 
relocatable)
Version     : 5                                 Vendor: 
CentOS
Release     : 3.el5.centos.1                Build Date: Tue 
17 Mar 2009 03:30:13 AM EET
Install Date: Mon 31 Aug 2009 09:46:30 PM EEST      Build 
Host: chamkaur.karan.org


Reproduce code:
---------------
Nothing changed in APC build scrips/code

Actual result:
--------------
failure to install properly in the right location

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-09-03 23:37 UTC] gopalv82 at yahoo dot com
What configure flags are you building this with?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 20:01:28 2024 UTC