On Jun 04, 12:22:11 PM (Monday), or Thereabouts, Penguin wrote:
>> Adding the following in httpd.conf won't work ? Rather then rename .php3
>> files :
>>
>> <IfModule mod_php4.c>
>> AddType application/x-httpd-php3 .php3
>> AddType application/x-httpd-php3-source .phps
>> </IfModule>
Tried that, didn't work.
Here's what I did -
Uninstalled PHP3
installed PHP3 from sources using the following flags -
--with-apxs=/usr/local/bin/apxs (the path is correct)
--enable-versioning
--enable-track-vars
Then, Installed PHP4 from source using the same flags.
I have the following in httpd.conf -
(quoting only the relevant parts)
LoadModule php3_module modules/libphp3.so
LoadModule php4_module modules/libphp4.so
AddModule mod_php3.c
AddModule mod_php4.c
<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
</IfModule>
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
</IfModule>
Now, when I restart apache, it fails and this is the output in the error log -
[Mon Jun 4 15:24:17 2001] [notice] caught SIGTERM, shutting down
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 Jun 4 15:24:42 2001] [notice] Apache/1.3.12 (Unix) (Red Hat/Linux) PHP/3.0.18
configured -- resuming normal operations
if I comment out the PHP4 specific lines, it works fine.
both the libphp?.so and mod_php?.c are in the right places
What am I doing wrong ?
Regards,
_/_/_/_/ _/_/_/ _/_/_/_/ Ravi Ananth Giri K | [EMAIL PROTECTED]
_/ _/ _/ h t t p : / / w w w . i s h o n i . c o m
_/ _/_/_/ _/ _/_/ Information Systems Group Ishoni Networks
_/ _/ _/ _/ -----------------------------------------
_/_/_/ _/_/_/ _/_/_/_/ Redhat Linux 7.1 (SeaWolf) | Kernel 2.4.4
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/linux-india-help