php
php copied to clipboard
[email protected]: php: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory
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.
vercel.json
{ "version": 2, "functions": { "api/index.php": { "runtime": "[email protected]" } }, "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" }, }
Hi, I have to update libssl somehow.
Hi, can you try latest build?
-
[email protected]
- Node 18.x / PHP 8.2.x (https://example-php-8-2.vercel.app) -
[email protected]
- Node 18.x / PHP 8.1.x (https://example-php-8-1.vercel.app) -
[email protected]
- Node 18.x / PHP 8.0.x (https://example-php-8-0.vercel.app) -
[email protected]
- Node 18.x / PHP 7.4.x (https://example-php-7-4.vercel.app)
I'm having the same issue because default node version is set to 20. It works after changed to 18.
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?
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
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
It works!
New version 0.7.1 released.
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": "[email protected]"
}
},
Yes! It also works for me by changing node version 20.x to 18.x from project setting
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
Thank you. It works for me also.
Thanks a lot