I have installed Apache 1.3.33 from a binary tarball, and RPM installed all the latest php4 rpms from Fedora Core 3's update site
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/3/i386/

and copied the libphp4.so from /usr/lib/httpd/modules to /usr/local/apache/libexec

I have added the lines
LoadModule php4_module libexec/libphp4.so
and
AddModule mod_php4.c
and
AddType application/x-httpd-php .php
to my httpd.conf

but when I type apachectl start the console yeilds

apachectl start

Syntax error on line 239 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symbol: unixd_config
/usr/bin/apachectl start: httpd could not be started

line 239 corresponds to my LoadModule line stated above.

the libphp4.so information is:

pwd

/usr/local/apache/libexec

ls -l libphp4.so

-rwxr-xr-x 1 root root 1554964 Feb 2 12:30 libphp4.so

I have been beating my head against this for a few days and NEED to get apache up with php support asap. ANY help would be appreciated!

I have tried php 4.3.9 with no luck (Same error)

Thanks in advance
-Dave

    Hi,

    execute

    ldd /usr/local/apache/libexec/libphp4.so

    and post the output.

    Wait ... just a guess:

    I think Fedora 3 comes with apache 2.x so the php4 package might have been linked against apache 2. AFAIK only apache 2.x exports the symbol unixd_config. Seems like you can't use the php4 rpms you downloaded with apache 1.x.

    Thomas

      Write a Reply...