php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24199 problem with loading module in apache 2.0.46
Submitted: 2003-06-16 02:54 UTC Modified: 2003-07-10 17:53 UTC
From: keeper at fly dot srk dot fer dot hr Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4.3.2 OS: AIX
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: keeper at fly dot srk dot fer dot hr
New email:
PHP Version: OS:

 

 [2003-06-16 02:54 UTC] keeper at fly dot srk dot fer dot hr
Description:
------------
I've compiled apache 2.0.46 with the following optins:
CPPFLAGS=-D_THREAD_SAFE ./configure --prefix=/stage/keeper/apache2 \
--enable-modules="headers info mime_magic rewrite so ssl status"  \
--with-ssl=/usr/local/ssl \
--with-port=8080

The apache works just fine.

After that I've compiled php 4.3.2 with the following options:
./configure --prefix=/stage/keeper/php-4.3.2 \
--with-apxs2=/stage/keeper/apache2/bin/apxs \
--with-openssl=/usr/local/ssl

But after I try to start apache with added lines:
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php


I get the following error:
Syntax error on line 233 of /stage/keeper/apache2/conf/httpd.conf:
Cannot load /stage/keeper/apache2/modules/libphp4.so into server:


It is weird because I've recently compiled the same apache+php on one FreeBSD box and there was no problem.

Additional info:
OS: AIX 4330-09
compiler:gcc 2.95.3
openssl: 0.9.7b




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-16 08:33 UTC] sniper@php.net
And what might be in error_log about this..?

 [2003-06-16 09:54 UTC] keeper at fly dot srk dot fer dot hr
error_log file said nothing at all. It seems like I made a syntax error in conf file, which is very weird.
Still: apachectl configtest return the same error:
bash-2.05a$ /stage/keeper/apache2/bin/apachectl configtest
Syntax error on line 233 of /stage/keeper/apache2/conf/httpd.conf:
Cannot load /stage/keeper/apache2/modules/libphp4.so into server:

Mario.
 [2003-06-16 10:31 UTC] sniper@php.net
Try run it via gdb:

# gdb httpd
(gdb) run -DONE_PROCESS

Maybe it crashes..?

 [2003-06-16 10:32 UTC] sniper@php.net
Also make sure you don't have duplicate LoadModule for php4 in your httpd.conf

 [2003-06-17 04:58 UTC] keeper at fly dot srk dot fer dot hr
gdb returns:
(gdb) run -DONE_PROCESS
Starting program: /stage/keeper/apache2/bin/httpd -DONE_PROCESS
Syntax error on line 233 of /stage/keeper/apache2/conf/httpd.conf:
Cannot load /stage/keeper/apache2/modules/libphp4.so into server:

Program exited with code 01.
(gdb)


About duplicates in httpd.conf: there is no duplicates
 [2003-06-17 05:44 UTC] sniper@php.net
What does 'ldd libphp4.so' output?

 [2003-06-17 07:57 UTC] keeper at fly dot srk dot fer dot hr
bash-2.05a$ ./ldd /stage/keeper/apache2/modules/libphp4.so
Could not load program /stage/keeper/apache2/modules/libphp4.so:
Symbol resolution failed for /stage/keeper/apache2/modules/libphp4.so because:
        Symbol ap_mpm_query (number 238) is not exported from dependent
          module ldd.
        Symbol ap_server_root_relative (number 239) is not exported from dependent
          module ldd.
        Symbol ap_hook_pre_config (number 240) is not exported from dependent
          module ldd.
        Symbol ap_hook_post_config (number 241) is not exported from dependent
          module ldd.
        Symbol ap_hook_handler (number 242) is not exported from dependent
          module ldd.
        Symbol ap_auth_type (number 243) is not exported from dependent
          module ldd.
        Symbol ap_log_error (number 244) is not exported from dependent
          module ldd.
        Symbol ap_log_rerror (number 245) is not exported from dependent
          module ldd.
        Symbol ap_set_last_modified (number 246) is not exported from dependent
          module ldd.
        Symbol ap_set_content_type (number 247) is not exported from dependent
          module ldd.
        Symbol ap_sub_req_lookup_uri (number 248) is not exported from dependent
          module ldd.
        Symbol ap_run_sub_req (number 249) is not exported from dependent
          module ldd.
        Symbol ap_destroy_sub_req (number 250) is not exported from dependent
          module ldd.
        Symbol ap_update_mtime (number 251) is not exported from dependent
          module ldd.
        Symbol ap_get_server_version (number 252) is not exported from dependent
          module ldd.
        Symbol ap_add_version_component (number 253) is not exported from dependent
          module ldd.
        Symbol ap_get_brigade (number 254) is not exported from dependent
          module ldd.
        Symbol ap_pass_brigade (number 255) is not exported from dependent
          module ldd.
        Symbol ap_add_cgi_vars (number 256) is not exported from dependent
          module ldd.
        Symbol ap_add_common_vars (number 257) is not exported from dependent
          module ldd.
        Symbol ap_loaded_modules (number 258) is not exported from dependent
          module ldd.
        Symbol ap_server_root (number 259) is not exported from dependent
          module ldd.
        Symbol unixd_config (number 260) is not exported from dependent
          module ldd.
Examine .loader section symbols with the 'dump -Tv' command.


--> ldd for httpd:
bash-2.05a$ ./ldd /stage/keeper/apache2/bin/httpd
/usr/lib/librtl.a(shr.o)
/usr/lib/libpthreads.a(shr_xpg5.o)
/usr/lib/libc.a(pse.o)
/usr/lib/libtli.a(shr.o)
/usr/lib/libpthreads.a(shr_comm.o)
/usr/lib/libpthreads.a(shr.o)
/usr/lib/libpthreads_compat.a(shr.o)
/usr/lib/libnsl.a(shr.o)
/usr/lib/libiconv.a(shr4.o)
/stage/keeper/apache2/bin/httpd
/usr/lib/libcrypt.a(shr.o)
/usr/lib/libc.a(shr.o)
 [2003-07-09 02:14 UTC] keeper at fly dot srk dot fer dot hr
Check out the apache bug:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21046

You can use the patch that is given there. It works.
 [2003-07-09 10:03 UTC] sniper@php.net
Can you please try this patch:
http://www.php.net/~jani/apache2handler_php_functions_c.patch

(with the latest stable CVS snapshot from http://snaps.php.net/ )

 [2003-07-09 10:03 UTC] sniper@php.net
And you don't need to patch Apache sources with anything..

 [2003-07-10 17:53 UTC] sniper@php.net
Patch applied to CVS. Assumed it fixed this.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 02 12:01:29 2025 UTC