php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14351 problems installing PHP as a DSO
Submitted: 2001-12-05 12:08 UTC Modified: 2002-06-05 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: ana at turbogenomics dot com Assigned:
Status: No Feedback Package: Apache related
PHP Version: 4.0.6 OS: Linux RedHat-7.1
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2001-12-05 12:08 UTC] ana at turbogenomics dot com
I am running IBM_HTTP_SERVER/1.3.19 powered by Apache/1.3.20 and am having problems installing PHP as a loadable module of Apache. 

Method 1:

I installed php-4.0.4pl1-9.i386.rpm and copied  /usr/lib/apache/libphp4.so to the apache libexec directory.

I then edited the httpd.conf file by adding the following:
  LoadModule php4_module libexec/libphp4.so
  AddType application/x-httpd-php .php4 .php3 .phtml .php
When I try to restart the server, it cannot be started and I get the following message:

API module structure 'php4_module' in file ... is garbled - perhaps this is not an Apache module DSO? 

Method 2:
Compiling PHP source code and using apxs.

the Apache does allow for DSO loading
httpd -l lists
  http_core.c
  mod_so.c

./configure --prefix=/usr/local/php --with-apxs=/opt/IBMHTTPServer/bin/apxs
make

this ends with the following error:

make[3]: Entering directory `/tmp/php-4.0.6/sapi/apache'
/bin/sh /tmp/php-4.0.6/libtool --silent --mode=compile gcc  -I. -I/tmp/php-4.0.6/sapi/apache -I/tmp/php-4.0.6/main -I/tmp/php-4.0.6 -I/opt/IBMHTTPServer/include -I/tmp/php-4.0.6/Zend -I/tmp/php-4.0.6/ext/mysql/libmysql -I/tmp/php-4.0.6/ext/xml/expat/xmltok -I/tmp/php-4.0.6/ext/xml/expat/xmlparse -I/tmp/php-4.0.6/TSRM  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2  -c sapi_apache.c
In file included from /opt/IBMHTTPServer/include/ap_config.h:114,
                 from /opt/IBMHTTPServer/include/httpd.h:72,
                 from sapi_apache.c:32:
/opt/IBMHTTPServer/include/os.h:82:23: os-inline.c: No such file or directory
make[3]: *** [sapi_apache.lo] Error 1
make[3]: Leaving directory `/tmp/php-4.0.6/sapi/apache'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/php-4.0.6/sapi/apache'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/php-4.0.6/sapi'
make: *** [all-recursive] Error 1


Any help would be appreciated, Thanks!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-04 12:57 UTC] markonen@php.net
This might have been fixed in a later version of of IBM 
HTTP Server. Have you / could you try it out? Thanks.
 [2002-06-05 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 10:01:30 2024 UTC