By Irfan Shafi
I am a developer
I recently migrated my WordPress site from Hostinger to a DigitalOcean droplet (Ubuntu + Nginx). Most of the site works fine, but I’m facing a weird issue with one of the store pages, it doesn’t load correctly or throws a 500 error intermittently.
For example, sometimes it loads partially, or styles don’t render fully.
I’ve checked error logs and increased PHP limits, but the problem persists. Anyone else faced this with DO droplets or during similar migrations? Is it Nginx config or file permission related?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Heya,
Check your error logs, both for your application/php error log or the nginx error logs. In there you’ll be able to see a more detailed explanation and reason behind this failure. If you provide it to me, I can try and help you with a more pinpoint answer.
Hi there,
It definitely sounds like it could be a file permission or Nginx config issue, especially if the page is loading partially or styles are missing.
Double-check your Nginx server block to make sure static files (like CSS/JS) are correctly served and not being blocked.
Also confirm ownership and permissions, your web files should usually be owned by www-data
if you’re using Nginx with PHP-FPM.
Another common cause is missing .htaccess
rewrites if you were using Apache before. Nginx doesn’t use .htaccess
, so you might need to manually translate those rules.
If nothing stands out in your logs, try enabling WP debug mode to get more detailed PHP errors. Sometimes a broken plugin or missing file throws silent 500s.
- Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.