Title: Wp-Config.php VS WP-Config-sample.php
Last modified: September 1, 2016

---

# Wp-Config.php VS WP-Config-sample.php

 *  Resolved [crepe](https://wordpress.org/support/users/crepe/)
 * (@crepe)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wp-configphp-vs-wp-config-samplephp/)
 * Hello! I am trying to install wordpress manually. I have finished uploading WP
   to my site via Filezilla, and have created a database. The next step is to rename
   WP-CONFIG-SAMPLE.PHP as WP-CONFIG.PHP, and then edit the file to use my database.
   However, I cannot change the name of my WP-CONFIG-SAMPLE because WP-CONFIG already
   exists and the File Manager won’t let me rename it with WP-CONFIG.PHP already
   existing. Which do I change? Do I delete one?
 * (both files are located under public_html in my file manager)
 * Thank you so much for your help!

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

 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wp-configphp-vs-wp-config-samplephp/#post-7516718)
 * Do you have any idea why there is already a wp-config.php file present?
 *  Thread Starter [crepe](https://wordpress.org/support/users/crepe/)
 * (@crepe)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wp-configphp-vs-wp-config-samplephp/#post-7516719)
 * No. But I think it may be because I was in public_html instead of the wordpress
   specific folder. Because when I went into the wordpress folder I was able to 
   rename it as WP-CONFIG.PHP. But I dont know if that solved the problem, because
   now when I try to open the install link ([http://theoathless.com/wp-admin/install.php](http://theoathless.com/wp-admin/install.php))
   I get this error:
 * Warning: require(/home1/crepe/public_html/wp-includes/load.php): failed to open
   stream: No such file or directory in /home1/crepe/public_html/wp-settings.php
   on line 21
 * Fatal error: require(): Failed opening required ‘/home1/crepe/public_html/wp-
   includes/load.php’ (include_path=’.:/opt/php56/lib/php’) in /home1/crepe/public_html/
   wp-settings.php on line 21
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wp-configphp-vs-wp-config-samplephp/#post-7516721)
 * A) do you already have a site located in public_html
 * B) where are you trying to install wordpress, in public_html or public_html/wordpress?
 * The difference looks like this when you try to install:
 * `http://theoathless.com/wp-admin/install.php` -vs-
 * `http://theoathless.com/wordpress/wp-admin/install.php`
 *  Thread Starter [crepe](https://wordpress.org/support/users/crepe/)
 * (@crepe)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wp-configphp-vs-wp-config-samplephp/#post-7516723)
 * I don’t think I have a site located in public_html.
 * I don’t think I’ve installed anything, but I think i did upload wordpress into
   my public_html, because when I open public_html I see the readme.html that details
   how to install wordpress.
 * I tried both links and they both came up with the same error.
 * I’ll include a picture if that helps:
    [http://i1162.photobucket.com/albums/q531/niece20/filemanager.jpg](http://i1162.photobucket.com/albums/q531/niece20/filemanager.jpg)
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wp-configphp-vs-wp-config-samplephp/#post-7516754)
 * I think if it was me, I would try first deleting all of the WordPress related
   files and folders from the public_html directory, then start with a fresh upload
   of WordPress files and try the manual installation procedure again.
 * The time stamp on the wp-config.php file is 37 minutes older that the wp-config-
   sample file. It was probably created automatically if you chose to let WordPress
   attempt to create the file during an earlier installation.
 *  Thread Starter [crepe](https://wordpress.org/support/users/crepe/)
 * (@crepe)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wp-configphp-vs-wp-config-samplephp/#post-7516768)
 * Ok. Thank you so much.
    Just to be triple sure, you want me to delete all wordpress
   files in public_html (not the wordpress folder that is not under public_html),
   then re-upload wordpress to the website, but where to?
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wp-configphp-vs-wp-config-samplephp/#post-7516771)
 * > you want me to delete all wordpress files in public_html (not the wordpress
   > folder that is not under public_html)
 * That’s what I would do. I don’t know why there is a wordpress folder outside 
   of your public_html directory, but it won’t have any effect on your web site.
   You can remove that one too if you like. Only files located inside of public_html
   will be available on the web.
 * > then re-upload wordpress to the website, but where to?
 * Upload all of the WordPress files right into your public_html directory. That
   way, once wordpress is installed, you can access it directly from your domain
   name without the need for a sub-directory.
 * You have probably been using this already, but here is the step by step guide:
   [https://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Install](https://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Install)
 * Step 4 helps explain the differences between installing at the root of your domain,
   or in a sub-directory
 *  Thread Starter [crepe](https://wordpress.org/support/users/crepe/)
 * (@crepe)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wp-configphp-vs-wp-config-samplephp/#post-7516774)
 * Thank you so much! Here’s hoping that fixes it 🙂
 *  Thread Starter [crepe](https://wordpress.org/support/users/crepe/)
 * (@crepe)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wp-configphp-vs-wp-config-samplephp/#post-7516785)
 * So, apparently this didn’t fix my issue. I followed the steps, up to step number
   four which asks me to upload the wordpress files to my directory root (/home1/
   crepe), which I did and now I’m getting this error:
 * Warning: require(/home1/crepe/public_html/wp-blog-header.php): failed to open
   stream: No such file or directory in /home1/crepe/public_html/index.php on line
   17
 * Fatal error: require(): Failed opening required ‘/home1/crepe/public_html/wp-
   blog-header.php’ (include_path=’.:/opt/php56/lib/php’) in /home1/crepe/public_html/
   index.php on line 17
 * Here is the image of my directory root now ([http://i1162.photobucket.com/albums/q531/niece20/newfilemanager.jpg](http://i1162.photobucket.com/albums/q531/niece20/newfilemanager.jpg))
 *  Thread Starter [crepe](https://wordpress.org/support/users/crepe/)
 * (@crepe)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wp-configphp-vs-wp-config-samplephp/#post-7516787)
 * *I get the aforementioned error when I try to enter the wp-admin and install 
   wordpress.
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wp-configphp-vs-wp-config-samplephp/#post-7516794)
 * That’s a nice image of your /Home directory, but wordpress needs to be installed
   in your** public_html** directory.
 * Again, delete the WordPress files in your** public_html** directory.
 * Upload the new wordpress file to your **public_html** directory. Not your /Home
   directory.
 * Your **public_html **directory is the _only_ directory where files can be viewed
   from the web.
 * [http://support.hostgator.com/articles/specialized-help/technical/wordpress/how-to-install-wordpress-manually](http://support.hostgator.com/articles/specialized-help/technical/wordpress/how-to-install-wordpress-manually)
 *  Thread Starter [crepe](https://wordpress.org/support/users/crepe/)
 * (@crepe)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wp-configphp-vs-wp-config-samplephp/#post-7516796)
 * Thank you so much for your patience and time. Finally got it to work.

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

The topic ‘Wp-Config.php VS WP-Config-sample.php’ is closed to new replies.

## Tags

 * [change](https://wordpress.org/support/topic-tag/change/)
 * [config](https://wordpress.org/support/topic-tag/config/)
 * [edit](https://wordpress.org/support/topic-tag/edit/)
 * [sample](https://wordpress.org/support/topic-tag/sample/)
 * [two](https://wordpress.org/support/topic-tag/two/)
 * [wp-config.php](https://wordpress.org/support/topic-tag/wp-config-php/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 12 replies
 * 2 participants
 * Last reply from: [crepe](https://wordpress.org/support/users/crepe/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/wp-configphp-vs-wp-config-samplephp/#post-7516796)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
