Repair settings.php/it: Difference between revisions From Online Manual

Jump to: navigation, search
(Created page with "=== Download ===")
(Updating to match new version of source page)
 
(26 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Other languages}}
{{Other languages}}
 
{{TOCright}}
{{TOCright}}  
Lo strumento repair_settings.php viene utilizzato per riparare alcune delle impostazioni più importanti sul vostro forum. Basta scaricare questo file e caricarlo sul vostro forum, mettendolo nella stessa directory del file Settings.php.
Lo strumento repair_settings.php viene utilizzato per riparare alcune delle impostazioni più importanti sul vostro forum. Basta scaricare questo file e caricarlo sul vostro forum, mettendolo nella stessa directory del file Settings.php.


L'utilizzo di questo strumento non dovrebbe causare alcun problema ma è sempre meglio fare un [[backup]] giusto in caso...
L'utilizzo di questo strumento non dovrebbe causare alcun problema ma è sempre meglio fare un [[backup]] giusto in caso...


Caricate il file tramite FTP nella cartella principale dove potete trovare Settings.php. Navigate con il browser al solito URL del forum, ma invece di "/index.php", indirizzate il browser a "/repair_settings.php". Ad esempio, se il vostro forum è nella root del vostro sito, e il sito è a '''<nowiki>www.example.com</nowiki>''' dovete andare a: <nowiki>http://www.example.com/repair_settings.php</nowiki>. Se si trova in una sotto-directory chiamata, ad esempio "forum", è necessario andare a: <nowiki>http://www.example.com/forum/repair_settings.php</nowiki>
==Download the Repair Settings Tool==


