Comments (22)
I was able to deploy the basic examples by setting Node.js version to 18.x on Vercel's project settings, I've tried [email protected]
, [email protected]
and [email protected]
with it and it seems fine.
I had the same error PHP Built-In Server HTTP error: Error: connect ECONNREFUSED 127.0.0.1:8000
when using the default version (Node.js 20.x).
from php.
Fixed! Changed the json to:
{
"functions": {
"api/index.php": {
"runtime": "[email protected]"
}
},
"routes": [
{ "src": "/(.*)", "dest": "/api/index.php" }
]
}
from php.
I had the same problem with node 20x. I created package.json file and add this code to use node 18x version.
package.json
{ "engines": { "node": "18.x" } }
The project is running without any issue
from php.
sorry, but where is the different
from php.
got same error but above does not work.
from php.
Hi folks. Node 20.x seems to be problem. I need to investigate it.
from php.
vercel.json-
{
"functions": {
"api/index.php": {
"runtime": "[email protected]"
}
},
"routes": [
{ "src": "/(.*)", "dest": "/api/index.php" }
]
}
package.json-
{ "engines": { "node": "18.x" } }
Works 👍
from php.
The same just want to write comment.
Node 18 will work.
from php.
Same error here
from php.
i get error
my web : https://doodplay.vercel.app/
my vercel id : QuBwX4iGVFwYPpmEJApy8H3L
how to fix it
from php.
I had the same problem.
How can I fix it?
from php.
I managed to get it working by changing the Node.js Version in the Settings -> General on Vercel web page.
from php.
Did anyone find the solution I am facing the same error.
My file structure is as follows
I know I haven't defined the routes for all the api's but the index route is also not working.
from php.
Are you using Node 18.x? Node 20.x is a problem.
from php.
Are you using Node 18.x? Node 20.x is a problem.
yeah i have made that change
from php.
this solution works! thanks
I had the same problem with node 20x. I created package.json file and add this code to use node 18x version.
package.json
{ "engines": { "node": "18.x" } }
The project is running without any issue
from php.
I know Vercel uses Node.js to build our project and for the creation of Serverless Functions but I didn't quite understand the role of "runtime":"[email protected]"
An explanation would be greatly appreciated.
Thank you
from php.
The error is:
Spawning: PHP Built-In Server at /var/task/user (document root) and /var/task/user/api/index.php (router)
🐘STDERR: php: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory
Node 20.x image has no libssl.so.10
from php.
The error is:
Spawning: PHP Built-In Server at /var/task/user (document root) and /var/task/user/api/index.php (router) 🐘STDERR: php: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory
Node 20x image has no libssl.so.10
I have seen that the Node.js 18 will be retired on Vercel next year (Early 2025).
By the way, how important is libsssl.so in PHP? (I am just a beginner in PHP)
https://vercel.com/docs/functions/runtimes/node-js#node.js-version
from php.
The error is:
Spawning: PHP Built-In Server at /var/task/user (document root) and /var/task/user/api/index.php (router) 🐘STDERR: php: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory
Node 20x image has no libssl.so.10
I have seen that the Node.js 18 will be retired on Vercel next year (Early 2025). By the way, how important is libsssl.so in PHP? (I am just a beginner in PHP) https://vercel.com/docs/functions/runtimes/node-js#node.js-version
PHP use libssl.so in curl
extension and openssl
extension.
using curl
to request the https website
from php.
This solution worked for me:
{
"functions": {
"api/index.php": {
"runtime": "[email protected]"
}
},
"rewrites": [
{ "source": "/(.*)", "destination": "/api/index.php" }
]
}
And change node.js version to 18.x
: #504
from php.
The error is:
Spawning: PHP Built-In Server at /var/task/user (document root) and /var/task/user/api/index.php (router) 🐘STDERR: php: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory
Node 20x image has no libssl.so.10
I have seen that the Node.js 18 will be retired on Vercel next year (Early 2025). By the way, how important is libsssl.so in PHP? (I am just a beginner in PHP) https://vercel.com/docs/functions/runtimes/node-js#node.js-version
PHP use libssl.so in
curl
extension andopenssl
extension.
usingcurl
to request the https website
So with no libssl.so, basically CURL will be dead right?
from php.
Related Issues (20)
- could not find driver `pgsql` HOT 3
- Unable to load dynamic library 'mongodb' and 'swoole' when deploying HOT 5
- Error: Exited with 4, Something wrong with the build process, Error: Command "vercel build" exited with 1 HOT 3
- Fatal errors not reported in vercel logs HOT 4
- mongodb module missing in 0.7.0 HOT 1
- Change / Appoint php version HOT 4
- Vercel 0.7.0 + Laravel 10 HOT 2
- the example can't run,what happened? HOT 4
- Can we support php trader
- Can we increase the **max_execution_time** and **post_max_size** here? HOT 2
- Mongo DB is not loaded and returns Class "MongoDB\Driver\Manager" not found
- error: The following Serverless Functions contain an invalid "runtime" when deploying
- Wrong Instruction in README
- Error when deploy it to Vercel "No such file or directory" HOT 5
- php: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory HOT 1
- Unable to use Sentry
- Auto-deploy production: Vite manifest not found at: /var/task/user/public/build/manifest.json
- Wordpress generate static website
- error shared libraries: libssl.so
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php.