Diferencia entre revisiones de «config.php»

De MoodleDocs
m (tidy up)
m (tidy up)
Línea 10: Línea 10:


==Configurar $CFG->wwwroot correctamente==
==Configurar $CFG->wwwroot correctamente==
This setting must be a fixed URL (a string constant) that points to your site. Do not try to set this with any PHP code that can generate a variable URL. This is not supported, can cause strange problems and will stop command line scripts working completely. If your site is accessed from different IP addresses this should be done with a split DNS, see [[Masquerading]]
This setting must be a fixed URL (a string constant) that points to your site. Do not try to set this with any PHP code that can generate a variable URL. This is not supported, can cause strange problems and will stop command line scripts working completely. If your site is accessed from different IP addresses this should be done with a split DNS, vea [[Enmascaramiento]]


==Habilitar salado de contraseña==
==Habilitar salado de contraseña==
Línea 16: Línea 16:
Vea [[Salado de contraseña]].
Vea [[Salado de contraseña]].


==Incluir contraseñas en copias de seguridad (resplados)==
==Incluir contraseñas en copias de seguridad (respaldos)==


Hashed user passwords are no longer saved in backup files containing user data in Moodle 1.8.11 and 1.9.7 onwards.
Hashed user passwords are no longer saved in backup files containing user data in Moodle 1.8.11 and 1.9.7 onwards.
Línea 26: Línea 26:
==Cambiar el diseño de bloques por defecto para cursos nuevos==
==Cambiar el diseño de bloques por defecto para cursos nuevos==


See [[Block layout]].
Vea [[Diseño de bloque]].


==ambiar la localizaci´´ón del directorio de temas por defecto==
==Cambiar la localización del directorio de temas por defecto==
The location of theme directories may be altered, using the variables ''$CFG->themewww'' and ''$CFG->themedir''. Themes placed in the directory specified by these variables will then be available for selection using the theme selector.
The location of theme directories may be altered, using the variables ''$CFG->themewww'' and ''$CFG->themedir''. Themes placed in the directory specified by these variables will then be available for selection using the theme selector.



Revisión del 19:04 24 feb 2013

Nota: Pendiente de ACTUALIZAR esta traducción respecto a la página original en inglés (ver enlace hacia English en el cuadro abajo a la derecha).     (otras páginas pendientes)

El nombre del archivo de configuración de Moodle es config.php. Este archivo se localiza en el directorio moodle. No está incluido dentro del paquete que se descarga de Moodle porque es creado por el proceso de instalación a partir del archivo de plantilla config-dist.php (que si está incluido en los paquetes de Moodle).


config-dist.php

Although the installation process creates the config.php file for you, there may be times when you want to do this yourself. A sample config file, called config-dist.php, is shipped with Moodle.

To get started simply copy config-dist.php to config.php, then edit config.php with you favourite editor. The file is very well commented. The important options (which you must supply) are all nearer the top. Other less common options are further down.

Configurar $CFG->wwwroot correctamente

This setting must be a fixed URL (a string constant) that points to your site. Do not try to set this with any PHP code that can generate a variable URL. This is not supported, can cause strange problems and will stop command line scripts working completely. If your site is accessed from different IP addresses this should be done with a split DNS, vea Enmascaramiento

Habilitar salado de contraseña

Vea Salado de contraseña.

Incluir contraseñas en copias de seguridad (respaldos)

Hashed user passwords are no longer saved in backup files containing user data in Moodle 1.8.11 and 1.9.7 onwards.

If you really need passwords to be saved (in the rare case of restoring a backup with user data to a different site), the following line may be added to config.php:

$CFG->includeuserpasswordsinbackup

Cambiar el diseño de bloques por defecto para cursos nuevos

Vea Diseño de bloque.

Cambiar la localización del directorio de temas por defecto

The location of theme directories may be altered, using the variables $CFG->themewww and $CFG->themedir. Themes placed in the directory specified by these variables will then be available for selection using the theme selector.

For example, should you wish to place themes in a subdirectory called 'my_moodle_themes', your config.php might look like this:

$CFG->wwwroot   = 'http://my.moodle.site.edu';
$CFG->dirroot   = '/var/www/my.moodle.site.edu/public_html';
$CFG->themewww  = $CFG->wwwroot . '/my_moodle_themes';
$CFG->themedir  = $CFG->dirroot . '/my_moodle_themes';

Deshabilitar notificaciones de actualización

Vea Notificaciones.

Habilitar depuración (debugging)

Vea Depuración.

Vea también