I am the designer for a small business and I have been tasked with trying to get a Laravel project to work on the customer’s server. I am not a PHP expert and only know a small amount – I’ve taken this on at very short notice due to a very tight deadline and my clients inability to find anyone else at such short notice.
I have attempted a Google search but nothing seemed to help. The file structure of the cPanel is as follows:
All of which is inside the handymans-hardware.co.uk folder. When I navigate to the domain root I can just see the file tree and when navigating to root/public in the browser I get an error. How can I set this up? It seems the developer that built this didn’t set it up correctly and has caused some issues.
Here is the error:
Line 50 of index.php is $kernel = $app->make(IlluminateContractsHttpKernel::class);
2
Answers
Looking at the screen shots, it appears you did not upload the site content to public_html?, I could be wrong, but upload what you have inside of the project folder “handymans-hardware.co.uk” directly to public_html (seems simple and you may have done this, but thought I would ask)
Appears there is some SQL table errors triggered as well navigating to: http://www.handymans-hardware.co.uk/shop
When uploading Laravel to cPanel there are some few things you have to note
look for this lines of code in the index.php
Then edit those two above to this
If you are still confused view this video tutorial: Youtube Upload Laravel to cpanel