Welcome, Guest
Username: Password: Remember me

TOPIC: Survey submits to wrong url

Survey submits to wrong url 3 years 3 weeks ago #62907

  • hilko1981
  • hilko1981's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
Hi,

I installed Limesurvey 1.91+ on a websrver and used the parallels dash to create a subdomain for it. The subdomain assesment.server.com links directly to the folder /var/www/html/limesurvey

I removed /limesurvey from the $rootdir variable in config.php and everything installed and seemed to work fine. However....

If I fill out a survey and submit it, it seems to submit to the wrong folder. It should submit the input to /index.php but instead submits to the actual folder of the subdomain /var/subdomain/assesment/html/index.php

<form id="limesurvey" autocomplete="off" name="limesurvey" action="/var/subdomain/survey/html/index.php" method="post">

I assume this has something to do with the rootdir settings in config.php, but I can't get it to change the action url without disabeling the whole application.

Any suggestions?

Regards,

Hilko
The administrator has disabled public write access.

Aw: Survey submits to wrong url 3 years 3 weeks ago #62916

  • jelo
  • jelo's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 467
  • Thank you received: 52
  • Karma: 16
There are two settings:

1.) $rooturl
2.) $rootdir

You have remove limesurvey from $rootdir but installed limesurvey
at the local path /var/www/html/limesurvey. Since /var/www/html is the root for the httpdaemon the $rootdir needs to contain limesurvey in the path.

Your subdomain mapping might be buggy.

You state that
The subdomain assesment.server.com links directly to the folder /var/www/html/limesurvey
and mention
actual folder of the subdomain /var/subdomain/assesment/html/index.php
and in the html code
/var/subdomain/survey/html/index.php

/var/www/html/limesurvey
/var/subdomain/assesment/limesurvey/html/
/var/subdomain/survey/html/index.php

The question is what is the subdomain really mapped to?
Since you mentioned Parallels you might use Plesk Panel or Small Business Panel. Check the documentation of your control panel. There are often
limitations and restriction what can be mapped with subdomains.
In Plesk (might changed in version 10) you couldn't map subdomains into the main webroot. Take a look at this thread in the parallels forum
forum.parallels.com/showthread.php?t=105626 .

Then change $rooturl and $rootpath to the correct url and path.

A few lines about what you might need to change can be found here:
docs.limesurvey.org/Installation&structu...urvey#Basic_settings
Last Edit: 3 years 3 weeks ago by jelo.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.121 seconds
Donation Image