Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

display of picture blocked by .htaccess - file

  • Malte
  • Malte's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 9 months ago #109916 by Malte
Hi there,

I installed a version 2.05+ Build 140502 on a web-server. Unfortunately pictures that are uploaded within a survey are not displayed (at all).

This seems to be caused by the .htaccess - file, which is generated automatically when a new survey is created (/upload/surveys/[survey-ID]/.htaccess). The content of this file is:
<IfModule mod_php4.c>
php_value engine off</IfModule>
<IfModule mod_php5.c>
php_value engine off</IfModule>

When I rename the file and thus disable that it is accessed, pictures seem to be displayed as intended.

Here is the corresponding line of the web-server's error-log:
[full path of the .htaccess - file] php_value not allowed here, referer: [address of the question, where the picture was uploaded]


I would greatly appreciate, if someone could give me a hint what I can change so that the .htaccess-files no longer block the display of pictures.

Cheers,
Malte
The topic has been locked.
  • c_schmitz
  • c_schmitz's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
9 years 9 months ago #109917 by c_schmitz
Replied by c_schmitz on topic display of picture blocked by .htaccess - file
It is a limitation of your hosting. Depending on the hosting the command 'php_value' is allowed - or not. If it isn't removing the .htaccess file should usually not be a problem - it is a just an additional security measure.

Best regards

Carsten Schmitz
LimeSurvey project leader
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose