module openssl for php

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nanard

    module openssl for php

    Hi,Bonjour,

    I m running FreeBSD 4.10 STABLE and using Apache 1.3.x and PHP4.

    Today, i updated php4 from Ports Tree and there was lot of change.

    Indeed, no more php4-something package... only Php4 and php4-extensions
    packages.

    So, i installed :

    php4-ftp-4.3.8_2
    php4-openssl-4.3.8_2
    (and others)

    But, now, ftp_ssl_connect doesn't work !

    The error message is:

    Fatal error: Call to undefined function: ftp_ssl_connect () in index.php

    I restarted many time apache without success.

    i checked with phpinfo() if the extension is running and it s OK !!!

    openssl
    OpenSSL support enabled
    OpenSSL Version OpenSSL 0.9.7d 17 Mar 2004


    ftp
    FTP support enabled


    So, i checked the PHP module if there is the ftp_ssl_connect strings in
    it... :

    horus# strings openssl.so | grep ftp
    horus# strings openssl.so | grep connect
    horus#

    nothing.

    Where am i wrong ?

    Thanks for help
    Regards,
    Nicolas




  • Sebastian Lauwers

    #2
    Re: module openssl for php

    next time don't multipost just make one message to multiple newsgroups,
    that way. But one question is: why did you keep the english part on that
    french newsgroup? You wanted [french] people to know you could fairly
    write english?

    Well, not that i really care, here's your answer:

    You need to compile PHP with SSL support for that function to be available.

    --
    The most likely way for the world to be destroyed,
    most experts agree, is by accident.
    That's where we come in; we're computer professionals.
    We cause accidents.
    --Nathaniel Borenstein

    Comment

    • nanard

      #3
      Re: module openssl for php

      Hi,
      [color=blue]
      > You need to compile PHP with SSL support for that function to be[/color]
      available.[color=blue]
      >[/color]

      I know this. Before php updates on FreeBSD, i was using this function.

      If you read my post, you'll see that i installed php "modules" (OpenSSL,
      FTP, etc)

      You can see the phpinfo here: http://www.xmystic.com/info.php

      Is there something wrong to use php extensions instead of using static
      compilation ?


      Regards,
      Nicolas


      Comment

      • nanard

        #4
        Re: module openssl for php

        Hi,

        OpenSSL has to be installed in static and not in extensions modules.

        in php.net manual:

        Since ftp_ssl_connect () requires SSL compiled into PHP, Windows users will
        need to compile their own PHP this way or download it from another source.
        Here's one such (and trusted) source:

        Nicolas




        "nanard" <nanard@tou.n u> wrote in message
        news:cfschj$i3l $1@reader1.imag inet.fr...[color=blue]
        > Hi,
        >[color=green]
        > > You need to compile PHP with SSL support for that function to be[/color]
        > available.[color=green]
        > >[/color]
        >
        > I know this. Before php updates on FreeBSD, i was using this function.
        >
        > If you read my post, you'll see that i installed php "modules" (OpenSSL,
        > FTP, etc)
        >
        > You can see the phpinfo here: http://www.xmystic.com/info.php
        >
        > Is there something wrong to use php extensions instead of using static
        > compilation ?
        >
        >
        > Regards,
        > Nicolas
        >
        >[/color]


        Comment

        Working...