Title: Wrong upload dir??
Last modified: August 19, 2016

---

# Wrong upload dir??

 *  Resolved [rootdogg](https://wordpress.org/support/users/rootdogg/)
 * (@rootdogg)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/wrong-upload-dir/)
 * Hey, I installed wordpress on a test host and then moved it on to a live host,
   now I can’t upload images.
 * I know what the problem is just don’t know how to fix it, here is an example 
   error it gives
 * [quote]Warning: file_exists() [function.file-exists]: open_basedir restriction
   in effect. File(/home/[b]USER1[/b]/public_html/test/wp-content/uploads/2008/09)
   is not within the allowed path(s): (/home/[b]USER2[/b]:/usr/lib/php:/usr/local/
   lib/php:/tmp) in /home/[b]USER2[/b]/public_html/blog/wp-includes/functions.php
   on line 1435[/quote]
    Some how it has remembered the old username/dir and is 
   trying to use it to upload the image (USER1)
 * However USER2 is the new username and dir. Somewhere I think wordpress stores/
   remembers the home dir but I don’t know where, I’ve looked in the DB but no luck
 * Anyone have any ideas?

The topic ‘Wrong upload dir??’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [rootdogg](https://wordpress.org/support/users/rootdogg/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/wrong-upload-dir/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
