Title: Deployment fails because php version incorrect
Last modified: August 21, 2016

---

# Deployment fails because php version incorrect

 *  Resolved [lvwebmaster](https://wordpress.org/support/users/lvwebmaster/)
 * (@lvwebmaster)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/deployment-fails-because-php-version-incorrect/)
 * Not a question, but I thought I’d pass on the result of several hours of head-
   bashing with my hosting company’s support team.
 * The hosting company is Tsohost – that’s relevant and the following information
   may not apply to other hosts. The problem was that trying to deploy a Duplicator
   installation repeatedly failed due to php version 5.2.17 being required when 
   only 5.2.6 was available.
 * It turns out that Tsohost use the .htaccess file to set the php version with 
   the line:
    AddType x-httpd-php53 .php This allows them to offer the facility 
   of specifying a php version through their UI.
 * If this file is absent, the php setting reverts to a default that Duplicator 
   does not accept. The solution is to make sure that an .htaccess file with this
   line is present in the folder to which the Duplicator files are uploaded and 
   run. When run Duplicator replaces this file with the one from the archive, containing
   the WordPress initialisation, so it’s probably useful to check that the php setting
   is still in .htaccess **after **Duplicator deployment as well.
 * [http://wordpress.org/plugins/duplicator/](http://wordpress.org/plugins/duplicator/)

Viewing 1 replies (of 1 total)

 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/deployment-fails-because-php-version-incorrect/#post-4497289)
 * That is good to know! Thanks for passing that info along…

Viewing 1 replies (of 1 total)

The topic ‘Deployment fails because php version incorrect’ 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/)

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)

 * 1 reply
 * 2 participants
 * Last reply from: [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/deployment-fails-because-php-version-incorrect/#post-4497289)
 * Status: resolved