I have a website that I've been running for over 20 years for friends and family, built on PHP and MySQL, and it's starting to feel outdated. It has around 50 unique pages where users interact, plus another 50 pages for admin tasks. The site relies heavily on the database and lacks modern features like templating and responsive design for mobile users.
I currently host it on a purchased shared hosting plan, which I want to keep. I've checked out frameworks like Vue, Nuxt, and Laravel, but I'm concerned that deploying them on shared hosting could be tricky. Most tutorials I find focus on local development rather than actual deployment on shared servers. What are some practical suggestions for updating my site to more modern standards without completely starting from scratch?
3 Answers
You can definitely run Laravel on shared hosting, though it might take some extra effort to set up. Why not consider a gradual migration? You don't have to rewrite everything at once. Start by dropping your old code into Laravel's public folder and slowly build new features with it. This way, you're not overwhelmed by the entire task at once. And for responsive layouts, tools like Bootstrap or Tailwind CSS can help a lot, and there are ways to incorporate them without a full overhaul.
Honestly, frameworks are nice, but sometimes you don’t need them for simple tasks. You could go with a templating engine like Twig or Blade by installing them as standalone packages rather than using a whole framework. For your queries, consider caching them to speed things up without diving headfirst into a major overhaul. And remember, making your site responsive can sometimes be done with just CSS tweaks; you don’t always need a framework for that!
Good point! There's definitely merit to keeping it simpler to avoid the headaches of big updates.
Honestly, if your users are fine with the current layout, maybe it's best not to rush into a big change. I mean, a full rewrite could be a headache, especially for just 50 users! But if you really want to modernize, upgrading to the latest PHP and MySQL is a good start. You can add caching to improve performance without overcomplicating things with large frameworks. For responsive design, just grab a CSS library like Tailwind or Pure.css and use it to refresh the look without diving deep into new code.
That’s very true! Sometimes a small facelift with a CSS update is all you really need.

That's a solid plan! And if you're looking at Vue, remember you can integrate it into your existing structure rather than rewriting it all.