orientechnologies / PhpOrient

PhpOrient - PHP binary client for OrientDB
Other
107 stars 13 forks source link

Added note on common SSL error. #1

Closed zanerock closed 9 years ago

zanerock commented 9 years ago

Any (?) PHP built with curl support will throw errors on the readfile() call; even if built without --with-curl-wrappers. (Tested both PHP 5.6.4.) The solution should be obvious, but did cause some confusion for me, so may be worth a note.

zanerock commented 9 years ago

Never mind, even though the install does not complain, it still fails if PHP built with curl, so it's not a useful workaround.

Ostico commented 9 years ago

The right solution is to update cacerts chain in your operating system. This is for debian/ubuntu operating systems.

sudo update-ca-certificates
zanerock commented 9 years ago

In part. Also potentially need to build PHP without 'curl-wrappers' which seem somewhat deprecated, and potentially update 'openssl.cafile=/ca-bundle/path' if PHP doesn't find the CA files.

Ostico commented 9 years ago

Yes you're right, but this is an "extreme" configuration and maybe out of my scope. I've to trust to the composer guidelines installation: https://getcomposer.org/doc/00-intro.md#locally