getButterfly Logo getButterfly

I’ve just been greeted with WordPress’ message, while installing a client’s blog:

Sorry, I can’t write to the directory. You’ll have to either change the permissions on your WordPress directory or create your wp-config.php manually.

This usually appears when there is no top-level directory to CHMOD to 755 or 777. What should you do? It’s pretty easy. Rename the wp-config-sample.php to wp-config.php. Edit the file with your correct database details. Go to wp-admin directory and open setup-config.php file.

Comment out the following lines:

[php]
//if (!file_exists(ABSPATH . ‘wp-config-sample.php’))
//wp_die(‘Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file from your WordPress installation.’);[/php]

[php]
//if (!is_writable(ABSPATH))
//wp_die(“Sorry, I can’t write to the directory. You’ll have to either change the permissions on your WordPress directory or create your wp-config.php manually.”);[/php]

You should find these lines close to the top of the file. Save it and follow the steps on screen. Your WordPress will install without a problem.


Subscribe to getButterfly Blog

Once a week or so we send an email with our best content. We never bug you, we just send you our latest piece of content.



If you found any value in this post, agree, disagree, or have anything to add - please do. I use comments as my #1 signal for what to write about. Read our comment policy before commenting! Comments such as "Thank you!", "Awesome!", "You're the man!" are either marked as spam or stripped from URL.

Leave a Reply

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