Error installing addons

Permalink
I have tried to install some addons to my concrete5, it is a clean install of 5.3.1, and I always get this error.


Warning: fopen(/tmp/1244105706.zip) [function.fopen]: failed to open stream: No such file or directory in /customers/familyclifford.co.uk/familyclifford.co.uk/httpd.www/concrete/helpers/package.php on line 95

Please help.

Adam

 
ScottC replied on at Permalink Reply
ScottC
so it can be written to by the server to add stuff from the marketplace. I haven't sat down with an apache book yet (really I should) but I think that is the baseline recommendation i remember reading elsewhere in regard to packages. I am not 100% sure it is in the config notes, I am about 95% sure this isn't checked with the install screen although it probably should be.
razorbud replied on at Permalink Reply
I have chmod 777 the packages folder to no avail.
andrew replied on at Permalink Reply
andrew
The system is attempting to download the file to your system's temporary directory, which is usually /tmp/. (We also check a couple of other places.)

Unfortunately, it looks like /tmp/ isn't setup on your system. Could it be full or not used? This may be a question for your system administrator.
razorbud replied on at Permalink Reply
I have added a new folder called tmp to the root of my webspace and I am now getting even more errors:-


Warning: fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid is 751004 is not allowed to access /tmp owned by uid 0 in /customers/familyclifford.co.uk/familyclifford.co.uk/httpd.www/concrete/helpers/package.php on line 95

Warning: fopen(/tmp/1244283635.zip) [function.fopen]: failed to open stream: No such file or directory in /customers/familyclifford.co.uk/familyclifford.co.uk/httpd.www/concrete/helpers/package.php on line 95

This is a good thing I think.

My site is live onhttp://www.familyclifford.co.uk
Remo replied on at Permalink Reply
Remo
/tmp is a directory in the root of your server

a directory called tmp in your webspace isn't located in the root and therefore isn't equal to /tmp
razorbud replied on at Permalink Reply
I get you.

I'll just have to download them manually.

Is there a plan for the downloads to go to a webspace in the future or it a limitation on the php?
Remo replied on at Permalink Reply
Remo
If your php can't access the tmp folder (or another temp directory) there's probably a problem with your server configruation.

It's also possible that concrete5 gets a wrong value. I've seen this before but I think Andrew fixed it a while ago...

If c5 thinks it can write and read temp files from /tmp it won't work of course..
aofdsjklsre replied on at Permalink Reply
...then I realized that the temporary directory set in the environment simply wasn't accessible, but that the php.ini my web host used had a sessions_save path that was indeed writable by me. So I wrote a little patch to make the temporary directory configurable, and that now lives athttp://www.concrete5.org/community/bugs/fixes/patch_make_temporary_... .