• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Michele Neylon :: Pensieri

Michele Neylon :: Pensieri

Technology, Marketing, Domains, Thoughts

Debugging a Broken Website

June 8, 2020 by Michele Neylon Leave a Comment

Technology binary code number data alert System Error message on display screen / Computer network problem error software concept - selective focus

The joys of running websites is that you often end up troubleshooting issues that crop up. Sometimes the error can be something really simple, or fairly obvious. Like you switch to the latest version of PHP but forget to install all the required PHP modules. Other times, however, the error is more niggly than anything else, so you put it on the long finger.

In my case I’d been having ongoing issues with one of my personal blogs. It kept throwing errors, but then would behave long enough that I’d assume I’d fixed the issue. You’d get a rather “helpful” HTTP 500 error, but there was nothing in the logs that I could see. I tried tweaking the various plugins that I had installed and disabled a few to see if that would fix the errors, but it didn’t make any difference.

The apparent lack of any detailed logs of the error was really annoying, and plain weird. But I didn’t have time to explore the problem properly, until things came to a head over the weekend.

So it turns out there were logs, but I had been looking in the completely wrong place!

The PHP errors were being logged into a completely separate log file called (helpfully):

$sitename.php.error.log

Which instead of being in the same location as the main logs for the site, or even for the server, were in:

/home/$user/logs

So once I started tracking that log file I quickly realised that the issue was memory related.

Now this is where it got a little odd.

The server’s PHP memory limits were set at a “sane” value and none of the other sites on there were having any memory issues.

So why on earth was this one site hitting problems?

To add to the head scratching the error was about a relatively low amount of memory causing the issue.

So what was going on?

One of the features in cPanel is that at the user level you can tweak your PHP settings. Probably very useful in some circumstances, but since I have full root access on the entire server it’s not something I’d normally mess around with.

But, for some odd reason, there was a PHP.ini override in the user’s home directory. And it had a stupidly low memory limit.

Some more poking around led to me discovering that the setting had been made when the site was running php 7.3 (no idea by whom of course!).

Anyway fixing the memory limit in cPanel made the problem go away – at least for now!

Thanks to one of my team who were able to help me fix this – I was really getting ready to give up!

Related Posts:

  • computer-code-screens
    Dodgy WordPress Developer Tactics
  • wine-prices
    Wine Is Confusing
  • 292580518_118073084270186_721063704789268417_n
    Keeping the Greenhouse Under Control is an Uphill Struggle!
  • 354334260_845474640516872_6304621654479892179_n
    Concerts and More
  • Video thumbnail for youtube video zeqb6xbeuco
    Tracy Chapman Duet With Luke Combs at Grammys
  • privacy-keyboard-keys
    My Privacy Has Been Sold

Filed Under: Random Tagged With: php

Michele is founder and CEO of Irish hosting provider and domain name registrar Blacknight. Read More…

Reader Interactions

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

dotblog founder

Mastodon

Archives

  • Bluesky
  • Instagram
  • Threads
  • Twitter

Pages

  • About Me
  • About This Site
  • Archives
  • Comments Policy
  • Contact Me
  • Newsletter
  • Privacy

Blogroll

  • My Mastodon
  • Gordon Hudson
  • Technology.ie Podcast
  • Damien Mulley
  • Blacknight Blog

Stalking Links

Subscribe to Michele Neylon :: Pensieri

Blogroll

  • Blacknight Blog
  • Damien Mulley
  • Gianni Ponzi
  • Gordon Hudson
  • Grandad
  • My Mastodon
  • Paul Savage – BlackDog SEO
  • Stewart Curry
  • Technology.ie Podcast
  • Tom Doyle

Sites

  • Business Travel Tips
  • Discount Coupon Codes
  • Domain News
  • Fat.ie – my diet blog
  • Film Posters
  • Film Reviews
  • Films
  • Free Desktop Wallpapers
  • Irish Blogger Discussion Forum
  • Irish Stamps
  • Movie Trailers and News
  • Paste.ie

Footer

Site hosted in Ireland by Blacknight - Content copyright Michele Neylon

Copyright © 2025 · Magazine Pro on Genesis Framework · WordPress · Log in