Welcome, Guest
Username: Password: Remember me

TOPIC: Change SurveyURL after installation

Change SurveyURL after installation 1 year 6 months ago #92540

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

Change SurveyURL after installation 1 year 6 months ago #92545

  • helper
  • helper's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 126
  • Thank you received: 18
  • Karma: 0
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: 1 year 6 months ago by helper.
The administrator has disabled public write access.
The following user(s) said Thank You: Malarky

Change SurveyURL after installation 1 year 6 months ago #92548

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

Change SurveyURL after installation 1 year 6 months ago #92550

  • helper
  • helper's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 126
  • Thank you received: 18
  • Karma: 0
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(where the 192.168.xxx.xxx is your IP address).
Last Edit: 1 year 6 months ago by helper.
The administrator has disabled public write access.
The following user(s) said Thank You: Malarky

Change SurveyURL after installation 1 year 6 months ago #92551

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6276
  • Thank you received: 801
  • Karma: 240
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/"
	)
The administrator has disabled public write access.
The following user(s) said Thank You: Malarky

Change SurveyURL after installation 1 year 6 months ago #92557

  • Malarky
  • Malarky's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
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!
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.349 seconds
Donation Image