Diferencia entre revisiones de «config.php»

De MoodleDocs
m (tidy up)
m (tidy up)
Línea 1: Línea 1:
{{Instalación}}
{{Instalación}}
{{chafa}}
{{chafa}}
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 descrga 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).
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).




Línea 9: Línea 9:
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.
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.


==Setting $CFG->wwwroot correctly==
==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, see [[Masquerading]]


==Enabling password salting==
==Habilitar salado de contraseña==


See [[Password salting]].
Vea [[Salado de contraseña]].


==Including passwords in backups==
==Incluir contraseñas en copias de seguridad (resplados)==


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 24: Línea 24:
  $CFG->includeuserpasswordsinbackup
  $CFG->includeuserpasswordsinbackup


==Changing default block layout for new courses==
==Cambiar el diseño de bloques por defecto para cursos nuevos==


See [[Block layout]].
See [[Block layout]].


==Changing default theme directory location==
==ambiar 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 17:59 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, see Masquerading

Habilitar salado de contraseña

Vea Salado de contraseña.

Incluir contraseñas en copias de seguridad (resplados)

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

See Block layout.

ambiar 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 Debugging.

Vea también