Hi there,
I managed to run php 4.4.8 on Tomcat 1.5.X and greater. Then I followed the "Installation FAQ" at
http://docs.limesurvey.org/tiki-index.php?page=Installation+FAQ#During_Installation.
A im now trying to install LimeSurvey firstly on 32 bit ubuntu 7.10 + postgresql 8.2.7 + Tomcat 1.6.0 and then on a 64 bit openSuse with postgresql 8.2.7 + Tomcat 1.5.0_06.
On the 32 bit machine it seems that the install script works. I get :
| Code: |
Warning: parse_url(http:///limesurvey) [function.parse-url]: Unable to parse url in /.../limesurvey/config-defaults.php on line 305
|
and the last part of the file looks as follows:
| Code: |
$homeurl = "$rooturl/admin"; // The website location (url) of the admin scripts
$publicurl = "$rooturl"; // The public website location (url) of the public survey script
$tempurl = "$rooturl/tmp";
$imagefiles = "$rooturl/images"; //Location of button bar files for admin script
$homedir = "$rootdir/admin"; // The physical disk location of the admin scripts
$publicdir = "$rootdir"; // The physical disk location of the public scripts
$tempdir = "$rootdir/tmp"; // The physical location where LimeSurvey can store temporary files
// Note: For OS/2 the $tempdir may need to be defined as an actual directory
// example: "x:/limesurvey/tmp". We don't know why.
$fckeditordir = "$homeurl/scripts/fckeditor.26";
//PDF Export Settings
$usepdfexport = 1; //Set 0 to disable; 1 to enable
$pdfexportdir = "/admin/classes/tcpdf"; //Directory with the tcpdf.php extensiontcpdf.php
$pdffonts = $pdfexportdir."/fonts"; //Directory for the TCPDF fonts
$pdfdefaultfont = 'freemono'; //Default font for the pdf Export
$pdffontsize = 10; //Fontsize for normal text; Surveytitle is +4; grouptitle is +2
$notsupportlanguages = array("zh-Hant-TW","zh-Hant-HK","zh-Hans","ja","th");
// Computing relative url
// $relativeurl is the url relative to you DocumentRoot where is installed LimeSurvey.
// Usually same as $rooturl without http://{$_SERVER['HTTP_HOST']}.
// $relativeurl is now automatically computed from $rooturl
$parsedurl = parse_url($rooturl);
$relativeurl= $parsedurl['path'];
?>
|
debug is enabled (set to 1) and the definition of rooturl looks like:
| Code: |
$rooturl = "http://localhost:8080/limesurvey";
|
Do You know a solution to this problem?
The main question is "Did anybody try to setup LimeSurvey with PHP 4.4.8 and PostgreSql database + Tomcat web server?
After enabling debug mode I get a "Notice":
| Code: |
// This post was updated.Notice: Undefined index: SERVER_SOFTWARE in /.../limesurvey/common.php on line 66
Can't connect to LimeSurvey database. Reason: Database connection failed
|
and the line 66 (and its neighbours) is:
| Code: |
if($_SERVER['SERVER_SOFTWARE'] == "Xitami") //Deal with Xitami Issue
{
$_SERVER['PHP_SELF'] = substr($_SERVER['SERVER_URL'], 0, -1) .$_SERVER['SCRIPT_NAME'];
}
|