I try to host laravel web app. First what i did uplodad in htdcos public files and after create one folder and in foder other fils of project. after i edit index.php and try run… adn i got this error. Can you say me what i need to do?
One thing you can do is go to Control Panel and scroll down and click on “Alter PHP Config” then select your domain and click “Alter PHP Directives”. Switch “Display Errors” to “On” and click the “Alter PHP Directives” button again. This should show you the errors from PHP.
I’ve seen cases before where some of the Composer autoload files were so big, they exceeded the 1 MB size limit for PHP files, resulting in them being discarded on upload. You may want to check the size of the missing files on your own computer to see if they are bigger than 1 MB.
If this is the issue, then you maybe able to reduce their site by reinstalling the Composer dependencies, but without the -o or --optimize-autoloader flags. The optimized autoloader file can be quite big, and you can avoid it that way.
As for the node_modules, you don’t need them here. The node_modules are only used while building the frontend code. They are development files and don’t need to exist on a live server. They are a waste of disk space here because you can’t build the frontend here anyways.