I can understand if you are searching for this article, you are in a desperate need and a VPS is not an option available to you. I'll not lecture you on how VPS is a good option but if you have that, go for it.
uploading the files is simple, all you have to do is make .zip and upload, the tricky part are as follow.
- The config cache issue
- The public directory issue.
I tell you how to resolve these two issues one by one.
Config Cache Issue
There are two possible ways to resolve this issue.
The first one is to use the artisan commands through URL, yes you heard it right. We can use all the artisan commands through URL. Here is the link for more details. Click here for more details
you can do the work which the command will do manually. i.e. you have to delete the old cache. ones the old cache is deleted, in next run new cache for config will be auto-generated.
To do that all you have to do is
root directory -> bootstrap directory -> cache
and delete all the files and we are good to go.
Public directory issue
to resolve this issue all you have to do is add a .htaccess file to your root directory with some rules. You can find the complete details here
hope this was of any help to you. In case you have any queries you are welcome to ask in the comment section.
happy coding.
samgan
Top comments (4)
Usually, I never comment on blogs but your article is so convincing that I couldn't stop myself to say something about it. You’re doing a great job Man, Keep it up the good work.
I have one question, Have you ever written any blog related to Laravel application on AWS using Cloudways - Managed Hosting.
sorry for delayed reply. i use cloudways but never wrote n article on it..
Great work. But as the technology is advancing, i think managed cloud hosting is becoming more relevant, as it is cost effective, reliable and secure, along with that if you go for it you dont have to worry about the backups and updates, and your site performance and speed will also improve . Try Devrims for a ultimate managed cloud hosting experience, as devrims provides one of the best hosting for laravel.
Thanks for sharing!