Issues When Deploying Project on Shared Hosting / Godaddy /
Hi everyone,
I want to deploy my Laravel app on Godaddy shared hosting but encountering issues. First of all, let me explain my directory structure.
I uploaded the public folder into "public_html" and on the same level as "public_html" I created a new folder, called it Laravel and placed all other files and folder in it. Then I changed the "index.php" file in "public_html" to the correct path. I also configured the database.conf and .ENV files and put the correct credentials for MySQL.
I encountered these issues:
When I open the website, I see an error page (Laravel error page :) ) which says
"SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO) (SQL: select * from properties where deleted_at is null order by id desc limit 3)"
I don't understand the reason for this as I have changed my db credentials.
I edited my homepage controller (the function that handles the "domain.com/" route ) so that it doesn't need a DB connection (just to experiment) and it threw this error -
"View [welcome] not found."
When I edit my "web.php" file (routing) so that it just returns a string, it works!
P.S. Everything works well on my local machine :/
Thank you very much in advance :)
Please or to participate in this conversation.