php / web-doc

http://doc.php.net
33 stars 85 forks source link

add OpenSSL to list of dependencies #20

Closed deleugpn closed 3 weeks ago

deleugpn commented 3 years ago

When running phd to output the documentation locally I got the following warning:

[12:37:11 - E_USER_WARNING        ] /app/phd/phpdotnet/phd/Package/Generic/XHTML.php:597
        Impossible to copy the http://www.php.net/styles/theme-medium.css file.

Then investigating the source of the message at https://github.com/php/phd/blob/master/phpdotnet/phd/Package/Generic/XHTML.php#L594-L598 I temporarily removed the @ to get a better look at the underlying issue:

[12:43:31 - E_WARNING             ] /app/phd/phpdotnet/phd/Package/Generic/XHTML.php:594
        copy(http://www.php.net/styles/theme-base.css): failed to open stream: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?

Installing php openssl extension solved this issue.

tiffany-taylor commented 2 years ago

Out of curiosity, how did you install your version of PHP? I'm curious to understand the situations which would cause the extensions to not be installed.

deleugpn commented 1 year ago

hey @tiffany-taylor sorry I missed your message. Cleaning up my GitHub notifications I stumbled upon this. It's been a long time but given the timeframe, I assume I was using Docker with FROM alpine and inside an Alpine container each PHP extension needs to be installed individually.

jimwins commented 3 weeks ago

This is documented elsewhere (will be at https://doc.php.net/guide/local-setup.md soon).