• …and I have no idea what to do. While trying to change permissions so I can upload images, I changed something and now I can’t even view my site. This is the error message that comes up:

    Warning: main(/home/mrmarco/public_html/wordpress/wp-includes/wp-db.php): failed to open stream: Permission denied in /home/mrmarco/public_html/wordpress/wp-settings.php on line 69

    Fatal error: main(): Failed opening required ‘/home/mrmarco/public_html/wordpress/wp-includes/wp-db.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/mrmarco/public_html/wordpress/wp-settings.php on line 69

    That stinks and I don’t have a clue how to fix it.

    please help

Viewing 15 replies - 1 through 15 (of 17 total)
  • First try changing permissions on your wp-content folder to 777 to see if that resolves the problem.

    Thread Starter MrMarco

    (@mrmarco)

    MichaelH – That seems like I’d be leaving myself really vulnerable to all the “evil doers” out there.

    According to the Developers, the wp-content folder is meant to be writeable.

    Not permanently, silly. You are in troubleshooting mode… Get over it. 🙂 If 777 makes it work then go to 775 or 755 and you’re done.

    MichaelH :: Mine is 775.

    Good point WarAxe though I understand that may differ based on server.

    Thread Starter MrMarco

    (@mrmarco)

    I changed the wp-content to 777 but it made no difference; still the same error. I returned it to 764 for now.

    Thread Starter MrMarco

    (@mrmarco)

    I’m hosted with A Small Orange if that helps.

    So what folders did you originally change permissions on?

    Make sure your other folders are 755. And make sure wp-content/cache is writeable.

    Thread Starter MrMarco

    (@mrmarco)

    MichaelH, I really don’t remember which ones. But I did go back and change everything to 755 (wordpress file, index.php, wp-admin, wp-content & wp-includes).

    Now I don’t get the error message. I do get a blank screen though. Not great but at least it looks like some progress is happening.

    Question; when I change the permissions for a folder, does that automatically change the permissions for the contents of the folders as well?

    Thread Starter MrMarco

    (@mrmarco)

    BTW – I have no wp-content/cache file… ???

    755 on wp-content/themes?

    Changing wp-content permissions won’t automatically change subfolders.

    Thread Starter MrMarco

    (@mrmarco)

    I found the cache in the wp-includes/cache. It’s permission is set at 664. Writeable to Owner and Group but not Others.

    Thanks for all your help so far, I really appreciate it.

    chmod wordpress/wp-includes/wp-db.php to 644 .

    the end.

    no db connection because it cannot read the damn file.

    If you changed permissions on the wp-includes DIRECTORY .. it MUST be 755 as well for ANTHING in that dir to be usable by Apache.
    Additionally, if anything inside that particualr directory besides wp-db.php is NOT 644, chmod those files to 644 as well

    Thread Starter MrMarco

    (@mrmarco)

    Yup – wp-content/themes is 755… still blank 🙁

Viewing 15 replies - 1 through 15 (of 17 total)

The topic ‘I REALLY screwed up now…’ is closed to new replies.