Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Problem when installing in subfolder

  • marvelousvts
  • marvelousvts's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 1 month ago #148371 by marvelousvts
Problem when installing in subfolder was created by marvelousvts
Hello all,

I have an issue when I try to start installation in a subfolder:

I have intra1.xxxxxxx.com/app/survey/ where I have copied all limesurvey files

when I execute this path then I am redirected in: intra1.xxxxxxx.com/survey/index.php?r=installer and I get 404 - File or directory not found because this folder doesn't exist of course. This folder is located under app folder and not under home.

Can you please tell me how I can stop this redirection and start the installation?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 1 month ago #148375 by holch
Replied by holch on topic Problem when installing in subfolder
I would say that you had already installed Limesurvey in that other folder before, with the same database?

Did you change the config file and switch the base url.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • marvelousvts
  • marvelousvts's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 1 month ago #148380 by marvelousvts
Replied by marvelousvts on topic Problem when installing in subfolder
Can you please give me a sample of config.php with the base url configuration?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 1 month ago #148383 by DenisChenu
Replied by DenisChenu on topic Problem when installing in subfolder
There are a redirection from app/survey to survey on YOUR server, not by limesurvey.

config.php don't need update to be in subfolder

Look at your server config

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • marvelousvts
  • marvelousvts's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 1 month ago #148386 by marvelousvts
Replied by marvelousvts on topic Problem when installing in subfolder
Hello DenisChenu,

I put die(); on index php and I have noticed that when is executed the last line :
Yii::createApplication('LSYii_Application', $config)->run();
only then is redirecting.
I suppose that the server configuration is correct otherwise index.php would never be executed.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 1 month ago #148388 by DenisChenu
Replied by DenisChenu on topic Problem when installing in subfolder
I already have a lot of LS installed on subfolder's : never have issue ...

Try with
Code:
echo "<pre>";
print_r($config,1);
die("<pre>");

here : github.com/LimeSurvey/LimeSurvey/blob/master/index.php#L212

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
7 years 1 month ago #148390 by LouisGac
Replied by LouisGac on topic Problem when installing in subfolder
Hi marvelousvts,

Myself, I always work with LS installed in a subfolder, in a symlink, and it works perfectly fine.
So I bet your problem is not related to LimeSurvey but rather to your server configuration.
The topic has been locked.
  • marvelousvts
  • marvelousvts's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 1 month ago #148391 by marvelousvts
Replied by marvelousvts on topic Problem when installing in subfolder
please find attached the $config
Attachments:
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 1 month ago #148393 by DenisChenu
Replied by DenisChenu on topic Problem when installing in subfolder


I can only think of an issue on your server

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 1 month ago #148397 by holch
Replied by holch on topic Problem when installing in subfolder
As Tpartner und Denis say, installing into subfolders is totally normal and I also do it all the time. This is why I tought that you had installed Limesurvey in the root folder of the subdomain first and then moved the files to the subfolder and there was still some trace left.

config.php normally finds the URL itself.

I also think you need to check on your server if there are any redirects or anything.
I would do the following: clean the app folder completly, upload the limesurvey files completely new, make a fresh install in a fresh database and see what happens.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
7 years 1 month ago #148399 by jelo
Replied by jelo on topic Problem when installing in subfolder

marvelousvts wrote: I have an issue when I try to start installation in a subfolder:
I have intra1.xxxxxxx.com/app/survey/ where I have copied all limesurvey files


1. This is a sub-subfolder installation.
2. What kind of Webenvironment is it. Installtion under a /app folder is always ringing a bell.
Mostly there is already some kind of webapplication installed with certain redirection routines.

Question A:
Can you install LimeSurvey under intra1.xxxxxxx.com/ls/ ?
If not, why not? What is the restriction?

Question B:
What is the result of phpinfo(); ?
Create a simple textfile with

<?php
phpinfo();
?>

and upload it to the root of the webserver. Access it via the browser
mediatemple.net/community/products/dv/20...e-a-phpinfo.php-page

BTW: I no longer can use the code button in this forum editor. It is just a greyed out window which cannot be clicked.

And I'm really pissed of that I get a URL limit protection when creating posts. This kind of SPAM-protection is demotivates me of answering posts. This now goes on for a long time. Nothing changed. As a normal user account I see no sense in the URL limit. Where is that preventing SPAM?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 1 month ago #148406 by DenisChenu
Replied by DenisChenu on topic Problem when installing in subfolder

jelo wrote: ....
And I'm really pissed of that I get a URL limit protection when creating posts. This kind of SPAM-protection is demotivates me of answering posts. This now goes on for a long time. Nothing changed. As a normal user account I see no sense in the URL limit. Where is that preventing SPAM?

I have same issue : 2 url for post, but any number when edit ;)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose