Title: wp-config.php empty after installing
Last modified: August 21, 2016

---

# wp-config.php empty after installing

 *  Resolved [mikerinos](https://wordpress.org/support/users/mikerinos/)
 * (@mikerinos)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/wp-configphp-empty-after-installing/)
 * Hi!
 * I’m still so happy to use you plugin… Thanks a lot again.
    Today I wanted to 
   move to another host for some test. After running the installer everything looks
   find and green but in fact when I wanted to access my webpage I only got a 500
   error. After some investigation, wp-config.php was empty!
 * So there might be a bug somewhere 🙂 (I ran the installer like 4 times)
 * Cheers,
 * [http://wordpress.org/extend/plugins/duplicator/](http://wordpress.org/extend/plugins/duplicator/)

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

 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/wp-configphp-empty-after-installing/#post-3818908)
 * That is very strange. It does update the wp-config.php but nobody has ever reported
   it showing a complete blank file. When the wp-config file is in the zip file 
   is it blank? Also check immediately after step 1 and see the state of the file.
 *  Thread Starter [mikerinos](https://wordpress.org/support/users/mikerinos/)
 * (@mikerinos)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/wp-configphp-empty-after-installing/#post-3818913)
 * In fact, the one in the zip file… well, there’s no wp-config.php in my zip file
   created by Duplicator…
 *  Thread Starter [mikerinos](https://wordpress.org/support/users/mikerinos/)
 * (@mikerinos)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/wp-configphp-empty-after-installing/#post-3818925)
 * I’ve tested Duplicator on my new host and in the archive there was the wp-config.
   php completed.
    I’ve checked some old archive on my “old” hosting and they don’t
   have it… strange…
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/wp-configphp-empty-after-installing/#post-3818943)
 * This is probably a permissions issue on the server where you created the package.
   The wp-config files permissions may be too strict for the Duplicator to pick 
   it up and put it in the package. 99% of the time when a file is missing from 
   the package its because of permissions on that file or directory. Also make sure
   you didn’t ever exclude it from the exclusion filter list found in the options
   dialog…
 *  [kvgorham](https://wordpress.org/support/users/kvgorham/)
 * (@kvgorham)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/wp-configphp-empty-after-installing/#post-3819052)
 * I just duplicated one wordpress site to another both hosted with godaddy. My 
   wp-config file is 0 bytes as well
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/wp-configphp-empty-after-installing/#post-3819053)
 * Hey kvgorham,
 * I would try the process again to make sure you didn’t run into a possible race
   condition. If it happens again then check the package.zip file. If the wp-config
   file is not blank from within the package, then there is probably a permissions
   issues when it is extracted from the zip to disk that is causing the file to 
   get zeroed out. I would contact godaddy support to validate the issue…
 * Cheers~
 *  [paddelboot](https://wordpress.org/support/users/paddelboot/)
 * (@paddelboot)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp-configphp-empty-after-installing/#post-3819113)
 * I have the same problem here with version 0.4.6. I clone a live site to a local
   development server and get a wp-config.php with 0 bytes. I have to manually get
   the wp-config.php from the archive and change the database connection in order
   for everything to work as expected.
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp-configphp-empty-after-installing/#post-3819114)
 * Hey paddelboot,
 * You may check the wp-config.php file inside the zip file and see its byte size.
   If its 0 inside the package then the plugin is having issues reading/writing 
   the file. If its not then the plugin probably doesn’t have enough permissions
   to update the file after its extracted. I would check your permissions and file
   owner settings on the root folder and file itself.

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

The topic ‘wp-config.php empty after installing’ is closed to new replies.

 * ![](https://ps.w.org/duplicator/assets/icon-256x256.png?rev=2906985)
 * [Duplicator - Backups & Migration Plugin - Cloud Backups, Scheduled Backups, & More](https://wordpress.org/plugins/duplicator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicator/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicator/reviews/)

 * 8 replies
 * 4 participants
 * Last reply from: [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/wp-configphp-empty-after-installing/#post-3819114)
 * Status: resolved