Installing PHP5 in parallel with PHP4

From: Toomas Aas (toomas.aas_at_raad.tartu.ee)
Date: 10/20/05

  • Next message: ross: "Re: sftp and escape characters"
    Date: Thu, 20 Oct 2005 19:56:25 +0300
    To: questions@freebsd.org
    
    

    Hello!

    We have a webserver where www/php4-cgi port is currently installed. Now
    we want to add PHP5, but we have some web applications which are not
    compatible with PHP5, so initially we want to have a server with both
    PHP4 and PHP5 installed.

    So far I did the following:

    mkdir /usr/local/php5
    setenv PREFIX /usr/local/php5
    cd /usr/ports/www/php5-cgi
    make install

    That seemed to work OK.

    Then I proceeded to build the necessary extension ports. Initially a lot
    of them failed to build with various syntax errors. I figured that this
    was because the build process was trying to use PHP4 header files from
    /usr/local/include/php, not the PHP5 header files from
    /usr/local/php5/include/php. So I did the following

    cd /usr/local/include
    mv php php4
    ln -s /usr/local/php5/include/php .

    After that I could build most of the extensions I need. But two
    extensions - php5-wddx and php5-xml - are still failing. Both failures
    look the same:

    # make install
    ===> Vulnerability check disabled, database not found
    ===> Extracting for php5-wddx-5.0.5_1
    => Checksum OK for php-5.0.5.tar.bz2.
    ===> Patching for php5-wddx-5.0.5_1
    ===> Applying FreeBSD patches for php5-wddx-5.0.5_1
    ===> php5-wddx-5.0.5_1 depends on file:
    /usr/local/include/php/main/php.h - found
    ===> php5-wddx-5.0.5_1 depends on executable: phpize - found
    ===> php5-wddx-5.0.5_1 depends on file:
    /usr/local/lib/php/20020429/xml.so - found
    ===> php5-wddx-5.0.5_1 depends on file:
    /usr/local/lib/php/20020429/session.so - found
    ===> php5-wddx-5.0.5_1 depends on file: /usr/local/bin/autoconf259 - found
    ===> php5-wddx-5.0.5_1 depends on executable: pkg-config - found
    ===> php5-wddx-5.0.5_1 depends on shared library: xml2.5 - found
    ===> PHPizing for php5-wddx-5.0.5_1
    Configuring for:
    PHP Api Version: 20031224
    Zend Module Api No: 20041030
    Zend Extension Api No: 220040412
    configure.in:20: error: possibly undefined macro: AC_MSG_ERROR
           If this token and others are legitimate, please use m4_pattern_allow.
           See the Autoconf documentation.
    *** Error code 1

    Stop in /usr/ports/textproc/php5-wddx.

    What should I do to fix this? Or maybe I'm going entirely wrong about
    how to install PHP4 and PHP5 on the same server?

    ---
    ... P.S. The secret of the universe is @*^^^&# NO CARRIER
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: ross: "Re: sftp and escape characters"

    Relevant Pages

    • Re: php4 to php5 upgrade
      ... However, since I can completely remove php4, then install php5, the method they talk about there seems a bit tedious. ... This message was delivered because the content filter score did not exceed your filter level. ...
      (freebsd-questions)
    • [SLE] php4->php5
      ... I have a strange problem with a migration from php4 to php5 on a suse 10.0 ... I run mediawiki 1.6 and want to run 1.7 that needs php 5. ... Accept all by default and install. ...
      (SuSE)
    • php 4.4.7 make install with pear causes zend freeing errors
      ... Is the only valid response to problems with php4 to ... If php5 is the only answer, ... I run make install. ... When I try to upgrade or install pear packages, ...
      (php.general)
    • 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)
    • Re: Is it a bug: huge dependency problems of php5 and ikiwiki
      ... I have two possible bugs of too much dependencies: ... For example, if I install cherokee and php5, apt should not install apache. ... you will see that it is a meta package ...
      (Debian-User)