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
    
    

    Hello,

    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:
    apache_1.3.28
    mm-1.3.1
    mod_ssl-2.8.15-1.3.28
    openssl-0.9.7c
    php-4.3.3

    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 &&
    make

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

    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
    --activate-module=src/modules/php4/libphp4.a

    Note:
    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

    Note:
    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

    Note:
    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 ..... !"

    Relevant Pages

    • Re: GD module in PHP4 / Apache - Working
      ... | I'm having a problem with the GD module in PHP4 with Apache. ... I couldn't get the Debian install working (I'll openly state I'm ... the PHP4 source, compiled it with GD support and installed it. ... Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org ...
      (Debian-User)
    • Re: apache+mod_ssl + php4 crashes
      ... > If i remove php4 from httpd.conf, apache runs fine. ... If there are any shared libraries 'not found' then you need to either ... able to install both lang/php4 and lang/php4-horde simultaneously. ...
      (freebsd-questions)
    • Re: FreeBSD coppermine on webserver?
      ... I have FreeBSD 6 and recently installed apache 22. ... I got mysql-server41 on the box yesterday after I installed coppermine. ... Now coppermine needs php4 or better and installed it. ... explain to me should I leave php4 or remove it and install mod_php4 ...
      (comp.unix.bsd.freebsd.misc)
    • Automating Apache installs..
      ... I am using FreeBSD ports to install both Apache 1.3 and PHP4. ...
      (freebsd-isp)
    • Re: [PHP] Question before upgrading to 5
      ... anyway I see you did do a dual apache setup, cool, and got it working properly. ... but it sure is a cool trick if you really need to run php4 sites and php5 sites on one production ... install of apache would allow you to do. ... php in so far as you can also specify a custom prefix to have ...
      (php.general)