apache + modssl + php4 - missing libphp4.so

From: Cor (Cor_at_somewhere.com)
Date: 02/04/05

  • Next message: Eagle: "Newbie confused by eMail, hosts and domains set up ..... !"
    Date: Fri, 04 Feb 2005 18:44:05 +0100


    I would like to request some assistance in getting apache + modssl +
    php4 compiled and installed together. Somehow libphp4.so isn't created.
    I choose to write all the commands in this mail. This has made this mail
    a bit long, sorry for this...

    I've come up with the following steps:

    I started extracting:

    Then I started with openssl:
    cd openssl-0.9.7c/ &&
    sed 's/^passwd/openssl-passwd/' doc/apps/passwd.pod \
    > /doc/apps/openssl-passwd.pod &&
    ./Configure linux-elf --openssldir=/etc/ssl --prefix=/usr shared
    no-threads &&

    Next I prepared mm
    cd ../mm-1.3.1/ &&
    ./configure --prefix=/usr --disable-shared &&

    Then I got mod_ssl to patch / prepare apache
    cd mod_ssl-2.8.15-1.3.28/ &&
    ./configure --prefix=/usr --with-apache=../apache_1.3.28/
    --with-ssl=../openssl-0.9.7c/ --with-mm=../mm-1.3.1/ --enable-shared=ssl
    --disable-rule=SSL_COMPAT --enable-rule=SSL_SDBM
    --enable-rule=SSL_EXPERIMENTAL --enable-rule=SSL_VENDOR

    Output says activated modphp4.a and patching modssl to apache source

    Next I ran configure (apache) to prepare for php4:
    cd ../apache_1.3.28/ &&
    ./configure --prefix=/usr

    Then I went over to php4
    cd ../php-4.3.3/
    CFLAGS='-I../openssl-0.9.7c/include' ./configure --prefix=/usr
    --with-apache=../apache_1.3.28/ --enable-memory-limit=yes
    --enable-debug=no &&
    make &&
    make install

    in src/modules dir of apache there is a php4 direktory created, with
    source code

    Over to apache:
    cd ../apache_1.3.28/
    SSL_BASE=../openssl-0.9.7c/ ./configure --prefix=/usr
    --sbindir=/usr/sbin --libexecdir=/usr/lib/apache
    --sysconfdir=/etc/apache --includedir=/usr/include/apache
    --datadir=/var/www --localstatedir=/var/www --logfiledir=/var/log/apache
    --runtimedir=/var/run --enable-module=all --enabled-shared=max
    --disable-module=auth_db --disable-module=auth_dbm --server-uid=apache
    --server-gid=apache --enable-module=ssl
    --activate-module=src/modules/php4/libphp4.a --enable-module=php4 &&
    make &&
    (make certificate) &&
    make install

    in the output I see activated src/modules/libphp4.a and creating
    Makefile in ssl and php

    Finaly i did a make install on mm:
    cd ../mm-1.3.1/ &&
    make install

    I've setup httpd.conf for php + modssl and i was ready to test apache so
    I issued apachectl startssl.

    That resulted in a error saying that /usr/lib/apache/libphp4.so can't be
    found. I've searched my computer, but no libphp4.so. Searching google I
    found the sugestion to use the --with-apxs switch with php, wich goes
    instead of --with-apache=../apache_1.3.28/ - Not realy knowing what else
    to try (since al configs and makes gave no error at all) I re-extracted
    the php source files and did:

    cd ../php-4.3.3/
    CFLAGS='-I../openssl-0.9.7c/include' ./configure --prefix=/usr
    --with-apxs=/usr/sbin/apxs --enable-memory-limit=yes
    --enable-debug=no &&
    make &&
    make install

    But still no libphp4.so :(

    Can someone perhaps tell me where I go wrong ?

    Thanks for reading so far, greetz,
    Cor Lem

  • Next message: Eagle: "Newbie confused by eMail, hosts and domains set up ..... !"