Quick links: Content - sections - sub sections
EN

Trace: requirements

This is an old revision of the document!


Dovete installare la almeno la versione 5.2 del PHP (Jelix project supports gophp5 campaign). Le estensioni dom, simplexml, pcre, session, tokenizer e spl sono richieste (sono normalmente attivate in una installazione PHP 5.2 standard).

Nota su DOM e XML: verificare che l'estensione DOM sia installata ed l'estensione DOM XML non sia installata. Alcune distribuzioni le includono entrambe (o solo DOM-XML), e ci potrebbero essere alcuni errori di codice PHP all'interno di Jelix.

È anche possibile installare un connettore per database. Per il momento, Jelix dispone di connetori per MySQL 4.1+, PostgreSQL 8.0+, SQLite e PDO.

Se avete intenzione di utilizzare gli script inline che contribuiscono allo sviluppo (jelix-script), è inoltre necessario installare la versione di PHP da linea di comando: PHP-CLI .

PHP configuration

  • magic_quotes_gpc emagic_quotes_runtime devono essere disattivate. In alternativa, potete attivare il plugin magicquotes sviluppato per Jelix.
  • session_auto_start deve essere impostato a off.
  • safe_mode deve essere impostato a off. (Jelix non è stato testato in modalità on)

E' anche raccomandato impostare i seguenti valori:

  • register_globals = off
  • asp_tags = off
  • short_open_tag = off

La funzione phpinfo() può aiutarvi a capire se queste opzioni sono impostate con i valori corretti. E' possibile anche controllare il file php.ini del vostro server.

Configurazione di PHP-CLI con MAMP (Macintosh)

Il software MAMP contiene PHP-Cli. Forse c'è anche un altro PHP-CLI già installato con MacOS. Il problema è che PHP-CLI per MAMP non è configurato per l'accesso al MAMP MySQL.

La soluzione:

  • Aprite il file /etc/profile/ con i permessi di amministrazione
  • Aggiungete queste due righe alla fine (modificare il percorso se non è quello corretto)
export DYLD_LIBRARY_PATH=/Applications/MAMP/Library/lib:${DYLD_LIBRARY_PATH}
export PATH=/Applications/MAMP/bin/php5/bin:${PATH}
  • Un'interruzione di riga deve essere presente alla fine del file
  • Salvate il file

Se si desidera utilizzare il vecchio PHP-CLI, eliminare questa due righe.

Configuration of PHP-Cli under windows

You have to add the path to the php-cli binary in the PATH variable of your system.

  • right click on the icon of computer, then choose properties
  • In the system properties dialog, click on the tab “advanced”, then on the button to see the environment variables.
  • In “system variable”, click on the PATH variable
  • Change the value of the PATH variable, by adding the path to the directory of the binary of php.exe. With WAMP for example, add c:\wamp\bin\php\php5.2.6\. Don't forget to add a “;” to separate all pathes.
  • validate and close the dialog
  • reboot

Then you can call php.exe from any directory, and from the jelix-scripts directory.

it/manuale-1.1/installation/requirements.1259009488.txt.gz · Last modified: 2009/11/23 20:51 by aiacoponi

Recent changes RSS feed Creative Commons License