Welcome, Guest
Username: Password: Remember me

TOPIC: display of picture blocked by .htaccess - file

display of picture blocked by .htaccess - file 5 months 1 week ago #109916

  • Malte
  • Malte's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
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 administrator has disabled public write access.

display of picture blocked by .htaccess - file 5 months 1 week ago #109917

  • c_schmitz
  • c_schmitz's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 819
  • Thank you received: 116
  • Karma: 93
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.
Support us, too. Donate to the LimeSurvey project and help keep us going!
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.107 seconds
Donation Image