Re: Suport for MySQL and Postgresql in PHP

From: Kevin D. Kinsey, DaleCo, S.P. (kdk_at_daleco.biz)
Date: 12/04/04

  • Next message: Kiffin Gish: "RE: Sysinstall XFree86 is missing for some reason..."
    Date: Fri, 03 Dec 2004 22:13:06 -0600
    To: Mário Gamito <gamito@netual.pt>
    
    

    Mário Gamito wrote:

    > Hi,
    >
    > Sorry for this newbie question :(
    >
    > I've installed Apache-PHP sucessfully, but PHP lacks suport for MySQL
    > and Postgresql.
    >
    > Are there any ports for that, or must i edit PHP's Makefile to include
    > suport for both databases ?
    >
    > I've searched all around the ports colection, but didn't find anything :(
    >
    > Any help would be apreciated.
    >
    > Warm Regards.

    According to /usr/ports/UPDATING:

    20040719:
      AFFECTS: users of PHP
      AUTHOR: ale@FreeBSD.org

      The old lang/php4 and lang/php5 ports have been splitted into 'base' PHP,
      PEAR, and shared extensions to allow more flexibility and add new
    features.
      Upgrading your current PHP installation will result in a 'base' PHP
      installation (no PEAR and no extensions).
      PEAR can be found in the new devel/php4-pear and devel/php5-pear
    ports, while
      the set of PHP extensions to install can be choosen via the meta-ports
      lang/php4-extensions and lang/php5-extensions, or installing singular
      extensions individually.
      If you have a previous php.ini configuration file, be sure to comment out
      the extension_dir parameter, since the correct path is statically compiled
      into the PHP binary.
      For an overview of the modules used with the old PHP binary, use
      the command "php -m".

    Now, according to /usr/ports/lang/php4-extensions/Makefile, installing
    this port will get you support for MySQL.

    # cd /usr/ports/lang/php4-extensions
    # make install clean

    However, PostGres support is optional, so if you want both:

    # cd /usr/ports/lang/php4-extensions
    # make WITH_PGSQL install clean

    HTH,

    Kevin Kinsey
    _______________________________________________
    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: Kiffin Gish: "RE: Sysinstall XFree86 is missing for some reason..."

    Relevant Pages

    • Re: lang/php5 port
      ... ports like php. ... compile, install) this seems a bit untidy and i'm nervous what it might mean ... happens if I want to install two different PHP applications simultaneously? ...
      (freebsd-questions)
    • Re: [6.3] Upgrading PHP5?
      ... I successfully upgraded the Ports collection with csup and then ... This is the main PHP section. ... Apache install for the first time. ...
      (freebsd-questions)
    • Re: How to get php4 extensions to "show up"?
      ... Aside from MySQL support I choose ... >>The install and registration seemed to work without any errors. ... >>reports that php DOES NOT have MySQL, zlib, or xml support. ... >>php4 that did not have the extensions installation seperate. ...
      (freebsd-questions)
    • Re: Installing php4
      ... >>While this move to specifying all of the PHP modules as loadable ... >>that use PHP can now explicitly list all of the extensions they ... not all of the PHP consuming ports have yet been updated ... >>to depend on the appropriate PHP extensions, so installing those ...
      (freebsd-questions)
    • RE: Very Annoying PHP Errors
      ... What I did was downgraded the php port to 5.2.0 and just re-compiled php and all of it's extensions to 5.2.0. ... I'm using FreeBSD 6.1 with Apache 2.2.4 and PHP 5.2.0 with Sushion, ipv6 support, and Apache support. ... Is there an easy way to downgrade ports? ... sometimes both but also sometimes both install without errors. ...
      (freebsd-questions)