View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
10027Bug reportsInstallationpublic2015-12-08 15:10
Reporteruser45005Assigned Toc_schmitz  
PrioritynormalSeverityblock 
Status closedResolutionduplicate 
Product Version2.06+ 
Summary10027: Installation doesn't work in /app
Description

I'm installing limesurvey over a LAMP and I wanted to place it in /limesurvey but is not working.

Steps To Reproduce

1-Download latest limesurvey version.
2-Unzip it and rename the main folder to 'htdocs'. So 'application' and so on are in 'htdocs' folder.
3-My LAMP is installed on /opt/lamp so I moved 'htdocs' to /opt/lamp/apps/limesurvey
4-I changed the configuration of apache for limesurvey:

Alias /limesurvey "/opt/lamp/apps/limesurvey/htdocs"
Alias /limesurvey/ "/opt/lamp/apps/limesurvey/htdocs/"
<Directory "/opt/lamp/apps/limesurvey/htdocs">
Options +MultiViews
AllowOverride None
<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3>
Require all granted
</IfVersion>
</Directory>

5 - I checked permissions

APP=limesurvey
sudo find /opt/lamp/apps/$APP/htdocs -type d -print0 | xargs -0 sudo chmod 755
sudo find /opt/lamp/apps/$APP/htdocs -type f -print0 | xargs -0 sudo chmod 644
sudo chmod -R 770 /opt/lamp/apps/$APP/htdocs/tmp
sudo chmod -R 770 /opt/lamp/apps/$APP/htdocs/upload
sudo chmod -R 770 /opt/lamp/apps/$APP/htdocs/third_party/kcfinder/upload
sudo chown -R ubuntu:daemon /opt/lamp/apps/$APP/htdocs

6 - I restarted apache and limesurvey wasn't working

The error showed is:

Internal Server Error

opendir(/opt/lamp/apache2/htdocs/tmp/assets/ead40239): failed to open dir: No such file or directory

An internal error occurred while the Web server was processing your request. Please contact the webmaster to report this problem.

Thank you.

2015-11-06 08:04:41

7 - I modified the line 205 of ExtendedClienteScript.php

$this->basePath or $this->basePath = realpath($_SERVER['DOCUMENT_ROOT']);

to

$this->basePath = '/opt/lamp/apps/limesurvey/htdocs';

but limesurvey is using getBaseUrl() from several scripts so the path to some files get corrupted.

Are we ablle to move limesurvey to /whatever?

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)151018
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL 14.14 Dist 5.6.27
Server OS (if known)Ubuntu 14.04
Webserver software & version (if known)Apache 2.4.17
PHP Version5.5.30

Relationships

duplicate of 09984 closedLouisGac opendir(/var/www/limesurvey/tmp/assets/69cb2cf3): failed to open dir: No such file or directory 
related to 09944 closedc_schmitz Find button or Ctrl+F feature not working within code field of Template Editor 

Users monitoring this issue

DenisChenu

Activities

user45005

2015-11-10 13:14

  ~33550

$combinedFile .= file_get_contents($this->basePath.substr($file, strlen($_SERVER['CONTEXT_PREFIX'])));

This line should be:

$combinedFile .= file_get_contents($this->basePath.DIRECTORY_SEPARATOR.substr($file, strlen($_SERVER['CONTEXT_PREFIX'])));

c_schmitz

c_schmitz

2015-12-08 15:10

administrator   ~33747

ClientScript extension will be removed in the next build.

Issue History

Date Modified Username Field Change
2015-11-06 18:59 user45005 New Issue
2015-11-07 01:18 DenisChenu Relationship added duplicate of 09984
2015-11-10 13:14 user45005 Note Added: 33550
2015-11-12 10:24 DenisChenu Issue Monitored: DenisChenu
2015-12-08 15:09 c_schmitz Relationship added related to 09944
2015-12-08 15:10 c_schmitz Note Added: 33747
2015-12-08 15:10 c_schmitz Status new => closed
2015-12-08 15:10 c_schmitz Assigned To => c_schmitz
2015-12-08 15:10 c_schmitz Resolution open => duplicate
2021-08-02 17:20 guest Bug heat 4 => 6