Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

can't download joomla staging in PHP 7 #22

Closed
javigomez opened this issue Mar 8, 2016 · 2 comments
Closed

can't download joomla staging in PHP 7 #22

javigomez opened this issue Mar 8, 2016 · 2 comments
Labels
Milestone

Comments

@javigomez
Copy link
Contributor

Using PHP 5.5 in the Joomla box there are no issues downloading specific releases of joomla:

Uploading Screen Shot 2016-03-08 at 15.30.00.png…

However I have switched to PHP 7

screen shot 2016-03-08 at 15 31 45

And I have noticed this error raises:

screen shot 2016-03-08 at 14 02 50

@stevenrombauts
Copy link
Member

It looks like stream wrappers are now enabling peer verification by default when using SSL/TLS since PHP 5.6. The compiled version doesn't know where to look for the certificates bundle so it can't verify GitHub's SSL certificate. This also means that the same issue will occur if you build a new 5.6.x version on the box.

To remedy this on your box, correct the path to the CA bundle:

box php:ini openssl.cafile /etc/ssl/certs/ca-certificates.crt
box php:ini openssl.capath /usr/lib/ssl/

You can verify if the paths are correctly set by looking at the cafile and capath values in the output from php -r 'print_r(openssl_get_cert_locations());'.

That should do it. We'll need to fix this in a next release of the box by automatically setting these paths after building.

Thanks for the report @javigomez! Please let me know if the above workaround solves the issue on your current machine.

@stevenrombauts stevenrombauts added this to the 1.4.4 milestone Mar 10, 2016
@javigomez
Copy link
Contributor Author

I can confirm that your commands fixes the issue.

Thanks very much ^_^

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants