Elxis CMS Forum

Support => Installation => Topic started by: Bozik on July 20, 2010, 21:55:06

Title: Installation error [SOLVED]
Post by: Bozik on July 20, 2010, 21:55:06
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
Title: Re: Installation error
Post by: datahell on July 20, 2010, 22:56:39
You have PHP 4.x, Elxis requires PHP 5.x
You must update your PHP installation, it is too old.
Title: Re: Installation error
Post by: Bozik on July 21, 2010, 10:57:47
Ok, i create an .htaccess file and i wrote it :

SetEnv PHP_VER 5_TEST


now, let see if it works :)
Title: Re: Installation error
Post by: Bozik on July 21, 2010, 11:44:56
Ok, it works pretty well, thanks alot for help :)