Actions

Installation FAQ/ro: Difference between revisions

From LimeSurvey Manual

(Created page with "În mod normal, scriptul creează o nouă bază de date și apoi structura tabelului. Cu toate acestea, dacă serverul/ISP-ul dvs. nu vă oferă drepturi de administrator pent...")
(Created page with "==Pagină goală la accesarea paginii de instalare==")
Line 37: Line 37:
În mod normal, scriptul creează o nouă bază de date și apoi structura tabelului. Cu toate acestea, dacă serverul/ISP-ul dvs. nu vă oferă drepturi de administrator pentru a crea o nouă bază de date în MySQL, va trebui să contactați administratorul serverului pentru a crea baza de date necesară (sau să o creați singur dacă primiți permisiunile necesare). Baza de date goală nou creată ar trebui să includă drepturile de acces corespunzătoare (adică: citire/scriere/creare). Apoi, ar trebui să puteți porni instalarea LimeSurvey, care va crea tabelele în baza de date nou creată.
În mod normal, scriptul creează o nouă bază de date și apoi structura tabelului. Cu toate acestea, dacă serverul/ISP-ul dvs. nu vă oferă drepturi de administrator pentru a crea o nouă bază de date în MySQL, va trebui să contactați administratorul serverului pentru a crea baza de date necesară (sau să o creați singur dacă primiți permisiunile necesare). Baza de date goală nou creată ar trebui să includă drepturile de acces corespunzătoare (adică: citire/scriere/creare). Apoi, ar trebui să puteți porni instalarea LimeSurvey, care va crea tabelele în baza de date nou creată.


==Blank page when accessing the install page==
==Pagină goală la accesarea paginii de instalare==


This problem doesn't occur within the LimeSurvey installation but within the PHP installation.
This problem doesn't occur within the LimeSurvey installation but within the PHP installation.

Revision as of 08:57, 3 November 2023

Continut:

Instalarea pe computer

LimeSurvey poate fi instalat pe computer cu MAMP/XAMPP sau orice alt sistem. Rețineți că computerul dvs. nu este un server web - nu este accesibil prin web pentru niciun alt utilizator.

Pentru ca sondajul dvs. să fie accesibil altor utilizatori prin web, trebuie să:

  • dețineți un server sau un spațiu web de la un furnizor de gazdă
  • sau găsiți un furnizor de gazdă specializat în LimeSurvey

Începe instalarea

Cum pot crea o bază de date și un utilizator în MySQL cu acces la linia de comandă?

Trebuie să introduceți comenzile de mai jos în MySQL:

  • create database ;<your_database_name> create database ;
  • create user ;<your_database_username> create user ;
  • create user @localhost;<your_database_username> create user @localhost;
  • set password for = PASSWORD(' ');<your_database_username> set password for = PASSWORD(' ');<your_database_password> set password for = PASSWORD(' ');
  • set password for @localhost = PASSWORD(' ');<your_database_username> set password for @localhost = PASSWORD(' ');<your_database_password> set password for @localhost = PASSWORD(' ');
  • grant all on .* to ' ';<your_database_name> grant all on .* to ' ';<your_database_username> grant all on .* to ' ';
  • grant all on .* to ' '@'localhost';<your_database_name> grant all on .* to ' '@'localhost';<your_database_username> grant all on .* to ' '@'localhost';

În terminal, <your_database_name> , <your_database_username> și <your_database_password> trebuie înlocuit cu valorile corespunzătoare/dorite.

Ce se întâmplă dacă nu pot crea o bază de date printr-un script?

În mod normal, scriptul creează o nouă bază de date și apoi structura tabelului. Cu toate acestea, dacă serverul/ISP-ul dvs. nu vă oferă drepturi de administrator pentru a crea o nouă bază de date în MySQL, va trebui să contactați administratorul serverului pentru a crea baza de date necesară (sau să o creați singur dacă primiți permisiunile necesare). Baza de date goală nou creată ar trebui să includă drepturile de acces corespunzătoare (adică: citire/scriere/creare). Apoi, ar trebui să puteți porni instalarea LimeSurvey, care va crea tabelele în baza de date nou creată.

Pagină goală la accesarea paginii de instalare

