Apache hinkyness

I encountered a weird web problem today when adding images to the company website. The new images I’d added wouldn’t appear on their page, and when pointing the browser directly at them, I received a 403 Forbidden error.

After insuring that the permissions and filenames were all correct, I sat down with the sysadmin to see if a second pair of eyes and a root login could find anything amiss. After spending half an hour of finding nothing in the logfile or permissions settings, we both gave up.

I returned to my desk, and on a whim, performed the following commands:
  1. cp image-file.gif foo.gif
  2. rm image-file.gif
  3. mv foo.gif image-file.gif
I can’t imagine why this would have solved the problem, but it did. The implications–that something might be messed up deep within the innards of Apache or the Fedora filesystem–make me worry what other bizarre behavior I can expect from the webserver in the future.

This isn’t the first time machines have had odd behavior in my presence, which I’ve been able to dispel by performing seemingly unrelated actions. I’m obviously in the wrong business. I should pack my bags and hit the road as a traveling computer faith healer.

2 Comments

  1. Lewis
    Posted December 5, 2008 at 2:19 pm | Permalink

    One of our coworkers used to have strange interactive properties with computers. We determined that he was made of magnets:
    http://flickr.com/photos/snailwing/1305975210/

  2. Posted March 15, 2009 at 1:16 pm | Permalink

    Doing this would change the file ownership / permissions, which might have been the cause of the problem…

    @Lewis’ magnet idea theory good, though.

    Incidentally, it was a bit of a shock clicking on a tribble (Palm page) link and arriving here… Took a long (internet) time to realise I was sill in the right place.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*