Wordpress gotchas

Here’s a couple of gotchas that took a minute or two to sort out when I did my first ever Wordpress install last night. Essentially file permissions weren’t quite what I expected.

  • When unzipped in the web server root, all subdirectories had their permission bits set to 0700. It took me a while to notice this and realise it was the cause of my installation failing. A quick
find . -type d|xargs chmod +rx

sorted that out.

  • Wordpress didn’t have permission to create the .htaccess file it needed to do URL rewriting (click on the heading of this post to see it in action). Problem quickly solved with
touch .htaccess
chmod 666 .htaccess

(Yes, I probably should have done something a little more restrictive with the .htaccess file.)

It’s marvellous having a hosting provider who provides shell access.


Comments are closed.