Caricate il file nella directory principale del vostro forum tramite FTP e poi accedete alla pagina nel browser. '''Si prega di notare che questo strumento visualizzerà le informazioni sensibili circa la configurazione del server, vale a dire l'utente del database e la password. Assicurarsi di caricarlo, usarlo, e rimuoverlo immediatamente una volta terminata la manutenzione!'''
You can download the Repair Settings Tool (''repair_settings.php'') from the tools section of the SMF Downloads center: [http://download.simplemachines.org/index.php?thanks;filename=repair_settings.php repair_settings.php].
 
==Using the Repair Settings Tool==
 
Caricate il file tramite FTP nella cartella principale dove potete trovare Settings.php. Navigate con il browser al solito URL del forum, ma invece di "/index.php", indirizzate il browser a "/repair_settings.php". Ad esempio, se il vostro forum è nella root del vostro sito, e il sito è a '''<nowiki>www.example.com</nowiki>''' dovete andare a: <nowiki>http://www.example.com/repair_settings.php</nowiki>. Se si trova in una sotto-directory chiamata, ad esempio "forum", è necessario andare a: <nowiki>http://www.example.com/forum/repair_settings.php</nowiki>
 
For example, if your forum is in the root directory of your site, and your site is at ''<nowiki>www.example.com</nowiki>'' you need to go to: ''<nowiki>http://www.example.com/repair_settings.php</nowiki>''. If it is located in a sub-directory named, for example ''forum'', you need to go to: ''<nowiki>http://www.example.com/forum/repair_settings.php</nowiki>''.
 
'''ATTENZIONE:''' Si prega di notare che questo strumento visualizzerà le informazioni sensibili circa la configurazione del server, vale a dire l'utente del database e la password. Assicurarsi di caricarlo, usarlo, e '''rimuoverlo immediatamente''' una volta terminata la manutenzione!


Repair_settings.php consente di modificare le impostazioni più importanti, come le informazioni del database, i percorsi dei file e URL, e può essere utilizzato quando SMF non funziona. È usato per riparare sufficientemente l'installazione di SMF per consentire ad un amministratore di accedere e correggere eventuali altri problemi.
Repair_settings.php consente di modificare le impostazioni più importanti, come le informazioni del database, i percorsi dei file e URL, e può essere utilizzato quando SMF non funziona. È usato per riparare sufficientemente l'installazione di SMF per consentire ad un amministratore di accedere e correggere eventuali altri problemi.


=== Download ===
=== Download ===
I moduli repair_settings.php possono essere scaricati dalla pagina di download di SMF:'' [http://download.simplemachines.org/ Download]> [http://download.simplemachines.org/?tools Strumenti]> [http://download.simplemachines.org/index.php?thanks;filename=repair_settings.php repair_settings.php]''


=== Settings the Tool Can Repair ===
=== Impostazioni che lo strumento è in grado di riparare ===  
For more information on each of these settings, please see [[server settings]].
Per ulteriori informazioni su ciascuna di queste impostazioni, vedere [[server settings]].


==== Critical Settings ====
==== Impostazioni critiche ====  
* '''Maintenance Mode''' - Turns maintenance mode on your forum on and off, and also make your forum completely unusable.
* '''Modalità di manutenzione''' - Attiva e disattiva la modalità di manutenzione sul vostro forum, e rende il vostro forum completamente inutilizzabile.  
* '''Language File''' - Changes the language of your forum.
* '''Lingua File''' - Cambia la lingua del forum.
* '''Cookie Name''' - Changes the name of the cookie that your forum creates for the user's browsers.
* '''Cookie Nome''' - Cambia il nome del cookie che il vostro forum crea per i browser degli utenti.
* '''Queryless URLs''' - Turns the use of queries in the forum's urls on and off ("index.php/topic,1.0.html" vs. "index.php?topic=1.0")
* '''Queryless URL''' - Attiva e disattiva l'uso di query nella URL del forum ("index.php/topic,1.0.html" vs. "index.php?topic=1.0").
* '''Compressione in uscita''' - Attiva e disattiva la compressione in uscita.
* '''Sessioni guidate dal database''' - Imposta se le sessioni sono gestite dal database.
* '''Cookie Name''' - This changes the name of the [[Settings.php#.24cookiename|cookie]] that your forum creates for the user's browser.
* '''Queryless URLs''' - Turns the use of queries in the forum's URLs on and off (''../index.php/topic,1.0.html'' compared to ''../index.php?topic=1.0''). In the Admin Center, this setting is referred to as [[SMF2.0:Features_and_Options#General|Search engine friendly URLs]].
* '''Output Compression''' - Turns output compression on and off.
* '''Output Compression''' - Turns output compression on and off.
* '''Database driven sessions''' - Sets whether sessions are managed by the database.
* '''Database driven sessions''' - Sets whether sessions are managed by the database.
*'''Set SMF default theme as overall forum default for all users''' - This will override the [[Profile#Look_and_Layout|theme preference]] in the profiles of all users.
==== Impostazioni database ====
* '''Include tutte le impostazioni tipiche che sono necessarie per connettersi al database''' - L'indirizzo del database del server, nome del database, nome utente del database, password del database e il database prefisso delle tabelle.
* '''Tipo di connessione database''' - Può essere impostato a Persistente o Standard.
This section includes all of the typical settings that are needed to connect to the [[database]] of your forum:
*'''Server'''
*'''Database name'''
*'''Username'''
*'''Password'''
{{ {{Localized|Version specific}}|small=yes|version=2.0+|content=
*'''SSI Username''' (optional)
*'''SSI Password''' (optional)}}
*'''Table prefix'''
*'''Connection Type''' (''Standard'' or ''Persistent'')
If you are unsure about any of the above settings, please contact your host.


==== Database Settings ====
==== Percorsi e URL ====  
* '''Includes all of the typical settings that are needed to connect to the database''' - Database server address, database name, database username, database password, and database table prefix.
* '''Consente di impostare i percorsi per''' - Forum URL, Directory del Forum, Directory di "Sources", Directory degli Allegati, URL degli Avatar, Directory degli Avatar, URL degli Smiley, Directory degli Smiley, Default URL del tema, URL delle immagini del tema di Default, Default Directory del tema e Directory dei temi personalizzati.
* '''Database connection type''' - Can be set to Persistent or Standard.


==== Paths & URLs ====
In this section, you can check that the directory paths and URLs are set correctly for your forum:
* '''Allows you to set the paths for''' - Forum URL, Forum Directory, Sources Directory, Attachment Directory, Avatar URL, Avatar Directory, Smileys URL, Smileys Directory, Default Theme URL, Default Theme Images URL, and Default Theme Directory and Custom Theme Directories.


Repair_settings.php will allow you to keep your custom theme as default and not reset to the default theme, unless you select the option toward the top of the page.  
*'''Forum URL'''
*'''Forum Directory'''
*'''Sources Directory'''
{{ {{Localized|Version specific}}|small=yes|version=2.0+|content=
*'''Cache Directory'''}}
*'''Attachment Directory'''
*'''Avatar URL'''
*'''Avatar Directory'''
*'''Smileys URL'''
*'''Smileys Directory'''


=== Recommended values ===
For more information on each of the settings above, please see [[Server settings]].
In most cases, SMF can detect the correct value for each of the fields and settings. Underneath many of the settings is a link with with the recommended value. Clicking these links will update the corresponding text box fields with this value. Be careful though, because SMF will not always guess correctly if the server is configured unusually.


===Restore all settings===
===Paths & URLs for Themes===
At the bottom of the file is an option to restore all settings. This will change all values to their default.


This section enables you to check that the directory paths and URLs are correct for the default theme as well as for any other themes that you have installed.
Repair_settings.php vi permetterà di mantenere il vostro tema personalizzato come predefinito e non ripristinare il tema di default, a meno che non si selezioni l'opzione relativa nella parte superiore della pagina.
=== Valori consigliati ===
Nella maggior parte dei casi, SMF può rilevare il valore corretto per ciascuno dei campi e impostazioni. Sotto molte delle impostazioni vi è un link con un valore consigliato. Cliccando su questi link aggiornerete i campi di testo corrispondenti con questi valori. Fate attenzione però, perché SMF non sempre riesce ad individuare correttamente se il server è configurato correttamente o meno.
The following options appear at the bottom of the page when using the Repair Settings Tool:
*'''Restore all settings''' - This changes all the settings to the ''recommended values'', which saves you the effort of clicking on each individual link for the recommended values (as found below each setting). As mentioned above, there is no guarantee that the tool will detect all of the correct settings, so you should use this button with caution.
{{ {{Localized|Version specific}}|small=yes|version=2.0+|content=
{{ {{Localized|Version specific}}|small=yes|version=2.0+|content=
===Remove all hooks===
*'''Remove all hooks''' - If [[Modification_(term)|mods]] have installed [[Integration hooks|hooks]] and a clean install is desired, clicking ''Remove all hooks'' will ensure that all mods have all elements removed/disabled. Do not use this button unless you know what you are doing.}}
If mods have installed hooks and a clean install is desired, clicking "Remove all hooks" will ensure that all mods have all elements removed/disabled. Do not use this button unless you know what you are doing.}}
*'''Remove this file. Careful, it may not work in all servers!''' - If you click this button, the tool will attempt to delete the file ''repair_settings.php'' in the root directory of your SMF installation. This is for security reasons. You might have to delete the file manually with your FTP client, though.
*'''Save Settings''' - Don't forget to click on this button in order to save the changes that you have made.
 
=== Rimuovere tutti gli hooks ===
Se alcune mods hanno installato degli hooks ed è desiderata un'installazione pulita, cliccando su "Rimuovi tutti gli hooks" farà in modo che tutte le mod abbiano tutti gli elementi rimossi/disabilitati. Non utilizzate questo pulsante se non sapete cosa state facendo.
 
If you are using a different set of database details (perhaps due to moving your forum, or because you are trying to set up a secondary or test forum), make sure you use the Repair Settings Tool in the following order:
 
#Run the Repair Settings Tool and make changes <u>only</u> in the database section. You must save the updated database settings ''before'' you do anything else.
#Run the Repair Settings Tool again. Now you can adjust the directory paths and URLs for your forum.


[[Category:FAQ]]
It is important to use the tool in the above order because some of the directory paths and URLs (such as those for attachments, avatars, and smileys) are stored in the database. This means that if you attempt to change these paths and URLs before you have reset your forum to use the new database, you will in fact be making changes to the old forum database.
[[Category:FAQ{{Langcat|{{BASEPAGENAME}}}}]]

Latest revision as of 20:50, 1 September 2014

Languages English  · español · italiano

Lo strumento repair_settings.php viene utilizzato per riparare alcune delle impostazioni più importanti sul vostro forum. Basta scaricare questo file e caricarlo sul vostro forum, mettendolo nella stessa directory del file Settings.php.

L'utilizzo di questo strumento non dovrebbe causare alcun problema ma è sempre meglio fare un backup giusto in caso...

Download the Repair Settings Tool

You can download the Repair Settings Tool (repair_settings.php) from the tools section of the SMF Downloads center: repair_settings.php.

Using the Repair Settings Tool

Caricate il file tramite FTP nella cartella principale dove potete trovare Settings.php. Navigate con il browser al solito URL del forum, ma invece di "/index.php", indirizzate il browser a "/repair_settings.php". Ad esempio, se il vostro forum è nella root del vostro sito, e il sito è a www.example.com dovete andare a: http://www.example.com/repair_settings.php. Se si trova in una sotto-directory chiamata, ad esempio "forum", è necessario andare a: http://www.example.com/forum/repair_settings.php

For example, if your forum is in the root directory of your site, and your site is at www.example.com you need to go to: http://www.example.com/repair_settings.php. If it is located in a sub-directory named, for example forum, you need to go to: http://www.example.com/forum/repair_settings.php.

ATTENZIONE: Si prega di notare che questo strumento visualizzerà le informazioni sensibili circa la configurazione del server, vale a dire l'utente del database e la password. Assicurarsi di caricarlo, usarlo, e rimuoverlo immediatamente una volta terminata la manutenzione!

Repair_settings.php consente di modificare le impostazioni più importanti, come le informazioni del database, i percorsi dei file e URL, e può essere utilizzato quando SMF non funziona. È usato per riparare sufficientemente l'installazione di SMF per consentire ad un amministratore di accedere e correggere eventuali altri problemi.

Download

I moduli repair_settings.php possono essere scaricati dalla pagina di download di SMF: Download> Strumenti> repair_settings.php

Impostazioni che lo strumento è in grado di riparare

Per ulteriori informazioni su ciascuna di queste impostazioni, vedere server settings.

Impostazioni critiche

  • Modalità di manutenzione - Attiva e disattiva la modalità di manutenzione sul vostro forum, e rende il vostro forum completamente inutilizzabile.
  • Lingua File - Cambia la lingua del forum.
  • Cookie Nome - Cambia il nome del cookie che il vostro forum crea per i browser degli utenti.
  • Queryless URL - Attiva e disattiva l'uso di query nella URL del forum ("index.php/topic,1.0.html" vs. "index.php?topic=1.0").
  • Compressione in uscita - Attiva e disattiva la compressione in uscita.
  • Sessioni guidate dal database - Imposta se le sessioni sono gestite dal database.
  • Cookie Name - This changes the name of the cookie that your forum creates for the user's browser.
  • Queryless URLs - Turns the use of queries in the forum's URLs on and off (../index.php/topic,1.0.html compared to ../index.php?topic=1.0). In the Admin Center, this setting is referred to as Search engine friendly URLs.
  • Output Compression - Turns output compression on and off.
  • Database driven sessions - Sets whether sessions are managed by the database.
  • Set SMF default theme as overall forum default for all users - This will override the theme preference in the profiles of all users.

Impostazioni database

  • Include tutte le impostazioni tipiche che sono necessarie per connettersi al database - L'indirizzo del database del server, nome del database, nome utente del database, password del database e il database prefisso delle tabelle.
  • Tipo di connessione database - Può essere impostato a Persistente o Standard.

This section includes all of the typical settings that are needed to connect to the database of your forum:

  • Server
  • Database name
  • Username
  • Password
  • SSI Username (optional)
  • SSI Password (optional)
  • Table prefix
  • Connection Type (Standard or Persistent)

If you are unsure about any of the above settings, please contact your host.

Percorsi e URL

  • Consente di impostare i percorsi per - Forum URL, Directory del Forum, Directory di "Sources", Directory degli Allegati, URL degli Avatar, Directory degli Avatar, URL degli Smiley, Directory degli Smiley, Default URL del tema, URL delle immagini del tema di Default, Default Directory del tema e Directory dei temi personalizzati.

In this section, you can check that the directory paths and URLs are set correctly for your forum:

  • Forum URL
  • Forum Directory
  • Sources Directory
  • Cache Directory
  • Attachment Directory
  • Avatar URL
  • Avatar Directory
  • Smileys URL
  • Smileys Directory

For more information on each of the settings above, please see Server settings.

Paths & URLs for Themes

This section enables you to check that the directory paths and URLs are correct for the default theme as well as for any other themes that you have installed.

Repair_settings.php vi permetterà di mantenere il vostro tema personalizzato come predefinito e non ripristinare il tema di default, a meno che non si selezioni l'opzione relativa nella parte superiore della pagina.

Valori consigliati

Nella maggior parte dei casi, SMF può rilevare il valore corretto per ciascuno dei campi e impostazioni. Sotto molte delle impostazioni vi è un link con un valore consigliato. Cliccando su questi link aggiornerete i campi di testo corrispondenti con questi valori. Fate attenzione però, perché SMF non sempre riesce ad individuare correttamente se il server è configurato correttamente o meno.

The following options appear at the bottom of the page when using the Repair Settings Tool:

  • Restore all settings - This changes all the settings to the recommended values, which saves you the effort of clicking on each individual link for the recommended values (as found below each setting). As mentioned above, there is no guarantee that the tool will detect all of the correct settings, so you should use this button with caution.
  • Remove all hooks - If mods have installed hooks and a clean install is desired, clicking Remove all hooks will ensure that all mods have all elements removed/disabled. Do not use this button unless you know what you are doing.
  • Remove this file. Careful, it may not work in all servers! - If you click this button, the tool will attempt to delete the file repair_settings.php in the root directory of your SMF installation. This is for security reasons. You might have to delete the file manually with your FTP client, though.
  • Save Settings - Don't forget to click on this button in order to save the changes that you have made.

Rimuovere tutti gli hooks

Se alcune mods hanno installato degli hooks ed è desiderata un'installazione pulita, cliccando su "Rimuovi tutti gli hooks" farà in modo che tutte le mod abbiano tutti gli elementi rimossi/disabilitati. Non utilizzate questo pulsante se non sapete cosa state facendo.

If you are using a different set of database details (perhaps due to moving your forum, or because you are trying to set up a secondary or test forum), make sure you use the Repair Settings Tool in the following order:

  1. Run the Repair Settings Tool and make changes only in the database section. You must save the updated database settings before you do anything else.
  2. Run the Repair Settings Tool again. Now you can adjust the directory paths and URLs for your forum.

It is important to use the tool in the above order because some of the directory paths and URLs (such as those for attachments, avatars, and smileys) are stored in the database. This means that if you attempt to change these paths and URLs before you have reset your forum to use the new database, you will in fact be making changes to the old forum database.



Advertisement: