Title: wp-config.php error messages
Last modified: August 18, 2016

---

# wp-config.php error messages

 *  Anonymous
 * [22 years, 3 months ago](https://wordpress.org/support/topic/wp-configphp-error-messages/)
 * I’ve been trying to install WordPress, but I get stuck at creating the wp-config.
   php file. I edited wp-config-sample.php and renamed it to wp-config.php, uploaded
   it, and went to wp-admin/install.php, where I got this error message:
    Warning:
   main(/home/karma/public_html/wp/wp-includes/wp-db.php): failed to open stream:
   No such file or directory in /home/karma/public_html/wp/wp-settings.php on line
   24 Fatal error: main(): Failed opening required ‘/home/karma/public_html/wp/wp-
   includes/wp-db.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/
   karma/public_html/wp/wp-settings.php on line 24 I have a database, I have a user
   in that database, and the information in config is correct as far as I can see.
   Can anyone help?

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

 *  [spacemonkey](https://wordpress.org/support/users/spacemonkey/)
 * (@spacemonkey)
 * [22 years, 3 months ago](https://wordpress.org/support/topic/wp-configphp-error-messages/#post-35799)
 * “/home/karma/public_html/wp/wp-includes/wp-db.php”
    Do you have the proper permissions
   set on all of your files? That error is generated by either 1) the files aren’t
   there 2) the permissions are incorrect and the files cannot be opened. On my 
   server, I have to set all of the files/directories to allow executing for some
   reason. Check to see what permissions you need.
 *  [NuclearMoose](https://wordpress.org/support/users/nuclearmoose/)
 * (@nuclearmoose)
 * [22 years, 3 months ago](https://wordpress.org/support/topic/wp-configphp-error-messages/#post-35800)
 * You’ve probably checked this, but just in case…have you ensured that in the wp-
   config you indicated the correct table prefix as well? Example: wp_ or the like?
 *  Thread Starter Anonymous
 * [22 years, 3 months ago](https://wordpress.org/support/topic/wp-configphp-error-messages/#post-35833)
 * Spacemonkey – I did try setting all the permissions (777), but I wasn’t sure 
   if that’s what they’re supposed to be set to.
    Nuclear – Yeah, I left it as wp_.
   I guess i’ll just re-install. Thanks anyway. : )

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

The topic ‘wp-config.php error messages’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 3 participants
 * Last reply from: Anonymous
 * Last activity: [22 years, 3 months ago](https://wordpress.org/support/topic/wp-configphp-error-messages/#post-35833)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
