Re: Installing php4

From: Matthew Seaman (m.seaman_at_infracaninophile.co.uk)
Date: 07/24/04

  • Next message: Richard Kaestner: "mini-itx (ME6000), buildworld fails"
    Date: Sat, 24 Jul 2004 11:45:31 +0100
    To: Peter Risdon <peter@circlesquared.com>
    
    
    

    On Sat, Jul 24, 2004 at 10:35:10AM +0100, Peter Risdon wrote:
    > Drew Marshall wrote:

    > >I have been trying to install php4 (On FreeBSD 5.2.1, cvsuped ports
    > >tree, php4-4.3.8_1, I have tried both the mod_php4 and lang/php4) and
    > >the full menu options seem to have disappeared. When I run make install
    > >I get a 3 line menu offering to allow me to install for apache2 instead
    > >of apache 1.3.x, to enable debugging and use IPv6. I have no options to
    > >configure the build process. If I allow the build to continue Apache
    > >grumbles that it can't find variable session( ), which would suggest PHP
    > >is not compiled with session support. What am I doing wrong? What has
    > >changed?
    >
    > Major revision to the port, for reasons that I don't find very obvious.
    >
    > However, you need lang/php4-extensions or the mod_php equivalent.

    Actually, php4-extensions works with any of the 'main' PHP ports --
    lang/php4, lang/php4-cli, www/php4-cgi or www/mod_php4. The fact that
    there are 4 different variations on a plain 'php4' port in the tree is
    the reason why all of the module support was moved out into a separate
    extensions port.

    While this move to specifying all of the PHP modules as loadable
    extensions makes a great deal of sense from one point of view -- ports
    that use PHP can now explicitly list all of the extensions they
    require to operate, rather than having to have their own private PHP
    slave ports -- the implementation has run into a number of problems.

    For php4 there are some extensions where the same functionality is not
    available when used as a loadable module as when compiled in. The
    security/php4-openssl extension is a case in point: unless OpenSSL
    support is compiled-in, the fsockopen() function won't let you open
    'tls://' or 'ssl://' style URLs. (As a practical result, that means
    that eg. Squirrelmail can't communicate with a secure IMAP server on
    port 993. The only alternative in that case is to communicate to an
    unencrypted IMAP server on port 143, which quite probably involves
    sending passwords over the net in plaintext.)

    Beyond that, not all of the PHP consuming ports have yet been updated
    to depend on the appropriate PHP extensions, so installing those ports
    de novo doesn't immediately get you a workable system. A common
    symptom of this is a run-time error where one of the perl compatible
    regular expression (pcre_*()) functions doesn't work. The answer
    pretty much is just to install the required extension modules by hand,
    and tweak the value of the 'extension_dir' directive in
    /usr/local/etc/php.ini

            Cheers,

            Matthew

    -- 
    Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                          Savill Way
    PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
    Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
    
    


    • application/pgp-signature attachment: stored

  • Next message: Richard Kaestner: "mini-itx (ME6000), buildworld fails"

    Relevant Pages

    • RE: Mea Culpa, Ive killed OWA/RWW/Other stuff with NET STOP
      ... the SSL port to the new site, once that was deleted, I was able to ... Perhaps posting my config, as you requested, will help answer this question: ... available - it's a PHP intranet/extranet application, ... >>I was trying to install PHP manually, ...
      (microsoft.public.windows.server.sbs)
    • Re: Installing php4
      ... >the reason why all of the module support was moved out into a separate ... >extensions port. ... >While this move to specifying all of the PHP modules as loadable ... >that use PHP can now explicitly list all of the extensions they ...
      (freebsd-questions)
    • Re: Installing php4
      ... >the reason why all of the module support was moved out into a separate ... >extensions port. ... >While this move to specifying all of the PHP modules as loadable ... >that use PHP can now explicitly list all of the extensions they ...
      (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)
    • Are my Extensions installed properly?
      ... Attempting to install FrontPage extensions... ... Server extensions already installed on port 80. ... Starting upgrade, port: 80. ...
      (microsoft.public.frontpage.client)