Skip to content

Instantly share code, notes, and snippets.

@artembeloglazov
Last active October 29, 2015 13:44
Show Gist options
  • Save artembeloglazov/e430343cb24dbb3c9c3d to your computer and use it in GitHub Desktop.
Save artembeloglazov/e430343cb24dbb3c9c3d to your computer and use it in GitHub Desktop.
Обновление/установка пакетов composer на FreeBSD

Оригинал

I found a solution to this

I'm running:

FreeBSD 10.1

Apache2.4

PHP 5.6.3

To find the CA file I ran this command

locate cacert.pem

Result was:

/usr/local/lib/perl5/site_perl/5.16/Mozilla/CA/cacert.pem

Then open the php.ini file and change this:

;openssl.cafile=

To this:

openssl.cafile=/usr/local/lib/perl5/site_perl/5.16/Mozilla/CA/cacert.pem

Note: This directive is only available on php 5.6.x

Then restart Apache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment