Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenSSL extension is missing #188

Closed
oscarnevarezleal opened this issue Feb 21, 2021 · 2 comments
Closed

OpenSSL extension is missing #188

oscarnevarezleal opened this issue Feb 21, 2021 · 2 comments

Comments

@oscarnevarezleal
Copy link

What happened?

I'm building a builder that uses php-dist and php-composer, some of my buildpacks require OpenSSL to be installed but it's by default.

  • What were you attempting to do?

1 - To fetch HTTPS-secured content using file_get_contents function.
2 - Install missing dependencies (not originally present, but detected later) using composer require

  • What did you expect to happen?
  • What was the actual behavior? Please provide log output, if possible.

OpenSSL is not installed

a) my script

warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?

b) composer (called later)

[builder]   composer require --dev brianium/paratest
[builder]   The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl extension, you can disable this error, at your own risk, by setting the 'disable-tls' option to true.  

Build Configuration

# [...]
[[order]]
  [[order.group]]
    id = "paketo-buildpacks/php-dist"
    version = "0.2.0"
  [[order.group]]
    id = "paketo-buildpacks/php-composer"
    version = "0.1.2"
  [[order.group]]
    id = "paketo-buildpacks/php-web"
    version = "0.0.138"
  • What platform (pack, kpack, tekton buildpacks plugin, etc.) are you
    using?
pack version 0.17.0+git-d9cb4e7.build-2045
  • What buildpacks are you using? Please include versions.

[[buildpacks]]
  uri = "docker://gcr.io/paketo-buildpacks/php-dist"
  version = "0.2.0"

[[buildpacks]]
  uri = "docker://gcr.io/paketo-buildpacks/php-web"
  version = "0.0.138"

[[buildpacks]]
  uri = "docker://gcr.io/paketo-buildpacks/php-composer"
  version = "0.1.2"

  • What builder are you using? If custom, can you provide the output from pack inspect-builder <builder>?

docker.io/paketobuildpacks/builder:full-cf

  • Can you provide a sample app or relevant configuration (buildpack.yml,
    nginx.conf, etc.)?

Checklist

  • [ x ] I have included log output.
  • [ x ] The log output includes an error message.
  • [ x ] I have included steps for reproduction.
@arjun024
Copy link
Member

See this Paketo PHP buildpacks doc, you should be able to create an ini file with extension=openssl.so located at <APP-ROOT>/.php.ini.d/<any-file-name>.ini to instruct the buildpack to load a module. If that didn't help you, please provide an app I can reproduce the issue.

@oscarnevarezleal
Copy link
Author

Thanks, @arjun024.
That made the trick.

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

No branches or pull requests

2 participants