display of picture blocked by .htaccess - file

7 years 5 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.

The topic has been locked.
7 years 5 months ago #109917 by c_schmitz
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.

Start now!

Just create your account and start using Limesurvey today.

Register now