Elxis CMS Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Do you know that Static Cache can make your site load up to 80% faster?
 
Pages: [1]
  Print  
Author Topic: Installation error [SOLVED]  (Read 300 times)
Bozik
Newbie
*
Offline Offline

Posts: 3


« on: July 20, 2010, 08:55:06 PM »

Hi there,

ok i have a problem with the installation of Elxis on my server.

I downloaded and uploaded the files on my FTP,

then i go to www.mysite.com, and i get this error message :

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homez.323/timeofpa/www/includes/floodblocker.class.php  on line 43

The code of the page floodlocker.class.php is :

// Errors and warnings
define ( 'FLOOD_TMP_DIR',    'Incorrect temprorary directory specified.' );
define ( 'FLOOD_IP_ADDR',    'Incorrect IP address specified.' );
define ( 'FLOOD_LOG_FILE',   'Log file access error! Check permissions to write.' );
define ( 'FLOOD_CRON_FNAME', 'The name of cron file must begin with dot.' );
define ( 'FLOOD_CRON_FILE',  'Cron file access error! Check permissions to write.' );
define ( 'FLOOD_CRON_JOB',   'Unable to perform the cron job.' );

// Class definition
class FloodBlocker {
    // The directory where log files will be saved. Must have permissions to write.
    public $logs_path; (line 43)
    // IP address of current connection. REMOTE_ADDR will be used by default.
    public $ip_addr;
    // An associative array of [$interval=>$limit] format, where $limit is the
    // number of possible requests during $interval seconds.
    public $rules;
    // The name of the cron file. Must begin with dot. Default filename is '.time'.
    public $cron_file;
    // Cron execution interval in seconds. 1800 secs (30 mins) by default.
    public $cron_interval;
    // After how many of seconds to consider a file as old? By default the files
    // will consider as old after 7200 secs (2 hours).
    public $logs_timeout;
    //Floodblocker is enabled or not
    public $floodblock_enabled = 0;
    //If error found during initialization flood blocker is disabled
    public $init_error = 0;


what is the error ?


P.S : its an Ovh server
« Last Edit: July 21, 2010, 01:36:01 PM by datahell » Logged
datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 5791



WWW
« Reply #1 on: July 20, 2010, 09:56:39 PM »

You have PHP 4.x, Elxis requires PHP 5.x
You must update your PHP installation, it is too old.
Logged

Elxis Team | Is Open Source | IOS Reservations | IOS Eshop
Bozik
Newbie
*
Offline Offline

Posts: 3


« Reply #2 on: July 21, 2010, 09:57:47 AM »

Ok, i create an .htaccess file and i wrote it :

SetEnv PHP_VER 5_TEST


now, let see if it works Smiley
Logged
Bozik
Newbie
*
Offline Offline

Posts: 3


« Reply #3 on: July 21, 2010, 10:44:56 AM »

Ok, it works pretty well, thanks alot for help Smiley
Logged
Pages: [1]
  Print  
 
Jump to: