Check out the LimeSurvey source code on GitHub!

Error when trying to upload pic to limesurvey

More
6 years 2 months ago #53468 by JoeJoe
We copied the basic template before trying to edit it. However when we tried to upload a picture to have it appear on the page we got an error:


Error
An error occurred uploading your file. This may be caused by incorrect permissions in your /var/www/html/limesurvey/tmp folder.


does this have to do with the person logged in to LimeSurvey?

Please Log in to join the conversation.

More
6 years 2 months ago #53470 by holch
You need to set the correct permissions to the tmp folder and all folders within the temp folder. This has more to do with linux than LS.

Use your FTP program to set the correct permissions for the TMP folder. Should be something like 755 or maybe 777

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
6 years 2 months ago #53473 by JoeJoe
Should this permission be set for everyone?
What other folders should we ensure that adequate read and write permissions are applied to? So that we do not keep running into this permissions problem.

Please Log in to join the conversation.

More
6 years 2 months ago - 6 years 2 months ago #53476 by holch
No, once you give the permission via chmod, this should be fine. What permissions to set should be explained in the installation process. But those permission need to be set on the server, the chmod has to do with the linux server, and only indirectly with LS.

You also should be conservative with the permissions and only modify them where necessary - thus I would leave everything as it is, as long as you don't run into a problem.

Following the installation instructions, you should be fine (of course this also depends on the configuration of your server):
docs.limesurvey.org/tiki-index.php?page=...irectory_permissions

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
Last Edit: 6 years 2 months ago by holch.

Please Log in to join the conversation.

More
6 years 2 months ago #53506 by Mazi
Often it is very useful to input the eror message into the forum search field. You'd have received several hits I guess.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
6 years 2 months ago #53623 by JoeJoe
i am in a bit of a spot here.

I logged into our limesurvey setup using putty.

i am trying to change the permissions on the tmp folder to 777

this is the cmd i used


[root@cust-5973zc1 ~]# chmod 777/limesurvey/tmp
chmod: missing operand after `777/limesurvey/tmp'

what did i do wrong?

Please Log in to join the conversation.

More
6 years 2 months ago #53626 by holch
What happens when you put a space between 777 and the path, like this:
chmod 777 /limesurvey/tmp

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
6 years 2 months ago #53627 by JoeJoe
this is what happens

[root@cust-5973zc1 ~]# chmod 777 /limesurvey/tmp
chmod: cannot access `/limesurvey/tmp': No such file or directory


which i know isn't true because the tmp directory exists under

/var/www/html/limesurvey

Please Log in to join the conversation.

More
6 years 2 months ago #53628 by holch
So you probably have to put
chmod 777 /var/www/html/limesurvey/tmp

Depending in which folder you are within the console.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
6 years 2 months ago #53629 by holch
Don't you have a server administrator that could take care of those server related issues? Try to ask him. They are usually nice guys and will help you out. By him a beer after work and he will be happy. Probably. ;-)

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
6 years 2 months ago #53630 by JoeJoe
he is out of office so i was trying some self help

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form