Check out the LimeSurvey source code on GitHub!

Survey submits to wrong url

More
5 years 7 months ago #62907 by hilko1981
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

Please Log in to join the conversation.

More
5 years 7 months ago - 5 years 7 months ago #62916 by jelo
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: 5 years 7 months ago by jelo.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form