Error while deploying with Laravel from my GitLab repository. Issue with libssl.so.10 (PHP on Windows). #6279
-
SummaryI'm new to Vercel and have been trying to deploy my project from GitLab using the import feature. Initially, it was working, but when I clicked on the link, it downloaded a file instead of opening my site. I then created the api/index.php, vercel.json, and .vercelignore files, but now I'm encountering this error and I can't figure it out. Here is the build log and error message: Running build in Washington, D.C., USA (East) – iad1 ExampleNo response Steps to ReproduceI created a laravel project, added mongodb ext for php on my system and the extension mongodb/laravel-mongodb. php v8.1.27 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
Hi @rauchg Did vercel remove support for php ? |
Beta Was this translation helpful? Give feedback.
-
Hey there! PHP is supported through a community runtime which is publicly available at github.com/vercel-community/php. Please make sure the project is configured as recommended in the docs to ensure your PHP file is interpreted as a serverless function rather than a downloadable file. vercel.com/docs/functions/configuring-functions/runtime#other-runtimes. |
Beta Was this translation helpful? Give feedback.
-
There are two options to fix this issue: Or Update the vercel-php version to use node 18: |
Beta Was this translation helpful? Give feedback.
-
This discussion was automatically locked because the community moved to a new site. Please join us at vercel.community |
Beta Was this translation helpful? Give feedback.
There are two options to fix this issue:
Go to Project > Settings > General > Node.js Version Change from 20.x to 18.x
Or
Update the vercel-php version to use node 18:
"runtime": "vercel-php@0.6.1"
,