View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
09995Bug reportsInstallationpublic2015-12-15 13:15
Reportergmambro Assigned ToLouisGac 
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.06+ 
Summary09995: Internal Server Error when installing outside DocumentRoot
Description

If you install Limesurvey outside the document root you get an Internal Server Error.

opendir(/var/www/html/limesurvey/tmp/assets/54b0d1fc): failed to open dir: No such file or directory

The root of the problem seems to be an uninitialized basePath in ExtendedClientScript which then defaults to DOCUMENT_ROOT

https://github.com/LimeSurvey/LimeSurvey/blob/83eb591e7956bdc4d6d947be4543688296af0b95/application/extensions/ExtendedClientScript/ExtendedClientScript.php#L205

Steps To Reproduce

Install limesurvey outside the document root (e.g. /var/www/limesurvey), configure the web server to serve its dir

Alias /limesurvey /var/www/limesurvey

<Directory "/var/www/limesurvey">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

and visit http://yourserver/limesurvey

Additional Information

This is an Heisenbug, since when you turn on debug that piece of code cannot be reached 'combineJs'=>$userConfig['config']['debug']>0?false:true,

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build) limesurvey206plus-build1510
I will donate to the project if issue is resolvedNo
Browserany
Database type & versionMySQL5.1 and MariaDB5.5
Server OS (if known)Centos6 and Centos 7
Webserver software & version (if known)apache 2.2 and apache 2.4
PHP Version5.3 and 5.4

Relationships

related to 10009 closedLouisGac limesurvey206plus-build151018 Installation Issue on Linux directory configured with Apache alias 

Users monitoring this issue

There are no users monitoring this issue.

Activities

gmambro

gmambro

2015-10-26 10:10

reporter   ~33452

Last edited: 2015-10-26 10:13

Using alias in web server is not a misconfiguration!

e.g. fedora package for wordpress http://pkgs.fedoraproject.org/cgit/wordpress.git/tree/wordpress-httpd-conf?id=effc25273226e891448d8b596e7c7b1db9de6018

c_schmitz

c_schmitz

2015-12-15 13:15

administrator   ~33941

2.06+ Build 151215 released

Issue History

Date Modified Username Field Change
2015-10-24 15:56 gmambro New Issue
2015-10-26 10:10 gmambro Note Added: 33452
2015-10-26 10:13 gmambro Note Edited: 33452
2015-11-02 09:41 Mazi Relationship added related to 10009
2015-11-02 09:41 Mazi Assigned To => LouisGac
2015-11-02 09:41 Mazi Status new => assigned
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: 33941
2015-12-15 13:15 c_schmitz Status resolved => closed