BREZ Posted July 29, 2012 Share Posted July 29, 2012 Installing a prog on a linux server i get the following error... PHP Version lower than 5.0.0 is required, you are running 5.2.17 can i safely step back, and if so how? I am using cpanel version 11.32.3 (build 23) with root access if that helps but i am not a programmer. PHP version 5.2.17 MySQL version 5.5.23-55 Quote Link to comment https://forums.phpfreaks.com/topic/266428-stepping-back/ Share on other sites More sharing options...
PFMaBiSmAd Posted July 29, 2012 Share Posted July 29, 2012 A) What does your question have to do with the mysql help section where you posted this? B) Lower than 5.0.0 means 4.x. If you are using a script that still requires php4, you have got to ask yourself why, because the end of life of php4 was in 2007, with the last security update in 2008. C) There are actually very few incompatible changes going from php4 to php5 (most problems are due to relying on deprecated php,ini settings) and the script will likely work, if you disable the version checking in it. Quote Link to comment https://forums.phpfreaks.com/topic/266428-stepping-back/#findComment-1365313 Share on other sites More sharing options...
BREZ Posted July 30, 2012 Author Share Posted July 30, 2012 Apologies for the wrong forum, i guess i was in too much haste to ask. the over file reads like this which part can i change to "disable checking" <?php /* * DBVersionOver * * Tests that the running Database Version is >= the supplied parameter */ class DBVersionOver extends BaseTest { var $server; var $username; var $password; var $type; var $version; function DBVersionOver($params) { parent::BaseTest($params); if(!is_array($this->params) || count($this->params) <= 0){ ErrorStack::addError("Invalid parameters, you need to provide the field names and version", ERRORSTACK_ERROR, 'DBVersionOver'); $this->result = INSTALLER_TEST_FAIL; return $this->result; } } function prepareParameters() { $engine =& $GLOBALS['INSTALLER']['ENGINE']; if (isset($this->params['server_field'])) { $server_field = $engine->getField($this->params['server_field']); $this->server = $server_field->value; } else if (isset($this->params['server'])) { $this->server = $this->params['server']; } else { $this->result_message = "Could not determine server name, please provide a server_field or server parameter!"; return FALSE; } if (isset($this->params['username_field'])) { $username_field = $engine->getField($this->params['username_field']); $this->username = $username_field->value; } else if (isset($this->params['username'])) { $this->username = $this->params['username']; } else { $this->result_message = "Could not determine datbase username, please provide a username_field or username parameter!"; return FALSE; } if (isset($this->params['password_field'])) { $password_field = $engine->getField($this->params['password_field']); $this->password = $password_field->value; } else if (isset($this->params['password'])) { $this->password = $this->params['password']; } else { $this->result_message = "Could not determine datbase password, please provide a password_field or password parameter!"; return FALSE; } if (isset($this->params['type_field'])) { $type_field = $engine->getField($this->params['type_field']); $this->type = $type_field->value; } else if (isset($this->params['type'])) { $this->type = $this->params['type']; } else { $this->result_message = "Could not determine datbase type, please provide a type_field or type parameter!"; return FALSE; } if(isset($this->params['version'])) { $this->version = $this->params['version']; } else { $this->result_message = "Could not find required version number, please provide a version parameter!"; return FALSE; } } function perform(){ if ($this->prepareParameters() === FALSE) { $this->result = INSTALLER_TEST_FAIL; return $this->result; } # include ADOdb class files require_once('../classes/adodb/adodb.inc.php'); require_once('../classes/adodb/adodb-errorhandler.inc.php'); # Create ADODB connection object @$db = ADONewConnection($this->type); if (!$db) { $this->result = INSTALLER_TEST_FAIL; $this->result_message = "Cannot create ADODB connection of type $this->type"; return $this->result; } # Construct the database address $address = $this->server; # Connect to the database @$ok = $db->Connect($address, $this->username, $this->password); if (!$ok) { $this->result = INSTALLER_TEST_FAIL; $this->result_message = "Could not connect to $this->dbtype database server $address with username $this->username: ".$db->ErrorMsg(); return $this->result; } # Obtain version information about the database @$info = $db->ServerInfo(); if (!$info) { $this->result = INSTALLER_TEST_FAIL; $this->result_message = "Error getting database server version information: ".$db->ErrorMsg(); return $this->result; } $ver = $info['version']; $target_version = $this->version[$this->type]; if (version_compare($ver, $target_version, '>=')) { $this->result = INSTALLER_TEST_SUCCESS; $this->result_message = "You are running $this->type version $ver which is >= $target_version"; } else { $this->result = INSTALLER_TEST_FAIL; $this->result_message = "You are running $this->type version $ver which is < $target_version"; } return $this->result; } } ?> Quote Link to comment https://forums.phpfreaks.com/topic/266428-stepping-back/#findComment-1365317 Share on other sites More sharing options...
jazzman1 Posted July 30, 2012 Share Posted July 30, 2012 Could you post the script from BaseTest class ? Quote Link to comment https://forums.phpfreaks.com/topic/266428-stepping-back/#findComment-1365322 Share on other sites More sharing options...
BREZ Posted July 30, 2012 Author Share Posted July 30, 2012 @Jazzman, I possibly could... if i knew how to do that! I am literally a novice with anything above html. Quote Link to comment https://forums.phpfreaks.com/topic/266428-stepping-back/#findComment-1365324 Share on other sites More sharing options...
jazzman1 Posted July 30, 2012 Share Posted July 30, 2012 Have you been searched any files and directories before? Download a project into your local machine (or upload files into your IDE ) and run search. Quote Link to comment https://forums.phpfreaks.com/topic/266428-stepping-back/#findComment-1365327 Share on other sites More sharing options...
BREZ Posted July 30, 2012 Author Share Posted July 30, 2012 Now i am really confused! Have i been searched? Yes i downloaded this project into my download folder, then uploaded it onto my website using ftp. i dont know what is IDE. Sorry i really am a novice at this. Quote Link to comment https://forums.phpfreaks.com/topic/266428-stepping-back/#findComment-1365328 Share on other sites More sharing options...
jazzman1 Posted July 30, 2012 Share Posted July 30, 2012 Now i am really confused! Have i been searched? Yes i downloaded this project into my download folder, then uploaded it onto my website using ftp. i dont know what is IDE. Sorry i really am a novice at this. Sorry, my EN grammar is not very proper. I just want to say, do you know how to find files and directories? In this case, just go to the project folder and run find command to find this class. Quote Link to comment https://forums.phpfreaks.com/topic/266428-stepping-back/#findComment-1365330 Share on other sites More sharing options...
BREZ Posted July 30, 2012 Author Share Posted July 30, 2012 now, i think i understand a bit more. on my laptop i have a tar.gz folder of the program (15.8mb) on my website i have the extracted files, but cant install them because of this error. Now, on my laptop, if i unzip the tar.gz folder, i can view(and edit) files using my notepad++ editor. This has the find option. and, dont apologize for your english, after all, i am in the Medical trade so its a daily occurrence for me! Quote Link to comment https://forums.phpfreaks.com/topic/266428-stepping-back/#findComment-1365331 Share on other sites More sharing options...
jazzman1 Posted July 30, 2012 Share Posted July 30, 2012 You need to go to the folder and to run find (search) engine in your windows explorer. I've never used windows in my life to tell you how to do this but you can google it. Take a look at this: http://www.wikihow.com/Find-the-Right-File-in-Windows-Explorer Quote Link to comment https://forums.phpfreaks.com/topic/266428-stepping-back/#findComment-1365333 Share on other sites More sharing options...
PFMaBiSmAd Posted July 30, 2012 Share Posted July 30, 2012 The PHP version test and error message has nothing to do with the code you have posted. How about giving us the name of this script and posting a link to the Author's site? Quote Link to comment https://forums.phpfreaks.com/topic/266428-stepping-back/#findComment-1365337 Share on other sites More sharing options...
BREZ Posted July 30, 2012 Author Share Posted July 30, 2012 The script is care2x-2.5_RC2.tar I downloaded it from http://sourceforge.net/directory/natlanguage%3Aenglish/os%3Alinux/freshness%3Arecently-updated/?q=care2x Quote Link to comment https://forums.phpfreaks.com/topic/266428-stepping-back/#findComment-1365339 Share on other sites More sharing options...
jazzman1 Posted July 30, 2012 Share Posted July 30, 2012 There is a newer version: 2.6.27 Quote Link to comment https://forums.phpfreaks.com/topic/266428-stepping-back/#findComment-1365342 Share on other sites More sharing options...
peipst9lker Posted July 30, 2012 Share Posted July 30, 2012 i dont know what is IDE. Integrated development environment Quote Link to comment https://forums.phpfreaks.com/topic/266428-stepping-back/#findComment-1365366 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.