php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #68359 Apache 2.4 Can't locate API module structure `php5_module' in libphp5.so
Submitted: 2014-11-06 02:36 UTC Modified: 2018-09-05 15:37 UTC
Votes:11
Avg. Score:4.7 ± 0.6
Reproduced:10 of 11 (90.9%)
Same Version:7 (70.0%)
Same OS:4 (40.0%)
From: ebrahim at imami dot net Assigned: cmb (profile)
Status: Closed Package: Apache related
PHP Version: 5.6.2 OS: CentOS 6.5
Private report: No CVE-ID: None
 [2014-11-06 02:36 UTC] ebrahim at imami dot net
Description:
------------
I have installed Apache 2.4.10 on CentOS 6.5
and also PHP 5.6.2

when I add LoadModule /usr/lib/libphp5.so in httpd.conf
and restart service , I get following error:

... /etc/httpd/conf/httpd.conf: Can't locate API module structure `php5_module' in file /usr/lib/libphp5.so: /usr/lib/libphp5.so: undefined symbol: php5_module




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-06-04 16:30 UTC] vz at shsa dot ru
I've installed php
php -v
PHP 5.6.9 (cli) (built: Jun  4 2015 18:53:50)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies

 uname -a
FreeBSD some.domain 8.4-STABLE FreeBSD 8.4-STABLE

in the httpd.conf there is 
LoadModule php5_module        /usr/local/lib/libphp5.so

When I try to apachectl start
Performing sanity check on apache22 configuration:
httpd: Syntax error on line 107 of /usr/local/etc/apache22/httpd.conf: Can't locate API module structure `php5_module' in file /usr/local/lib/libphp5.so: Undefined symbol "php5_module"
Starting apache22.
httpd: Syntax error on line 107 of /usr/local/etc/apache22/httpd.conf: Can't locate API module structure `php5_module' in file /usr/local/lib/libphp5.so: Undefined symbol "php5_module"
/usr/local/etc/rc.d/apache22: WARNING: failed to start apache22

What to do?
 [2018-09-05 15:37 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2018-09-05 15:37 UTC] cmb@php.net
Note that this is a bug tracker, not a support forum.  If you
think some behavior is a bug, choose “Bug” as bug type.

Anyhow, since PHP 5 is out of active support, I'm closing this
ticket.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 05:01:30 2024 UTC