Change SurveyURL after installation

More
4 years 6 months ago #92540 by Malarky
Malarky created the topic: Change SurveyURL after installation
Hi everyone,

I'll try to explain what I want to do...
I've installed Limesurvey with localhost and actually when i want to send my surveys using emails the route is "localhost\limesurvey\XXXXX".
I can't find anything or file that allow me to change this field, I've also used the wiki and google but found nothing.

Thx

Please Log in to join the conversation.

More
4 years 6 months ago - 4 years 6 months ago #92545 by helper
helper replied the topic: Change SurveyURL after installation
Not quite sure if this is what you want... I have several surveys that have what I term as "short URL's" using the following in the Apache httpd.conf (at the very end or in the vhosts.conf if you have that enabled):
Redirect /YOURXXX /index.php/survey/index/sid/YOUR SURVEY NUMBER/newtest/Y
You will have to restart your Apache. What this does is accepts any URL with /YOURXXX at the tail and redirects to a specific survey.

For example, I have a depression screen survey at http://myhost/phq and I use the following in my httpd.conf:
Redirect /phq /index.php/survey/index/sid/518477/newtest/Y/lang/en
Last Edit: 4 years 6 months ago by helper.
The following user(s) said Thank You: Malarky

Please Log in to join the conversation.

More
4 years 6 months ago #92548 by Malarky
Malarky replied the topic: Change SurveyURL after installation
I mean I want to change "http://localhost/limesurvey/index.php/455786/lang-ca" for "HSCXXXX/limesurvey/index.php/455786/lang-ca" where HSCXXXX its my computer name, I just want to spread my survey on LAN network.
So I need to change localhost for my computer name, your code let me do that?
I'll try it at 16:00, thx

Please Log in to join the conversation.

More
4 years 6 months ago - 4 years 6 months ago #92550 by helper
helper replied the topic: Change SurveyURL after installation
Sorry, my config setting is for shorting the URL not changing the domain (which sounds as if that is what you want to do). However... I do what you want pretty much on a regular basis, but with an IP address (if your computer is not "named" within your local DNS).

For Winders, open a DOS/CMD prompt and type in ipconfig to get your IP address (for linux and mac, ifconfig).

Once you have your IP, try

192.168.xxx.xxx/limesurvey/index.php/455786/lang-ca

(where the 192.168.xxx.xxx is your IP address).
Last Edit: 4 years 6 months ago by helper.
The following user(s) said Thank You: Malarky

Please Log in to join the conversation.

More
4 years 6 months ago #92551 by DenisChenu
DenisChenu replied the topic: Change SurveyURL after installation
Hello,

Maybe you can try, at end of config.php:
'config'=>array(
	// debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this
	// then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
	// on your webspace.
	// LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates
    // Using echo Yii::trace(CVarDumper::dumpAsString($anotherTest),'vardump');
		'debug'=>0,
		'debugsql'=>0,
                'publicurl' => "HSCXXXX/limesurvey/"
	)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: Malarky

Please Log in to join the conversation.

More
4 years 6 months ago #92557 by Malarky
Malarky replied the topic: Change SurveyURL after installation

DenisChenu wrote: Hello,

Maybe you can try, at end of config.php:

'config'=>array(
	// debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this
	// then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
	// on your webspace.
	// LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates
    // Using echo Yii::trace(CVarDumper::dumpAsString($anotherTest),'vardump');
		'debug'=>0,
		'debugsql'=>0,
                'publicurl' => "HSCXXXX/limesurvey/"
	)


THX seems it worked!!! Thanks to everybody!

Please Log in to join the conversation.

Did you already participate in our customer survey?

Don't miss your chance for great prices.

Please click here to participate:

Start now

Start now!

Just create your account and start using Limesurvey today.

Register now