Results 1 to 9 of 9
  1. #1
    Join Date
    Nov 2001
    Location
    Canada
    Posts
    1,963

    apache 2.0.39 + php 4.2.1

    Am I doing something wrong..?

    i'm trying to get apache 2.0.39 to work, with php 4.2.1

    here's what i'm doing

    first cd'ing into the apache dir
    doing this:

    ./configure --enable-auth-dbm --disable-log-config --enable-proxy --enable-proxy-connect --enable-proxy-http --enable-ssl --enable-http --enable-info --enable-cgi --enable-cgid --enable-vhost-alias --enable-so --with-ssl --enable-suexec --with-suexec-caller=nobody --with-suexec-docroot=/mspace --with-suexec-
    userdir=htdocs --with-suexec
    safepath=/usr/local/bin:/usr/bin:/bin --with-suexec-logfile=/var/log/suexec_log --prefix=/usr/local/apache2

    Then i'm doing make, make install -- works perfectly.

    then cd'ing out and into the php 4.2.1 dir

    and i'm doing this:
    ./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs --enable-track-vars


    and php will compile for awhile, then it errors

    /bin/sh /home/dev/ap2.0/php-4.2.1/libtool --silent --mode=compile gcc -I. -I/home/dev/ap2.0/php-4.2.1/sapi/apache2filter -I/home/dev/ap2.0/php-4.2.1/main -I/home/dev/ap2.0/php-4.2.1 -I/usr/local/apache2/include -I/home/dev/ap2.0/php-4.2.1/Zend -I/home/dev/ap2.0/php-4.2.1/ext/mysql/libmysql -I/home/dev/ap2.0/php-4.2.1/ext/xml/expat -D_REENTRANT -I/home/dev/ap2.0/php-4.2.1/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic -c php_functions.c
    php_functions.c:93:27: missing binary operator before '!'
    make[3]: *** [php_functions.lo] Error 1
    make[3]: Leaving directory `/home/dev/ap2.0/php-4.2.1/sapi/apache2filter'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/dev/ap2.0/php-4.2.1/sapi/apache2filter'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/dev/ap2.0/php-4.2.1/sapi'
    make: *** [all-recursive] Error 1

    Has anyone got this? Surely someone has...? Am i the only one? Could someone help me out, maybe i am doing something wrong..

    any help is appreciated.

  2. #2
    Join Date
    Nov 2001
    Location
    Canada
    Posts
    1,963
    i was able to with apache 2.0.36 though, but .39 is giving me problems..

  3. #3
    Join Date
    Mar 2002
    Location
    Servers
    Posts
    806
    Looks like you are alone
    Dedicated Servers cPanel Shared/Reseller Hosting
    VPS Backups Cloud Colocation Managed Services
    Webx Networks Serving world wide since 1997

  4. #4
    Join Date
    Oct 2000
    Posts
    30
    There are some discussion about this issue at this site http://www.php.net/manual/en/install.apache.php

  5. #5
    Join Date
    Nov 2001
    Location
    Canada
    Posts
    1,963
    Sorry Max, i've read that, none of that does anything for me.

    Thanks for trying to help though.

    That stuff is mostly AFTER compiling, and what not

    I can't even get php to compile to begin with.

  6. #6
    Join Date
    Mar 2002
    Posts
    1,003
    You can try compiling php as a static module.

  7. #7
    Join Date
    Nov 2001
    Location
    Canada
    Posts
    1,963
    No, I dont believe you can do that yet with apache 2.0
    can't do --with-apache=../httpd-2.0.39

    etc

  8. #8
    Join Date
    Nov 2001
    Location
    Canada
    Posts
    1,963
    --with-apache[=DIR] Build Apache 1.x module. DIR is the top-level Apache
    build directory, defaults to /usr/local/apache.

  9. #9
    From what the PHP source developers have told me, PHP will not officially support Apache 2 until version 4.3. For this reason, I would not suggest using this setup in a production level scenario. I do know that they have built in experimental support, but a lack of official stability has prevented us from using it on customer machines. I would suggest the same for others.


    Kyle Tuskey
    Last edited by Chicken; 09-25-2002 at 07:57 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •