View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
10009Bug reportsInstallationpublic2015-12-15 13:15
Reporterfreelancerdev Assigned ToLouisGac 
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.06+ 
Summary10009: limesurvey206plus-build151018 Installation Issue on Linux directory configured with Apache alias
Description

Found a small bug while installing limesurvey206plus-build151018 on my local system.

OS: Ubuntu 14.04
Http Server: Apache/2.4.7
Database: MySQL 5.5.38
PHP: PHP 5.5.9

Installation Directory: /home/vishal/data/web/ls206p

Issue: Can not install as get error on home page, after extracting souce zip and granting read/write permission to installation directory.

"Internal Server Error

opendir(/var/www/html/web/ls206p/tmp/assets/c159e1ca): failed to open dir: No such file or directory"

Reason: Installation directory is configured using apache directory alias(/etc/apache2/sites-available/000-default.conf). And ExtendedClientScript.php has code that uses "DOCUMENT_ROOT" to find the root path. With directoty alias its returning incorrect physical path as expected, and that crashes the installation with above error.

Solution Applied:
File: application/extensions/ExtendedClientScript/ExtendedClientScript.php

Line 205

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

Changed to:
$this->basePath or $this->basePath = rtrim(dirname(realpath($_SERVER['CONTEXT_DOCUMENT_ROOT'])),'\/');

This solution only applied so I can continue setup on my local system. Its not tested on any other other platform.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)build151018
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMySQL 5.5.38
Server OS (if known)Ubuntu 14.04
Webserver software & version (if known)Apache/2.4.7
PHP VersionPHP 5.5.9

Relationships

related to 09984 closedLouisGac opendir(/var/www/limesurvey/tmp/assets/69cb2cf3): failed to open dir: No such file or directory 
related to 09995 closedLouisGac Internal Server Error when installing outside DocumentRoot 

Users monitoring this issue

There are no users monitoring this issue.

Activities

freelancerdev

freelancerdev

2015-11-02 07:07

reporter   ~33475

To developer team,

Sorry, just realized same bug is reported in past.

https://bugs.limesurvey.org/view.php?id=9984
https://bugs.limesurvey.org/view.php?id=9995

Thanks!

c_schmitz

c_schmitz

2015-12-15 13:15

administrator   ~33940

2.06+ Build 151215 released

Issue History

Date Modified Username Field Change
2015-11-02 06:51 freelancerdev New Issue
2015-11-02 07:07 freelancerdev Note Added: 33475
2015-11-02 09:41 Mazi Assigned To => LouisGac
2015-11-02 09:41 Mazi Status new => assigned
2015-11-02 09:41 Mazi Relationship added related to 09984
2015-11-02 09:41 Mazi Relationship added related to 09995
2015-12-09 15:53 LouisGac Status assigned => resolved
2015-12-09 15:53 LouisGac Resolution open => fixed
2015-12-15 13:15 c_schmitz Note Added: 33940
2015-12-15 13:15 c_schmitz Status resolved => closed