This problem doesn't occur within the LimeSurvey installation but within the PHP installation.

  • Verify you have the MySQL PHP module (php-mysql) installed.
  • Verify your PHP install is loading the PHP.ini file your are modifying and not parsing other PHP.INI files on your system.
  • Verify the location and permissions of the following setting in your PHP.ini:
upload_tmp_dir="/temp"

session.save_path="/temp"
  • Verify that your server runs a suitable PHP version.

Error messages due to non-existing resources

Sometimes, files are not uploaded correctly or are broken during the upload process. This leads to several different error messages. Most of them refer to a file or function within a file which can't be found.

Solution: Re-upload all files using the binary mode of your FTP programme.

Requirements page

What is the mbstring (Multibyte String Functions) library?

The mbstring library is a PHP library that can convert char sets from one language to another. You need it if you want to run LimeSurvey. To check if it is already installed, open the URL from a web browser:

http://<your_server>/<your_limesurvey_directory>/admin/install/phpinfo.php

A lot of information will be shown. Search for the string 'mbstring' in the Configuration section. If you find the mbstring section, then all should be well and you can continue with your LimeSurvey installation!

If you don't find the mbstring section, you might have a problem on your hands. There are three possible scenarios:

  • If it's your host provider's server, ask for the activation of that extension in PHP or for further information on how you can activate it - if you have a good administration panel for your server, you may be able to activate it yourself
  • If it's your own Linux server, you may have to re-compile PHP and include the mbstring library. Ask the Linux experts how to do that. However, you can install it using your Linux package manager, which is mostly available in all the Linux distributions nowadays
    • If you are using a version of Linux that supports 'yum' (CentOS, RedHat, Fedora)...
      • ...use the terminal (as a super user) and type: yum install php-mbstring
      • ...make sure to update /etc/php.ini and uncomment the various mbstring params
      • ...make sure to restart apache after installing it: /etc/init.d/httpd restart
  • If it's your own Windows server, search for php.ini on your system, open it with an editor, and search for mbstring. Most probably, the line that contains the string is commented out with a semicolon. Remove the semicolon, save and restart your web server

Stuck at checking file system permissions

If SELinux is activated (primarily on CentOS), then you might get an error that the file system permissions are not correct, even if the list of directories is empty. SELinux prevents writing even though the permissions are for example on 777 or 755. To configure SELinux correctly for your server - check out the SELinux documentation.

After database creation

Blank page after database creation

Symptoms

  • LimeSurvey is installed correctly and the database was created, but instead of the admin page, you get an empty page
  • Web server log shows "Fatal error: Call to a member function on a non-object in /path/to/limesurvey/admin/login_check.php on line 69"

Fix

This is probably related to an incorrect setting for $rooturl or $rootdir in config.php. The file config.php attempts to set $rootdir correctly by calling dirname('''FILE'''). While this usually works, it can be upset when LimeSurvey is installed in a user's home or public_html directory and the home directory is mounted over NFS. To set up the $rootdir manually, (your shell or pwd command may show you a path like /disks/hostname/home/username/public_html/limesurvey), try using /home/username/public_html/limesurvey.

When accessing the admin page, the browser keeps running and will eventually fail to show it

Symptoms

  • LimeSurvey is installed correctly and the database was created. However, when you access the admin page, the browser keeps running and will eventually fail to show the page
  • When you check the web server access log, its size has become quite big (in some cases, more than 2 GB)
  • Inside the access log, you get this message filling the log:
  Warning : fread() [function.fread]: Length parameter must be greater than 0 in /limesurvey/classes/php-gettext/streams.php on line 120.

The line number may be different depending on your LimeSurvey version.

Fix

This may be caused by the mbstring.func_overload setting. Change the following setting in the php.ini file:

mbstring.func_overload = 0
This means no function overloading. See the PHP manual for this setting: Function Overloading Feature.

When accessing the admin page, the browser reports Fatal error: Call to a member function gT() on a non-object in login_check.php on line 76

Symptoms

  • LimeSurvey is installed correctly and the database was created. But when redirected to the admin page, the browser displayed the listed error.
  • $rootdir and $rooturl are correctly set in config.php.
  • The disk path name for limesurvey installation directory includes one of the following characters: '(',')' or '+'.
  Attention : Other characters may also induce the same behavior.


Fix

Move/rename the LimeSurvey installation directory so that the path name includes non of the following characters: '(',')' or '+' characters.

After installation

For all the other issues that may occur after a successful installation, please refer to the troubleshooting page.