microweber-dev / screen

Website screenshot tool based on PHP and PhantomJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenSSL Issue

lucasctd opened this issue · comments

I am trying to use this package with no success on my Laravel project.
I am using the php:7.4-fpm docker container.
My container has the required libs (fontconfig and freetype), but when I run the script it gives the error below:

{
    "message": "Auto configuration failed\n140014027755136:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:185:filename(libssl_conf.so): libssl_conf.so: cannot open shared object file: No such file or directory\n140014027755136:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:\n140014027755136:error:0E07506E:configuration file routines:MODULE_LOAD_DSO:error loading dso:conf_mod.c:285:module=ssl_conf, path=ssl_conf\n140014027755136:error:0E076071:configuration file routines:MODULE_RUN:unknown module name:conf_mod.c:222:module=ssl_conf",
    "exception": "Screen\\Exceptions\\PhantomJsException",
    "file": "/code/vendor/microweber/screen/src/Capture.php",
    "line": 259
}

The binPath attribute is pointing to the resources folder of my project, the jobs' folder is pointing to the storage folder of my project, so file permissions should not be the issue.

I have followed the solution proposed here, but it didn't solve my problem.

Has anyone faced this issue?

Thanks.

seems to be libssl issue try to google search

The suggested solutions are to either set the environment variable OPENSSL_CONF=/etc/ssl/ or OPENSSL_CONF=/dev/null.
Both of them didn't work.