Hacker News new | ask | show | jobs
by rlx0x 4752 days ago
> Being one configuration directive away from embarrassing failure is not a good idea.

I can't stop but thinking about PHP webapps, for instance Wordpress serves wp-index.php in the same directory as wp-config.php, indeed only one configuration directive away from blowing it all up in your face.

Every few months or so I encounter a huge site that serves me PHP source code. For instance the BBC: http://www.bbc.co.uk/radio4/hitchhikers/zmachine/hhguide.xml

But hey its PHP I guess anyone who would care about something like that has stopped using it years ago.

2 comments

WordPress can work with wp-config.php in your document root but it's recommended to move it 1 directory up (which is supported our of the box).
Why in the world would anyone serve a php file as .xml? That seems to be the problem... xml files are meant to be readable as text.
I would guess it's a configuration error around something like smart extensions, maybe? "If the clean URL has a .xml at the end, send the request through PHP."

Dumb, but it's the only thing I can come up with offhand.