php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36848 Cannot start Apache: libphp5.so is garbled
Submitted: 2006-03-24 16:56 UTC Modified: 2006-03-28 17:59 UTC
From: jtaylor at qrsdc dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.1.2 OS: Redhat 9
Private report: No CVE-ID: None
 [2006-03-24 16:56 UTC] jtaylor at qrsdc dot com
Description:
------------
I'm running Apache 2.2.0 on a Redhat 9 system and I am trying to install PHP 5.1.2. Before doing a make install for PHP Apache was working flawlessly; however, after installing PHP as an Apache DSO I get the following error message when I try to restart Apache:

Syntax error on line 53 of /etc/httpd/conf/httpd.conf:
API module structure `php5_module' in file /etc/httpd/modules/libphp5.so is garbled - perhaps this is not an Apache module DSO?

I have tried re-compiling PHP with several different options, none of which produce different results. 

Expected result:
----------------
Normal Apache operation.

Actual result:
--------------
Syntax error on line 53 of /etc/httpd/conf/httpd.conf:
API module structure `php5_module' in file /etc/httpd/modules/libphp5.so is garbled - perhaps this is not an Apache module DSO?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-24 22:46 UTC] tony2001@php.net
What was your ./configure line?
 [2006-03-24 23:06 UTC] jtaylor at qrsdc dot com
./configure --with-apxs2=/etc/httpd/bin/apxs --with-mssql=/usr/local/freetds --enable-libxml --with-mysql --with-iconv=/usr/local --with-gd --with-zlib --enable-ftp --with-pdflib
 [2006-03-24 23:09 UTC] tony2001@php.net
Remove everything except for --with-apxs2 and try again.
 [2006-03-28 17:51 UTC] jtaylor at qrsdc dot com
Adding the line /usr/local/lib to /etc/ld.so seems to have fixed the problem.
 [2006-03-28 17:59 UTC] tony2001@php.net
No bug -> bogus.
 [2012-11-13 19:05 UTC] vine93 at yahoo dot com
Hi 

I had tomcat apache 2.2.20 , php 5.2.17, AIX 5.3.
I upgraded AIX 5.3 to 6.1 and apache is not starting . Giving error "cannot load module libphp5.so. Can not load libxpm.a, libgd.a

Any help would be greatly appreciated
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 08 08:01:29 2024 UTC