Home
LimeSurvey Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:64 bit linux + postgresql 8.2.7 + Tomcat 1.5.0_ (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Re:64 bit linux + postgresql 8.2.7 + Tomcat 1.5.0_
#14890
federico_cs (User)
Fresh Lemon
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
[done] 64 bit linux + postgresql 8 + Tomcat 1.5 4 Months ago Karma: 0  
Hi there,

I managed to run php 4.4.8 on Tomcat 1.5.X and greater. Then I followed the "Installation FAQ" at docs.limesurvey.org/tiki-index.php?page=...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'];
}

 
Logged Logged  
 
Last Edit: 2008/06/23 11:52 By Mazi.
  The administrator has disabled public write access.
#14894
Mazi (Moderator)
Moderator Lime
Posts: 2841
graph
User Offline Click here to see the profile of this user
Re:64 bit linux + postgresql 8.2.7 + Tomcat 1.5.0_06 4 Months ago Karma: 21  
Please post lines 290 - 310 of config-defaults.php and the path settings you set in config.php. No real passwords please

Please switch on debug mode by adding the following line to your config.php file:
Code:

$debug = 1;

Are there any more errors reported?
 
Logged Logged  
 
Beste Grüße/Best regards,
Mazi
______________________
You can support Limesurvey, too!
  The administrator has disabled public write access.
#14916
c_schmitz (Admin)
Moderator Lime
Posts: 1321
graphgraph
User Online Now Click here to see the profile of this user
Re:64 bit linux + postgresql 8.2.7 + Tomcat 1.5.0_06 4 Months ago Karma: 40  
This is a known problem. It will be fixed in the next version which is due this week.
Thank you for your patience.
 
Logged Logged  
 
Best regards

Carsten Schmitz
LimeSurvey Project Leader
  The administrator has disabled public write access.
#14923
federico_cs (User)
Fresh Lemon
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:64 bit linux + postgresql 8.2.7 + Tomcat 1.5.0_ 4 Months ago Karma: 0  
I managed to pass the "line 305" error but now i get
Code:

Parse error: syntax error, unexpected T_VARIABLE in /.../limesurvey/config-defaults.php on line 29


and the line 29 of config-defauls.php looks as follows:

Code:

$databasetype = "postgres"; // ADOdb database driver - postgres



(I shortened the comments).

On other machine i successfully installed php 4.4.8 and i can run php files in Tomcat 6 but with limesurvey and a PostgreSql 8.3 database I get the following error when running admin/install/index.php

Code:


Notice: Undefined index: SERVER_SOFTWARE in /home/fsala/workspace/limesurvey/build/web/common.php on line 66
Can't connect to LimeSurvey database. Reason: Database connection failed

 
Logged Logged  
 
Last Edit: 2008/06/18 21:08 By federico_cs.
  The administrator has disabled public write access.
#15084
Mazi (Moderator)
Moderator Lime
Posts: 2841
graph
User Offline Click here to see the profile of this user
Re:64 bit linux + postgresql 8.2.7 + Tomcat 1.5.0_ 3 Months, 3 Weeks ago Karma: 21  
Please upgrade to the latest release. This error should be fixed in the latest release.
More information:
- Download latest release
- Upgrade instructions
 
Logged Logged  
 
Beste Grüße/Best regards,
Mazi
______________________
You can support Limesurvey, too!
  The administrator has disabled public write access.
#15625
Jessie (User)
Fresh Lemon
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Re:64 bit linux + postgresql 8.2.7 + Tomcat 1.5.0_ 3 Months, 1 Week ago Karma: 0  
Hey - I'm having the same problem. PHP 5

Warning: parse_url(/limesurvey) [function.parse-url]: Unable to parse URL in/usr/ADDRESS/limesurvey/config-defaults.php on line 304

The error shows at the top of the screen on every page - although I can navigate through limesurvey's pages!
Hope you can help,
Jess

not sure what is wrong. I'm using the latest version 1.71.
 
Logged Logged  
  The administrator has disabled public write access.
#15626
c_schmitz (Admin)
Moderator Lime
Posts: 1321
graphgraph
User Online Now Click here to see the profile of this user
Re:64 bit linux + postgresql 8.2.7 + Tomcat 1.5.0_ 3 Months, 1 Week ago Karma: 40  
1.71 is not the latest version.
It is 1.71+. Which build do you use?
 
Logged Logged  
 
Best regards

Carsten Schmitz
LimeSurvey Project Leader
  The administrator has disabled public write access.
#15652
Mazi (Moderator)
Moderator Lime
Posts: 2841
graph
User Offline Click here to see the profile of this user
Re:64 bit linux + postgresql 8.2.7 + Tomcat 1.5.0_ 3 Months, 1 Week ago Karma: 21  
Can you please post lines 295 - 310 from your config-defaults.php?

Did you check for any missing ";" in config-defaults.php?

Please switch on debug mode by adding the following line to your config.php file:
Code:

$debug = 1;

Are there any errors reported?
 
Logged Logged  
 
Beste Grüße/Best regards,
Mazi
______________________
You can support Limesurvey, too!
  The administrator has disabled public write access.
Go to top