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

vercel-php@0.6.0: php: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory #504

Open
bohdan-coderiver opened this issue Oct 29, 2023 · 13 comments

Comments

@bohdan-coderiver
Copy link

bohdan-coderiver commented Oct 29, 2023

When I run the 'vercel build' command, I received an error like the one in the screenshot below. Could someone please explain why is that? Meanwhile vercel and vercel --prod work without any issues.

image

vercel.json
{ "version": 2, "functions": { "api/index.php": { "runtime": "vercel-php@0.6.0" } }, "routes": [ { "src": "/build/(.*)", "dest": "/public/build/" }, { "src": "/resources/(.*)", "dest": "/public/resources/" }, { "src": "/assets/(.*)", "dest": "/public/assets/" }, { "src": "/favicon/(.*)", "dest": "/public/favicon/" }, { "src": "/(.*)", "dest": "/api/index.php" } ], "env": { "APP_NAME": "personalBlog", "APP_ENV": "production", "APP_DEBUG": "true", "APP_CONFIG_CACHE": "/tmp/config.php", "APP_EVENTS_CACHE": "/tmp/events.php", "APP_PACKAGES_CACHE": "/tmp/packages.php", "APP_ROUTES_CACHE": "/tmp/routes.php", "APP_SERVICES_CACHE": "/tmp/services.php", "CACHE_DRIVER": "array", "LOG_CHANNEL": "stderr", "SESSION_DRIVER": "cookie", "VIEW_COMPILED_PATH": "/tmp/views", "SSR_TEMP_PATH": "/tmp/ssr", "NODE_PATH": "node" }, }

@f3l1x
Copy link
Collaborator

f3l1x commented Nov 21, 2023

Hi, I have to update libssl somehow.

@f3l1x
Copy link
Collaborator

f3l1x commented Jan 24, 2024

Hi, can you try latest build?

@hohin728
Copy link

hohin728 commented Mar 26, 2024

I'm having the same issue because default node version is set to 20. It works after changed to 18.

@LuisFernandoLG
Copy link

I'm having the same issue because default node version is set to 20. It works after changed to 18.

How did you do that?

@LuisFernandoLG
Copy link

I'm having the same issue because default node version is set to 20. It works after changed to 18.

How did you do that?

Never mind, I found it.

Go to your dashboard on vercel

Project > Settings > General > Node.js Version
Change from 20.x to 18.x

image

@qkqpttgf
Copy link

I'm having the same issue because default node version is set to 20. It works after changed to 18.

How did you do that?

Never mind, I found it.

Go to your dashboard on vercel

Project > Settings > General > Node.js Version Change from 20.x to 18.x

image

It works!

@f3l1x
Copy link
Collaborator

f3l1x commented Apr 16, 2024

New version 0.7.1 released.

@edjw
Copy link

edjw commented May 1, 2024

You can also do this in your package.json

    "engines": {
        "node": "18.x"
    },

I have to set the node version to v18 this even with using version 0.7.1 for my runtime by the way

    "functions": {
      "api/index.php": {
          "runtime": "vercel-php@0.7.1"
      }
  },

@appsaeed
Copy link

appsaeed commented May 6, 2024

Yes! It also works for me by changing node version 20.x to 18.x from project setting

@MMPgenave
Copy link

I'm having the same issue because default node version is set to 20. It works after changed to 18.

How did you do that?

Never mind, I found it.

Go to your dashboard on vercel

Project > Settings > General > Node.js Version Change from 20.x to 18.x

image

Thank you. It works for me also.

@aungmyomyat220
Copy link

Thanks a lot

@fadhilrachman
Copy link

Thnk bro, its worked

@theaungmyatmoe
Copy link

This worked! Great!

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