Title: Permissions and compat.php
Last modified: August 19, 2016

---

# Permissions and compat.php

 *  Resolved [heriz](https://wordpress.org/support/users/heriz/)
 * (@heriz)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/permissions-and-compatphp/)
 * Oh dear. I just tried to ‘harden’ my WP blog using the security tutorial on this
   site, and something has gone horribly wrong. I found myself suddenly unable to
   do anything at all, despite only having changed the said CHMOD permissions to
   744. I now receive this error page:
 * Warning: main(/…/…/…/…/wp-includes/compat.php) [function.main]: failed to open
   stream: Permission denied in /home/…/public_html/…/wp-settings.php on line 117
 * Warning: main(/…/…/…/…/wp-includes/compat.php) [function.main]: failed to open
   stream: Permission denied in /home/…/public_html/…/wp-settings.php on line 117
 * Fatal error: main() [function.require]: Failed opening required ‘/…/…/…/…/wp-
   includes/compat.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/…/
   public_html/…/wp-settings.php on line 117
 * Line 117 in wp-settings.php being
 * require (ABSPATH . WPINC . ‘/compat.php’);
 * I’ve now been forced to put a 777 CHMOD on everything to see if it reverses the
   error. It hasn’t. I’m now unable to move within my admin, and get that error 
   every time I try to do anything.
 * Clearly I’ve made a big mistake but does anyone know how to remedy it?
 * Huge thanks in advance…
 * Lewis

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [heriz](https://wordpress.org/support/users/heriz/)
 * (@heriz)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/permissions-and-compatphp/#post-689348)
 * … and the blog no longer works at all.
 * It’s still under construction so it’s not being viewed by anyone yet.
 *  Thread Starter [heriz](https://wordpress.org/support/users/heriz/)
 * (@heriz)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/permissions-and-compatphp/#post-689355)
 * Right, sorted… some files/folders in the wp-includes directory were set at 744.
 * I’ll just have to be a bit more careful in the future…

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Permissions and compat.php’ is closed to new replies.

## Tags

 * [chmod](https://wordpress.org/support/topic-tag/chmod/)
 * [permissions error](https://wordpress.org/support/topic-tag/permissions-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [heriz](https://wordpress.org/support/users/heriz/)
 * Last activity: [18 years, 3 months ago](https://wordpress.org/support/topic/permissions-and-compatphp/#post-689355)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
