Title: Plugin Install failed after migrating to live server
Last modified: August 21, 2016

---

# Plugin Install failed after migrating to live server

 *  [mooreart](https://wordpress.org/support/users/mooreart/)
 * (@mooreart)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/plugin-install-failed-after-migrating-to-live-server/)
 * I just moved migrated from a local server to a live site, with not too much trouble.
   I then tried installing a new plugin and it appears that it tried to install 
   in a local directory instead of on the live site. This is the error i received:
 * Warning: touch() [function.touch]: Unable to create file C:/xampp/apps/wordpress/
   tmp/social-networks-auto-poster-facebook-twitter-g.tmp because No such file or
   directory in /home/content/j/e/r/jeremiahmoore/html/lucearts/wordpress/wp-admin/
   includes/file.php on line 155
 * Warning: unlink(C:/xampp/apps/wordpress/tmp/social-networks-auto-poster-facebook-
   twitter-g.tmp) [function.unlink]: No such file or directory in /home/content/
   j/e/r/jeremiahmoore/html/lucearts/wordpress/wp-admin/includes/file.php on line
   479
 * Download failed. Destination directory for file streaming does not exist or is
   not writable.
 * Not sure of the best way to fix this.

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

 *  [Alpatrose](https://wordpress.org/support/users/alpatrose/)
 * (@alpatrose)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/plugin-install-failed-after-migrating-to-live-server/#post-4694640)
 * As far as I can tell, you gotta update your paths.
 * Because every time you go from local to live you face broken links and images
   not showing up.
 * If that’s really the problem you can fix it with an SQL query:
    `UPDATE wp_posts
   SET post_content = REPLACE(post_content, 'localhost/test/', 'www.yoursite.com/');`
 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/plugin-install-failed-after-migrating-to-live-server/#post-4694821)
 * A simple search and replace will probably create more problems than it solves.
 * When you move a site, you must replace the old URLs and paths with the new ones.
   Some of these are stored in the database in ‘serialized’ form where the string
   length is stored along with the string. You must use special tools to search 
   and replace the old values with the new ones.
 * If you replace an old URL or path with a new one of a different length, it will
   break the serialization, causing many different problems.
 * If the old site is still available, you can use the steps shown in this article
   to copy the site: [http://wordpress.mcdspot.com/2012/08/22/migrating-a-wordpress-site-step-by-step/](http://wordpress.mcdspot.com/2012/08/22/migrating-a-wordpress-site-step-by-step/)
 * If the old site is not available, and you still have a copy of the database from
   that site, you should be able to use this tool to make the changes: [http://interconnectit.com/products/search-and-replace-for-wordpress-databases/](http://interconnectit.com/products/search-and-replace-for-wordpress-databases/)
 *  [zeniph](https://wordpress.org/support/users/zeniph/)
 * (@zeniph)
 * [12 years ago](https://wordpress.org/support/topic/plugin-install-failed-after-migrating-to-live-server/#post-4694905)
 * inside wp-config.php (and possibly in other theme/pluggin files too I guess) 
   look for anything defining the constant “WP_TEMP_DIR”. Something like the below:
 * `define('WP_TEMP_DIR', '/home/yoursiteusername/public_html/wp-content/uploads');`
 * its possible to override and hardcode the default temp upload value with this
 *  [wavesofchange](https://wordpress.org/support/users/wavesofchange/)
 * (@wavesofchange)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/plugin-install-failed-after-migrating-to-live-server/#post-4694913)
 * I have the same problem as mooreart above and appreciate the three possible solutions.
   I think zeniph is correct that something has to be change in the wp-config.php,
   but I don’t know enough to attempt it without some very explicit step-by-step
   instructions from someone in the know. Please help if anyone can.
    wavesofchange

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

The topic ‘Plugin Install failed after migrating to live server’ is closed to new
replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 5 participants
 * Last reply from: [wavesofchange](https://wordpress.org/support/users/wavesofchange/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/plugin-install-failed-after-migrating-to-live-server/#post-4694913)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
