<p>You probably just need to set <a href="http://php.net/manual/en/ini.core.php#ini.upload-tmp-dir" rel="nofollow">upload_tmp_dir</a> in your php.ini file to be a path under your openbase_dir paths.</p>

<p>Or just remove the openbase_dir restrictions.</p>

CC BY-SA 3.0
2015-01-22T23:22:35.320Z
FYI to others - I also had to go into the Settings > Assets > Sources and fix the asset file system path. I am working with the "On the rocks" demo site which had a default asset path of something like ../public/images/drinks when it should have been simply images/drinks.
Tom
CC BY-SA 3.0
2015-01-21T22:11:33.703Z
2015-01-21T22:11:33.703Z
Brad Bell
<p>New (local) installation of Craft on Mac OSX Yosemite, working well except uploading an asset doesn't complete. The progress bar hangs and the spinner never stops spinning.</p>

<p>Craft index.php is located in <code>/Users/Penguin2/Sites/craft.dev/</code>
Craft application files are in <code>/Users/Penguin2/Sites/craft/</code>
PHP open_basedir is <code>/Users/Penguin2/Sites/</code></p>

<p>The PHP log indicates the following:</p>

<pre><code>[21-Jan-2015 18:04:02 UTC] PHP Warning:  Unknown: open_basedir restriction in effect. File(/var/tmp/) is not within the allowed path(s): (/Users/Penguin2/Sites) in Unknown on line 0
</code></pre>

<p>I assume I need to change the location where Craft stores temp files to a directory under the PHP open_basedir but I can't find the setting anywhere.</p>

<p>Thanks!</p>

<assets><php><upload><installation><configuration>
Asset uploads failing on new installation of Craft CMS
# Asset uploads failing on new installation of Craft CMS

(Asked by: username_0 on 2015-01-21)

New (local) installation of Craft on Mac OSX Yosemite, working well except uploading an asset doesn't complete. The progress bar hangs and the spinner never stops spinning.
Craft index.php is located in /Users/Penguin2/Sites/craft.dev/
Craft application files are in /Users/Penguin2/Sites/craft/
PHP open_basedir is /Users/Penguin2/Sites/
The PHP log indicates the following:
[21-Jan-2015 18:04:02 UTC] PHP Warning:  Unknown: open_basedir restriction in effect. File(/var/tmp/) is not within the allowed path(s): (/Users/Penguin2/Sites) in Unknown on line 0

I assume I need to change the location where Craft stores temp files to a directory under the PHP open_basedir but I can't find the setting anywhere.
Thanks!

**Tags:** assets, php, upload, installation, configuration


---

## 1 answers

### Answer by username_1 on 2015-01-21. Score: 2 | Accepted answer

You probably just need to set [upload\_tmp\_dir](http://php.net/manual/en/ini.core.php#ini.upload-tmp-dir) in your php.ini file to be a path under your openbase\_dir paths.

Or just remove the openbase\_dir restrictions.

> **Comments:**
> **username_0**: FYI to others - I also had to go into the Settings > Assets > Sources and fix the asset file system path. I am working with the "On the rocks" demo site which had a default asset path of something like ../public/images/drinks when it should have been simply images/drinks.  

---

