LimeSurvey Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottom
TOPIC: version.php
#37499
DezB
Bronze Donator
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
version.php 6 Months, 4 Weeks ago Karma: 0
Hi Folks

I have just uploaded Lime for the first time, gone through the config file but for some reason I am getting the following error. Does anyone have any ideas please.

Warning: require(./version.php) [function.require]: failed to open stream: No such file or directory in /homepages/39/d2xxxxxxxx/htdocs/surveys/common.php on line 22

Fatal error: require() [function.require]: Failed opening required './version.php' (include_path='.:/usr/lib/php5') in /homepages/39/d2xxxxxxxx/htdocs/surveys/common.php on line 22

I have tried re-uploading the version.php several times just to make sure but no joy.

Server set up is

PHP 5

mySQL5+ setup:

Database name dbxxxxxxx
Host name localhost:/tmp/mysql5.sock
Password xxxxxxxxxx
Port 3xxx
User name dboxxxxxxxxx
Description surveys
Version MySQL5.0
Socket /tmp/mysql5.sock

Config set up

$databasetype = 'mysql';



$databasepersistent for decent speed

$databaselocation = 'localhost';
$databasename = 'dbxxxxxxx';
$databaseuser = 'dboxxxxxxx';
$databasepass = 'xxxxxxxxxx';
$dbprefix = 'lime';

$databaseport = 'xxxx';


// File Locations
$rooturl = "http://{$_SERVER['HTTP_HOST']}/surveys";


$rootdir = dirname(_FILE_);

// Installation Setup
$defaultuser = 'admin';
$defaultpass = 'xxxxxxx';

I would really appreciate some help here if possible.

Many thanks

DezB
 
Logged Logged
  The administrator has disabled public write access.
#37547
Mazi
Moderator Lime
Posts: 6876
graph
User Offline Click here to see the profile of this user
Re:version.php 6 Months, 4 Weeks ago Karma: 93
1. Have there been any problems when running the install script?

2. Which URL do you use to call the admin login screen?
 
Logged Logged
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support --> Contact
  The administrator has disabled public write access.
#37577
DezB
Bronze Donator
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Re:version.php 6 Months, 4 Weeks ago Karma: 0
Hi

I have just tried re-setting the congig.php to:
"http://{$_SERVER['HTTP_HOST']}/file-name";

But I am still getting the same error:

Warning: require(./version.php) [function.require]: failed to open stream: No such file or directory in /homepages/39/d2xxxxxxx/htdocs/surveys/common.php on line 22

Fatal error: require() [function.require]: Failed opening required './version.php' (include_path='.:/usr/lib/php5') in /homepages/39/d20xxxxxxx/htdocs/surveys/common.php on line 22

Any more ideas?

Many thanks

Dezb
 
Logged Logged
  The administrator has disabled public write access.
#37652
DezB
Bronze Donator
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Re:version.php 6 Months, 3 Weeks ago Karma: 0
Hi Folks

This was the reply I had from my hosts regarding this problem:

However version 4 is configured as the default for the greatest compatibility with customers content, in order to use version 5 of PHP you need to either rename the file extension of '.php' to '.php5' for all version 5 coded files (not the easiest and most portable solution),or create an '.htaccess' file in the root of the content directory with a map function to instruct the web server to use version 5 for all'.php'files.

So I added: "AddHandler x-mapp-php5 .php" (without quotes) to the htaccess.txt file but still no joy, I still get the error:

Warning: require(./version.php) [function.require]: failed to open stream: No such file or directory in /homepages/39/d2xxxxxxx/htdocs/surveys/common.php on line 22

Fatal error: require() [function.require]: Failed opening required './version.php' (include_path='.:/usr/lib/php5') in /homepages/39/d2xxxxxxx/htdocs/surveys/common.php on line 22

Any thoughts anyone????

Many thanks

DezB
 
Logged Logged
  The administrator has disabled public write access.
#37660
Mazi
Moderator Lime
Posts: 6876
graph
User Offline Click here to see the profile of this user
Re:version.php 6 Months, 3 Weeks ago Karma: 93
This kind of PHP4-PHP5 switch is often used by providers. Please ask their support if your solution is correct.

You can also try to install Limesurvey version 1.82 which is the latest version supporting PHP4.
 
Logged Logged
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support --> Contact
  The administrator has disabled public write access.
#37702
DezB
Bronze Donator
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Re:version.php 6 Months, 3 Weeks ago Karma: 0
Hi Mazi

I did question this with 1and1 and this is the answer I got back:

I see that you do have the .htaccess file and it appears to be working correctly as I can load 's2xxxxxxxx.websitehome.co.uk/info.php' and it reports"PHP Version 5.2.12", therefore there must be some other configuration option that you need to check in your CMS setup or code.

Any ideas?

Hope to speak soon

Best wishes

DezB
 
Logged Logged
  The administrator has disabled public write access.
#37712
Mazi
Moderator Lime
Posts: 6876
graph
User Offline Click here to see the profile of this user
Re:version.php 6 Months, 3 Weeks ago Karma: 93
Can you call the installer at www,yourdomain.org/limesurveyfoldername/admin/install?

Please upload a phpinfo file so we can take a look at your server configuration. Just put the following code into a file named phpinfo.php and upload it to your webserver:
Code:

 < ?php phpinfo(); ? > 
(Delete the spaces next to </> when copying the code.)
After uploading please post the link to the file.
 
Logged Logged
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support --> Contact
  The administrator has disabled public write access.
#37720
DezB
Bronze Donator
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Re:version.php 6 Months, 3 Weeks ago Karma: 0
Hi Mazi

No, if I try to bring up the installer I get:

Warning: require(./version.php) [function.require]: failed to open stream: No such file or directory in /homepages/39/d2xxxxxxx/htdocs/surveys/common.php on line 22

Fatal error: require() [function.require]: Failed opening required './version.php' (include_path='.:/usr/lib/php5') in /homepages/39/d2xxxxxx/htdocs/surveys/common.php on line 22


As requested: surveys.mychoicemailer.com/php-info.php

Hope to speak soon and apologies for being such a pain..

Thanks

DezB
 
Logged Logged
  The administrator has disabled public write access.
#37750
Mazi
Moderator Lime
Posts: 6876
graph
User Offline Click here to see the profile of this user
Re:version.php 6 Months, 3 Weeks ago Karma: 93
Did you try to set
$rooturl = "http://{$_SERVER['HTTP_HOST']}";
 
Logged Logged
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support --> Contact
  The administrator has disabled public write access.
#37814
DezB
Bronze Donator
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Re:version.php 6 Months, 3 Weeks ago Karma: 0
Hi Mazi

I reset the root as you mentioned:
$rooturl = "http://{$_SERVER['HTTP_HOST']}";

and still get the error:

Warning: require(./version.php) [function.require]: failed to open stream: No such file or directory in /homepages/39/d2xxxxxxx/htdocs/surveys/common.php on line 22

Fatal error: require() [function.require]: Failed opening required './version.php' (include_path='.:/usr/lib/php5') in /homepages/39/d2xxxxxxxxx/htdocs/surveys/common.php on line 22

Sorry for the delay in getting back to you, I've been away all day.

Hope to speak soon

Best wishes

DezB
 
Logged Logged
  The administrator has disabled public write access.
Go to top
Donation Image