Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Problème d'installation

More
9 years 1 month ago #116692 by PHL
Problème d'installation was created by PHL
Bonsoir aux experts,

J'ai réalisé sans difficulté les 4 premières étapes de l'installation mais je bloque sur le fichier config.php car je ne parviens pas à identifier le bon fichier à modifier.

Dans le doute j'ai renseigné le fichier config-sample-MySQL.php (voir ci-dessous)
Je pense qu'il manque une ou plusieurs données.

lorsque je tente de lancer le script d'installation j'ai le message suivant : Parse error: syntax error, unexpected T_OBJECT_OPERATOR in index.php on line 200


Contenu du fichier config-sample-MySQL.php


<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
|
| DATABASE CONNECTIVITY SETTINGS
|
| This file will contain the settings needed to access your database.
|
| For complete instructions please consult the 'Database Connection'
| page of the User Guide.
|
|
| EXPLANATION OF VARIABLES
|
|
| 'connectionString' Hostname, database, port and database type for
| the connection. Driver example: mysql. Currently supported:
| mysql, pgsql, mssql, sqlite, oci
| 'username' The username used to connect to the database
| 'password' The password used to connect to the database
| 'tablePrefix' You can add an optional prefix, which will be added
| to the table name when using the Active Record class
|
*/
return array(
'components' => array(
'db' => array(
'connectionString' => 'mysql:host=localhost;port=3306;dbname=limesurvey;',
'emulatePrepare' => true,
'username' => 'baseforum',
'password' => 'Nfje531',
'charset' => 'utf8',
'tablePrefix' => 'lime_',
),
// Uncomment the following section if you wish to store sessions in the database
// rather than in files.
// Make sure MySQL max_allowed_packet setting is large enough, some surveys generate over 2 MB of session data.
/*
'session' => array (
'class' => 'system.web.CDbHttpSession',
'connectionID' => 'db',
'sessionTableName' => '{{sessions}}',
),
*/
'urlManager' => array(
'urlFormat' => 'get',
'rules' => require('routes.php'),
'showScriptName' => true,
),
),
// Use the following config variable to set modified optional settings copied from config-defaults.php
'config'=>array(
// debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this
// then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
// on your webspace.
// LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates
'debug'=>0,
'debugsql'=>0 // Set this to 1 to enanble sql logging, only active when debug = 2
)
);
/* End of file config.php */
/* Location: ./application/config/config.php */
Attachments:
The topic has been locked.
  • Nickko
  • Nickko's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 1 month ago #116695 by Nickko
Replied by Nickko on topic Problème d'installation
ça sent la mauvaise version de PHP, tu pourrais nous en dire plus à propos de ton hébergement ?

Nickko
Head of ergonomics, UX & UI.
The following user(s) said Thank You: PHL
The topic has been locked.
More
9 years 1 month ago #116697 by PHL
Replied by PHL on topic Problème d'installation
hébergement chez Online

PHL
The topic has been locked.
  • Nickko
  • Nickko's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 1 month ago - 9 years 1 month ago #116698 by Nickko
Replied by Nickko on topic Problème d'installation
Mais encore ?
Donne nous au moins la version de PHP.

Si Online ne te donne pas directement cette info, tu peux l'avoir en créant un fichier PHP contenant phpinfo();

Nickko

Nickko
Head of ergonomics, UX & UI.
Last edit: 9 years 1 month ago by Nickko.
The topic has been locked.
More
9 years 1 month ago #116702 by PHL
Replied by PHL on topic Problème d'installation
Merci pour le coup de main, je suis un débutant mais je cherche à apprendre !

La version est PHP5

PHL.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 1 month ago #116704 by DenisChenu
Replied by DenisChenu on topic Problème d'installation
Je ne comprend pas, tu n'as pas à modifier config.php manuellement normalement.

Faut pitete qu'on mette à jour la doc FR la dessus.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • Nickko
  • Nickko's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 1 month ago #116711 by Nickko
Replied by Nickko on topic Problème d'installation
Tu tiens peut-être quelques chose Denis.
J'ai cru qu'il cherchait à modifier config.php parce qu'il rencontré un problème d'installation, mais c'est peut-être l'inverse.

PHL pourrais-tu nous dire si tu as modifier le fichier de config avant ou après avoir rencontré tes problèmes ?

Pour la version de PHP, PHP 5 c'est normal, il n'y a plus que ça aujourd'hui, mais on a PHP 5.2 à 5.3 franchement obsolète, mais il y a encore du PHP 5.4 qui commence à ce faire vieux (de mémoire).

Nickko
Head of ergonomics, UX & UI.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 1 month ago - 9 years 1 month ago #116712 by DenisChenu
Replied by DenisChenu on topic Problème d'installation
Salut,

PHP5.3 est dépréciée et plus maintenu, même en cas de problème de sécurité.
PHP5.4 est livré en standard et par défaut (au minimum) sur tous les hébergeurs. C'est aussi la version de Debian Stable. Elle est dépréciée, mais maintenue pour les patchs de sécurité.

LimeSurvey demande au minimum PHP5.4 (tant que cela sera la version standard de Debian au minimum).

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 9 years 1 month ago by DenisChenu.
The topic has been locked.
Moderators: Nickko

Lime-years ahead

Online-surveys for every purse and purpose