PHP does not allow https connections

Posted by FunkyChicken on Server Fault See other posts from Server Fault or by FunkyChicken
Published on 2012-10-29T17:43:12Z Indexed on 2012/10/31 11:03 UTC
Read the original article Hit count: 248

Filed under:
|
|
|
|

Hey guys im running PHP 5.4.0 and I cannot cURL nor files_get_content() https connections.

Using curl in a PHP script shows:

[root@ns1]# /opt/php/bin/php -q test.php
* About to connect() to www.google.com port 443
*  Trying 74.125.225.210... * connected
* Connected to www.google.com (74.125.225.210) port 443
* successfully set certificate verify locations:
*  CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
Segmentation fault

Using file_get_contents() shows:

Warning: file_get_contents(): Unable to find the wrapper "https" - did
you forget to enable it when you configured PHP? in /test.php

OpenSSL and OpenSSL-devel are installed, and PHP is also configured with cURL support for SSL connections. See: http://i.imgur.com/ExAIf.png

Any idea what might be going wrong?

Further info: CentOS 5.8(64) with Nginx 1.2.4

© Server Fault or respective owner

Related posts about php

Related posts about centos