UB-Mannheim / ocr-fileformat

Validate and transform various OCR file formats (hOCR, ALTO, PAGE, FineReader)
https://digi.bib.uni-mannheim.de/ocr-fileformat/
MIT License
181 stars 22 forks source link

Enabling https in PHP in docker #51

Closed zuphilip closed 4 years ago

zuphilip commented 7 years ago

It seems that currently URL with "https" are not working when using the Dockerfile, e.g.

[Sun Feb 12 16:29:32 2017] PHP Warning:  file_get_contents(): Unable to find the
 wrapper "https" - did you forget to enable it when you configured PHP
? in /ocr-fileformat/web/ocr-fileformat.php on line 85
[Sun Feb 12 16:29:32 2017] PHP Warning:  file_get_contents(https://cdn.rawgit.co
m/kba/ocr-fileformat-samples/master/samples/hocr/1.1/wetzel_reisebegleiter_1901_
0021.hocr): failed to open stream: No such file or directory in /ocr-fileformat/
web/ocr-fileformat.php on line 85

(Maybe also document it in installation notes.)

zuphilip commented 7 years ago

http://stackoverflow.com/questions/12946486/openssl-not-working-with-php-built-in-webserver

kba commented 7 years ago

Running the PHP builtin server is not optimal anyway, it was just convenient. Probably would be best to setup an nginx or apache to serve the PHP.

zuphilip commented 7 years ago

For testing/developing purposes the PHP builtin server mostly works, but it might be more stable to switch to another webserver like you suggested.

zuphilip commented 4 years ago

Fixed in #75.