Title: Installer.php corrupted file
Last modified: August 22, 2016

---

# Installer.php corrupted file

 *  Resolved [jairvaratojo](https://wordpress.org/support/users/jairvaratojo/)
 * (@jairvaratojo)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/installerphp-corrupted-file/)
 * Hi,
    Always used the duplicator plugin successfully. But in a new project I’m
   working, when generating the package, installer.php file is always created corrupted…
   with “machine code”. This has never happened before. Any idea what could be? 
   Thanks.
 * [https://wordpress.org/plugins/duplicator/](https://wordpress.org/plugins/duplicator/)

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

 *  Thread Starter [jairvaratojo](https://wordpress.org/support/users/jairvaratojo/)
 * (@jairvaratojo)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/installerphp-corrupted-file/#post-5534861)
 * Hi,
    I did some additional tests that can help. I checked the wp-snapshots folder
   and I could see that the installer.php file was correct. I downloaded the original
   file, and the a new installation worked properly. So I can say that installer.
   php file is created correctly, and that the error only happens if I download 
   it directly from the existing option in the plugin. Does that make sense?
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/installerphp-corrupted-file/#post-5535072)
 * Hey jairvaratojo,
 * That does make sense…
 * Checkout this question on the FAQs page I believe it may help or provide some
   clues about this issue:
    -> Browse to: [http://lifeinthegrid.com/duplicator-faq](http://lifeinthegrid.com/duplicator-faq)-
   > Find question: “Why can’t I download files / get a corrupted installer / see
   a 404.3 message?”
 * Hope that helps!
 *  [StelarBlack](https://wordpress.org/support/users/stelarblack/)
 * (@stelarblack)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/installerphp-corrupted-file/#post-5535135)
 * Hi, I have similar issue. After snapshot is created, I don’t see installer.php
   file, only installer-backup.php in my root folder inside archive. Is this normal
   behaviour? My process ended with error, due to server script execution time, 
   but all my files are here, at least I hope.
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/installerphp-corrupted-file/#post-5535136)
 * Hey StelarBlack,
 * The installer-backup.php is an identical copy of the installer.php file. It’s
   included in the package just incase you remove/delete/lose the installer.php 
   file. You should be able to use the installer-backup.php the exact same way you
   use the installer.php.
 * As to why the installer.php is missing, I’m not sure. Did you check the wp-snapshots
   folder and make sure that it got written to that location?
 * Hope that helps!
 *  [StelarBlack](https://wordpress.org/support/users/stelarblack/)
 * (@stelarblack)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/installerphp-corrupted-file/#post-5535137)
 * [@cory](https://wordpress.org/support/users/cory/),
 * My installer.php is OK, but naming convention is a bit confusing to me. It is
   a random characters string _installer.php, and my package build is always interrupted
   with “Build Interrupt” with Server Status: 200 -OK, and without Error Message,
   this is maybe due server execution script, even when I have increase it to 600
   secs. Now I’m getting blank screen when opening installer.php, which is obviously
   renamed to installer.php. Guess, I have to check FAQ page.
 * With regards,
 *  Thread Starter [jairvaratojo](https://wordpress.org/support/users/jairvaratojo/)
 * (@jairvaratojo)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/installerphp-corrupted-file/#post-5535138)
 * Hi StelarBlack.
    200 code is an Apache return everything is fine. I suggest that
   you check the Apache Log for details.
 *  Thread Starter [jairvaratojo](https://wordpress.org/support/users/jairvaratojo/)
 * (@jairvaratojo)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/installerphp-corrupted-file/#post-5535139)
 * Hi Cory,
    First of all, thanks for the feedback. The solution of the FAQ to add:“
   AddType application / octet-stream .zip .log .sql” In the .htaccess file does
   not solve, because the file installer is .php, and if I include php in AddType
   line, the website crashes. A suggestion: it would not be something to set the
   MIME standard in the code only for installer.php file? Thank you very much.
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/installerphp-corrupted-file/#post-5535140)
 * Hey jairvaratojo,
 * Your right .php should not be added to the AddType its really only for .zip,.
   log,.sql files. I’ll update the FAQ, sorry for any confusion…
 * Right now I’m following a pretty common pattern for pushing the file as a downloadable
   type
 *     ```
       header('Content-Description: File Transfer');
       header('Content-Type: application/octet-stream');
       header('Content-Disposition: attachment; filename=installer.php');
       header('Content-Transfer-Encoding: binary');
       header('Expires: 0');
       header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
       header('Pragma: public');
       ```
   
 * …
 * I think the only way to work around either of your issues is to possible try 
   and debug different scenarios on your servers. Simply making guesses at this 
   point would take too much time. This is an issue that happens to a very small
   number of people and I’m not quite sure why to be honest…
 * The only work around right now if your unable to share access is to grab a copy
   of the installer file inside the package.zip. Its will be named installer-backup.
   php or you may have to manually FTP the file from the wp-snapshots folder…
 *  [StelarBlack](https://wordpress.org/support/users/stelarblack/)
 * (@stelarblack)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/installerphp-corrupted-file/#post-5535141)
 * [@jairvaratojo](https://wordpress.org/support/users/jairvaratojo/),
 * Apache Error Log is empty, I have also checked files, everything is fine, I’m
   not only sure why is installer.php file named in way datetimeradnomstring_installer.
   php. First time I used it, it worked like charm, I’m now uploading old working
   snapshot, to see what happens, then I’ll try to reproduce installation on my 
   local stack, if, not I guess that I have to manually migrate site 🙁 P.S. Cache
   plugin is disabled. Maybe I have to comment out W3 cache in .htaccess. Anyway,
   great plugin.

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

The topic ‘Installer.php corrupted file’ 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/)

 * 9 replies
 * 3 participants
 * Last reply from: [StelarBlack](https://wordpress.org/support/users/stelarblack/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/installerphp-corrupted-file/#post-5535141)
 * Status: resolved