Hi, I’m having trouble deploying my Laravel docker backend to Render.
I’ve followed the suggested guide for Render: “Deploy a PHP Web App with Laravel and Docker”
I’ve followed the steps in other community posts that have the same issue:
But I can’t get my backend working, as I have the following errors.
According to the documentation, I have to create a Docker file, Nginx configuration, Docker ignore, and a deployment script. I copied the contents of all those files from the links I attached, but it doesn’t work.
I also checked out the example repository.
I did the same thing, but copied the contents from the most recent commit, as the tutorial provided by Render seems outdated.
Can someone help me, please?
==> Your service is live ![]()
==>
==> ///////////////////////////////////////////////////////////
==>
==> Available at your primary URL
==>
==> ///////////////////////////////////////////////////////////
[28-Oct-2025 14:34:17] WARNING: [pool www] child 72 said into stderr: “NOTICE: 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 14”
[28-Oct-2025 14:34:17] WARNING: [pool www] child 72 said into stderr: “NOTICE: PHP message: PHP Stack trace:”
[28-Oct-2025 14:34:17] WARNING: [pool www] child 72 said into stderr: “NOTICE: PHP message: PHP 1. {main}() /var/www/html/public/index.php:0”
Log 1:
[28-Oct-2025 14:34:05 Europe/London] PHP Fatal error: Uncaught Error: Failed opening required ‘/var/www/html/vendor/autoload.php’ (include_path=‘.:/usr/local/lib/php’) in /var/www/html/artisan:10
Stack trace:
#0 {main}
thrown in /var/www/html/artisan on line 10
Fatal error: Uncaught Error: Failed opening required ‘/var/www/html/vendor/autoload.php’ (include_path=‘.:/usr/local/lib/php’) in /var/www/html/artisan on line 10
Error: Failed opening required ‘/var/www/html/vendor/autoload.php’ (include_path=‘.:/usr/local/lib/php’) in /var/www/html/artisan on line 10
Call Stack:
0.0001 416064 1. {main}() /var/www/html/artisan:0
Running migrations…
[28-Oct-2025 14:34:05 Europe/London] PHP Warning: require(/var/www/html/vendor/autoload.php): Failed to open stream: No such file or directory in /var/www/html/artisan on line 10
Warning: require(/var/www/html/vendor/autoload.php): Failed to open stream: No such file or directory in /var/www/html/artisan on line 10
Call Stack:
0.0001 416088 1. {main}() /var/www/html/artisan:0
Fatal error: Uncaught Error: Failed opening required ‘/var/www/html/vendor/autoload.php’ (include_path=‘.:/usr/local/lib/php’) in /var/www/html/artisan on line 10
[28-Oct-2025 14:34:05 Europe/London] PHP Stack trace:
[28-Oct-2025 14:34:05 Europe/London] PHP 1. {main}() /var/www/html/artisan:0
[28-Oct-2025 14:34:05 Europe/London] PHP Fatal error: Uncaught Error: Failed opening required ‘/var/www/html/vendor/autoload.php’ (include_path=‘.:/usr/local/lib/php’) in /var/www/html/artisan:10
Error: Failed opening required ‘/var/www/html/vendor/autoload.php’ (include_path=‘.:/usr/local/lib/php’) in /var/www/html/artisan on line 10
Call Stack:
0.0001 416088 1. {main}() /var/www/html/artisan:0
Stack trace:
#0 {main}
thrown in /var/www/html/artisan on line 10
2025-10-28 14:34:06,758 WARN No file matches via include “/etc/supervisor/conf.d/*.conf”
2025-10-28 14:34:06,758 INFO Set uid to user 0 succeeded
2025-10-28 14:34:06,847 INFO RPC interface ‘supervisor’ initialized
2025-10-28 14:34:06,848 CRIT Server ‘unix_http_server’ running without any HTTP authentication checking
Log 2:
[28-Oct-2025 14:34:17] WARNING: [pool www] child 72 said into stderr: “NOTICE: PHP message: PHP Fatal error: Uncaught Error: Failed opening required ‘/var/www/html/public/../vendor/autoload.php’ (include_path=‘.:/usr/local/lib/php’) in /var/www/html/public/index.php:14”
[28-Oct-2025 14:34:17] WARNING: [pool www] child 72 said into stderr: “Stack trace:”
[28-Oct-2025 14:34:17] WARNING: [pool www] child 72 said into stderr: “#0 {main}”
[28-Oct-2025 14:34:17] WARNING: [pool www] child 72 said into stderr: " thrown in /var/www/html/public/index.php on line 14"