I have PHP/FI and PHP3 working great. Now all I need is PHP4:
Running Red Hat Linux 6.2 with apache-1.3.12-2 (default RPM) with suexec enabled. Here is the config for PHP4:
./configure --enable-versioning --with-mysql=/usr/local/include/mysql --enable-track-vars --with-apxs=/usr/sbin/apxs --with-gdbm=/usr/include/gdbm
But when I uncomment:
AddModule mod_php4.c
I get the "can't load module via name" error. The Apache error_log gives this information:
PHP Warning: Function registration failed - duplicate name - define in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - defined in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - each in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - strlen in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - strcmp in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - strcasecmp in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - error_reporting in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - leak in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - function_exists in Unknown on line 0
PHP Warning: Basic Functions: Unable to register functions, unable to load in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - define in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - defined in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - each in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - strlen in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - strcmp in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - strcasecmp in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - error_reporting in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - leak in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - function_exists in Unknown on line 0
PHP Warning: Basic Functions: Unable to register functions, unable to load in Unknown on line 0
[Mon Sep 18 18:58:37 2000] [notice] Apache/1.3.12 (Unix) (Red Hat/Linux) PHP/3.0.15 mod_perl/1.21 configured -- resuming normal operations
[Mon Sep 18 18:58:37 2000] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
The php.ini file is vanilla (from php.ini-dist) and the Apache modules are very basic:
httpd -l
Compiled-in modules:
http_core.c
mod_so.c
suexec: enabled; valid wrapper /usr/sbin/suexec
...perhaps there is a conflict between PHP/FI, PHP3, and PHP4? I really don't want to have to build this as a static module, if possible. And I really want to run all 3 versions of PHP, since our content designers use all of them. All help appreciated!
-Robert Peake
MSIA Information Systems
9/18/00
Robert@MSIA.org