Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Change SurveyURL after installation

Change SurveyURL after installation 1 Jahr 7 Monate her #92540

  • Malarky
  • Malarkys Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 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
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Change SurveyURL after installation 1 Jahr 7 Monate her #92545

  • helper
  • helpers Avatar
  • OFFLINE
  • Expert Lime
  • Beiträge: 126
  • Dank erhalten: 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
Letzte Änderung: 1 Jahr 7 Monate her von helper.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: Malarky

Change SurveyURL after installation 1 Jahr 7 Monate her #92548

  • Malarky
  • Malarkys Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 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
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Change SurveyURL after installation 1 Jahr 7 Monate her #92550

  • helper
  • helpers Avatar
  • OFFLINE
  • Expert Lime
  • Beiträge: 126
  • Dank erhalten: 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).
Letzte Änderung: 1 Jahr 7 Monate her von helper.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: Malarky

Change SurveyURL after installation 1 Jahr 7 Monate her #92551

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 6338
  • Dank erhalten: 818
  • Karma: 243
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/"
	)
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: Malarky

Change SurveyURL after installation 1 Jahr 7 Monate her #92557

  • Malarky
  • Malarkys Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 3
  • Karma: 0
DenisChenu schrieb:
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!
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.341 Sekunden
Donation Image