Registered PHP Streams (fshockopen error while opening a https stream) urgent help needed

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

    Registered PHP Streams (fshockopen error while opening a https stream) urgent help needed

    Hello All

    I am running PHP5.0.2 over apache 1.3.29 and openssl-0.9.7d on a Debian
    Linux and with a fake (internal)ip.
    Php Configure command './configure' '--with-apxs=/www/bin/apxs'
    '--with-openssl-dir=/usr/local/src/webserver/openssl-0.9.7d/'
    '--enable-trans-sid' '--disable-libxml'
    Registered PHP Streams : php, file, http, ftp
    Registered Stream Socket Transports : tcp, udp, unix, udg
    allow_url_fopen : On On

    Now when i try to open a https url via it gives me this error

    [Wed Jun 15 19:03:36 2005] [error] PHP Warning: fsockopen() [<a
    href='function. fsockopen'>func tion.fsockopen</a>]: unable to connect to
    ssl://www.testcall.co m:443 (Unable to find the socket transport
    &quot;ssl&qu ot; - did you forget to enable it when you configured PHP?)
    in /www/htdocs/testcon.php on line 2

    I am trying to fix this from last few days but not successful can some
    please help me its very urgent.
    Do I need to register ssl and https as registered php streams? and if
    so how do i register them.

    Thankyou
    Regards
    Dhaval Choksi

  • Jasper Bryant-Greene

    #2
    Re: Registered PHP Streams (fshockopen error while opening a https stream) urgent help needed

    You need to compile in OpenSSL support to PHP -- if it is compiled in
    properly then you will see ssl as a registered stream socket transport
    and https as a registered PHP stream.

    Change the --with-openssl-dir to --with-openssl in your ./configure
    command and recompile.

    Comment

    • choksi

      #3
      Re: Registered PHP Streams (fshockopen error while opening a https stream) urgent help needed

      Hi Jasper,

      Thanks for the reply.

      I have got php configured with --with-openssl and working. Now I can
      see SSL and HTTPS in the php info page. But now if i try and run the
      script it gives me a connection refused(111) error. but the same url is
      accessiable via the web browser. Any clue why this happens

      regards
      dhaval

      Comment

      Working...