Error 500 After deploying application I have just moved my laravel 7 application to a shared hosting server. My web php version is 7.3.19. I have. I keep getting Error :500 for the routes
I have updated the public_html/index.php file to point to:
'/../projectname/vendor/autoload.php' and '/../projectname/bootstrap/app.php'
I am not sure what else should i be changing, any permissions on the folders? I have updated
Did you try adding a RewriteBase. Also use the developer tools to see what's going on.
is it apache 500 error or laravel error?
make sure ../projectname/storage is writable by your webserver. Delete any files that are in there incase they are owned by a different user.
delete all files? without exception? including the subfolders?
Network tab just says error:500 and how do i add RewriteBase?
I think composer is not the main issue, because the composer role is just downloading modules that defined in the composer.json
As long as you can upload the vendor files from local to your shared hosting, and then extract it. It would be fine?
If you uploaded the project via FTP, then composer is not the problem.
Did you clear "all" cache prior to uploading. I mean in laravel, not browser.
And is the PHP version correct? And the required PHP extensions enabled?
i think what im not getting from this thread is if there's any folders i should be making 0777 since most in my app are 0755. also my project still has the public folder and im wondering if i should delete it and only be left with public_html which contains the contents of publicanyways
Your error sounds like its not got far enough to start logging errors properly.
It could be that your modifications to index.php are not correct.
interesting.... you yourself marked it as best answer but at the end you hit error....
Yeah because for the specific problem of deploying on shared hosting that response solved the problem. The error 500 was not related to deployement but another issue in the application itself
Please sign in or create an account to participate in this conversation.