Welcome to the LimeSurvey Community Forum

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

Site Cache and File Permissions

  • mhladun
  • mhladun's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 5 days ago - 2 years 5 days ago #227357 by mhladun
Site Cache and File Permissions was created by mhladun
Your LimeSurvey version: 5.2.13 LimeSurvey build 220207
Own server or LimeSurvey hosting: Own server (CentOS)
Survey theme/template: Custom (Vanilla, Bootwatch as parents)
==================

In order to avoid getting a 500 HTTP Error response from the server, I need to run the following 3 steps,

1. Run
Code:
sudo chmod -R 775 /var/www/html/limesurvey && \
sudo chmod -R 777 /var/www/html/limesurvey/tmp && \
sudo chmod -R 777 /var/www/html/limesurvey/upload
2. Visit the site.
3. Run
Code:
sudo chmod 770 /var/www/html/limesurvey/application/config/security.php && \
sudo chmod 770 /var/www/html/limesurvey/application/config/config.php

I haven't been able to pin down exactly what triggers the HTTP 500 responses to begin, but they seem to happen when CentOS is rebooted, and not when the apache server is restarted. These 3 steps make them go away.

Why must I visit the Limesurvey site between these chmod commands? If I run all the commands together, then visit the site, I get a HTTP 500 response. Does Limesurvey load the security.php and config.php files into a cache, making step 3. useless?

Thank you,
Michael
Last edit: 2 years 5 days ago by mhladun. Reason: formatting

Please Log in to join the conversation.

More
2 years 12 hours ago #227479 by Mia_white
Replied by Mia_white on topic Site Cache and File Permissions
hi
i also had a similar doubt, let me know, if anyone knows what needs to be done.
The following user(s) said Thank You: mhladun

Please Log in to join the conversation.

  • mhladun
  • mhladun's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 months 4 weeks ago #242673 by mhladun
Replied by mhladun on topic Site Cache and File Permissions
Have you gotten to the bottom of this yet?

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 months 4 weeks ago #242678 by DenisChenu
Replied by DenisChenu on topic Site Cache and File Permissions
No cache by LimeSurvey

BUT : maybe you activate OpCache www.php.net/manual/fr/book.opcache.php

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose