As a first check make sure you have the correct php version.
Render hosting issues
Hi there.
I am trying to host a small laravel project for my portfolio on a site called Render, but i am experiencing great difficulty in getting it to work. I have asked on their forums and have gained no reply.
I am following their instruction to no avail and the errors coming back are these:
WARNING: [pool www] child 83 said into stderr: "NOTICE: PHP message: PHP Fatal error: require(): Failed opening required '/var/www/html/public/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/html/public/index.php on line 34"
[error] 75#75: *115 FastCGI sent in stderr: "PHP message: PHP Warning: require(/var/www/html/public/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/public/index.php on line 34PHP message: PHP Fatal error: require(): Failed opening required '/var/www/html/public/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/html/public/index.php on line 34" while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "haunted-inventory-laravel.onrender.com"
Has anyone deployed their laravel project to render before and can give me a helping hand? Or figure out why this is happening?
The git repo of the project is /rlw92/haunted-inventory-laravel
Any help would be greatly appreciated. Thank you.
If anyone runs into this problem again. Its because you are using laravel 10 with vite. These files need to be bundled. Also I believe I had named some views wrong.
I followed this github repos instructions /cba85/laravel-render Along with the render config files to deploy to Render.
Please or to participate in this conversation.