Administración FAQ

De MoodleDocs
(Redirigido desde «FAQ Administración»)


Preguntas comunes

¿Cómo encuentro cual versión de Moodle está actualmente instalada?

Vea la información en Versión de Moodle en la página de Administración del sitio > Notificaciones.

Se me olvidó la contraseña del administrador

Primeramente, intente usar el enlace para Contraseña olvidada (si es que tiene uno en su sitio). Si Usted no conoce el nombre_de_usuario del administrador, a menudo es simplemente 'admin'.

Método por línea de comandos

Es posible reiniciar la contraseña del administrador usando herramientas de la línea de comandos (reset_password.php) proporcionadas con Moodle.

Nota: Pendiente de Traducir. ¡Anímese a traducir esta página!.     ( y otras páginas pendientes)

You can also set any user to be an admin user using the setting in the config.php file for this: $CFG->siteadmins="2,#"; where # is the id number of some user you do know the password to. This will turn them into administrator. See the details in the config-dist.php on how to use this.

Método por base de datos

If you do not have command line access, but do have access to the database, you can modify a password there. Passwords for all users, including admin, are stored as cryptographic hashes in the table mdl_user. You can manually replace the old hash with md5 value of the new password, it will be upgraded to the strong hash value after the first log-in.

Or, you can also do the equivalent of the config.php siteadmins setting by adding a user id number of a user with a known password to the mdl_config table where the 'name' equals "siteadmins". (This may be row 23 in the table, since it is built during install.) The 'value' is a comma delimited list of the id numbers of admin users. The default value is 2, for the main predefined admin. Add any other admins here, comma separated. For example, if you want to add user 3 as an admin, edit the value and put 2,3 as the value. You may need to flush caches for this to take effect right away, since lots of user info is cached.


Si eso fallara, si Usted puede acceder a la Base de datos usando una herramienta de administrador, allí puede Usted modificar una contraseña. Las contraseñas para todos los usuarios, incluyendo administradores, se almacenan como hashes criptográficas en la tabla mdl_user. Usted puede manualmente remplazar la hash antigua con el valor md5 de la nueva contraseña, y será actualizada al valor de hash fuerte después del primer ingreso al sitio.


¿Cómo impido que otros usuarios ingresen al sitio mientras yo le hago mantenimiento?

Use uno de los dos métodos del Modo de mantenimiento para hacer esto.

Mi sitio se quedó atascado en el modo de mantenimiento

A veces Moodle se queda atascado en el Modo de mantenimiento y Usted verá el mensaje "Su sitio está actualmente en modo de mantenimiento" a pesar de los intentos que Usted haga para desactivar el modo de mantenimiento.

Cuando Usted pone a Moodle en el Modo de mantenimiento, Moodle crea un archivo llamado maintenance.html in moodledata/maintenance.html (dentro de la carpeta de archivos del sitio). Para corregior ésto, intente lo siguiente:

  • Revise que el usuario del servidor web tenga permisos de escritura para la carpeta moodledata.
  • Manualmente elimine el archivo maintenance.html .

¿Cómo cambio el nombre del dominio o la URL del sitio Moodle?

La URL base de su sitio está configurada en la configuración wwwroot del archivo config.php. Todos los enlaces dinámicos (por ejemplo, las URLs de cursos y actividades) son construidas al prefijar esta configuración al vuelo. Estos son conocidos como "enlaces relativos."

Nota: Pendiente de Traducir. ¡Anímese a traducir esta página!.     ( y otras páginas pendientes)

Your Moodle site may also contain "absolute links" to resources which point to the previous URL, if you or anyone has copy/pasted the links into activities like Pages, or other locations in Moodle. These are text strings just like any text or link to a web site.

To change such absolute in bulk, Moodle contains a utility called Herramienta para buscar y remplazar to change all the links to the new URL. To change this login as admin and enter http://yoursite.com/admin/tool/replace/index.php in your browser address bar. Fill in your old base url and new base in the boxes and run the utility.

If you change the domain name of your site, there may be work you need to do on your web server and/or DNS settings as well to configure it to understand the new domain. See Migración for more tips.

Search and replace interface screenshot

Mi tabla de bitácoras ha desaparecido - ¡No se encontraron bitácoras!

La causa más común es que se ha corrompido la tabla mdl_log table. Vea Desempeño/Revisar corrupción en su BasedeDatos.

Nota: A partir de Moodle 2.7 hay un nuevo sistema de Bitácoras como una opción. Asegúrese de revisar en Administración del sitio > Plugins > Bitácoras > Gestionar almacenes de bitácoras para ver si es que Usted todavís está usando el sistema antiguo de bitácoras, Bitácora heredad, o la Bitácora estándar.


¿Cómo reparo una Base de datos de Moodle corrupta?

Típicamente, Usted podría ver un mensaje de error similar a './moodle/mdl_quiz_grades' is marked as crashed and should be repaired ('./moodle/mdl_quiz_grades' está marcada como caída y deberá de ser reparada). Vea Desempeño/Revisar corrupción en su BasedeDatos para la solución.

How do I change spellings like 'enrol' to 'enroll'?

This is controlled by your language pack and default language. In this case, you are probably using the default Moodle language pack 'en' which is common (and sometimes specifically Austrialian) spellings. If you need American English, add the en_us language pack and set it as the default.

¿Cómo cambio palabras como 'inscribir' y 'matricular'?

Esto está controlado por su Paquete de idioma y su idioma por defecto. En este caso, probablemente Usted está empleando alguno de los dos paquetes de idioma disponibles en Español: El Español internacional o el Español de México. Si Usted se encuentra en España o América del Sur muy probablemente le convenga el Español internacional, mientras que si está en México o América Central le convendrá el Español de México como idioma por defecto.

La interfaz para edición del Idioma en Administración > Idioma> Personalización del idioma le permite a Usted cambiar fácilmente cualquier palabra o frase empleada en el sitio. Es posible que Usted necesite buscar en varios archivos para encontrar la palabra o frase que desea cambiar. El archivo moodle.php contiene muchas frases comunes para todo el sitio y el archivo admin.php contiene muchas frase para la administración.

Políticas y configuraciones del sitio

¿Cómo funcionan los límites para archivos subidos?

Vea Tamaño de archivo subido para más información. {{Urgente de traducir]] File upload sizes are restricted in a number of ways - each one in the list restricts the following ones.

1. Not very likely these days (i.e. check if the other settings don't work), there is a setting in Apache 2 which you may need to change. You can change the limit by adding or editing a line in Apache's /usr/local/apache2/conf/httpd.conf with the upload size in bytes (check your operating system's documentation for the correct location - e.g. under /etc/apache2 is a common alternative):

LimitRequestBody 10485760

2. PHP also has limits. If you have access to it they are set in your site-wide php.ini file. On shared hosting you may be able to set these in a .htaccess file or a php.ini. You are recommended to check with your hosting company how this works on their systems.

In a php.ini file the lines will look something like:

    upload_max_filesize 64M
    post_max_size 64M

...in .htaccess the entries will look like this:

php_value upload_max_filesize 64M
php_value post_max_size 64M

An .htaccess file usually can be placed in the root of your Moodle install and will affect the whole Moodle. A (non site-wide) php.ini file may need to be copied into all the directories it needs to affect. The following are a good start:

   * public_html
   * moodle/admin
   * moodle/course
   * moodle/files
   * moodle/repository
   * root of your moodledata directory

Please note that a server re-start may be required for the above changes to take effect.

3. Moodle has a site-wide limit called maxbytes that may be set in Settings > Site Administration > Security > Site Policies > Maximum uploaded file size.

To find out the server limit setting in php.ini (without server access, just using the Moodle administration interface), check out Site Administration block > Server > PHP info (Tip: search for filesize)

4. A limit may be set by teachers in the Configuraciones del curso.

5. Activity modules such as Foros and Tareas have their own limits which may be set when adding or editing the activity.

See also

How to change upload file size on a Windows localhost

In a localhost (using a Paquetes para Instalación Completa para Windows on a computer) it is easy to change the uploaded file size to something larger than the default 16M.

Here is an example of how to change the upload file size to 100M.

  • Find ../php/php.ini and open it with WordPad by right-clicking -> Open With -> then choose WordPad.
  • In this file scroll or do a search on the text "_max_" to find upload_max_filesize = 16M
  • Change that line to
upload_max_filesize = 100M
  • In the same way, find post_max_size = 16M
  • Change that line to
post_max_size = 100M
  • Save the file.

After any changes to the php.ini file you need to restart Apache. So restart xampp and browse to localhost. You should find that the Upload file size in Configuration now reads 100M.

See also

  • Instructions below on How to change the maximum execution time

Como cambiar el tiempo máximo de ejecución (maximum execution time)

A side-effect of increasing the file upload limit is that the php scripts may execute beyond the limit set by default (300 seconds/5 minutes). To change this, look for max_execution_time in php.ini and change to something like this:

max_execution_time = 600

If you are using Apache and have a .htaccess file to change php settings, add this line to your .htaccess file:

php_value max_execution_time 600

Restart your webserver for these changes to take effect, and check that the values have been changed by looking at your phpinfo output in the moodle admin -> environment page.


Ingresar al sitio y salir del sitio

My site is logging users out to quickly

User login sessions are checked to see if the user is still active, and will log them out after a specific period of idleness. This is set in Site administration > Server > Session handling > Timeout. The default is two hours. Increase it if you need to.

Users can not login, they need cookies and debug mentions config.php

Your site's config.php file probably has extra lines after ?>. Solution is to delete the last ?>.

After using the 'Login as' function, why am I logged out of Moodle?

This is by design. After using the 'Login as' function, for security reasons you are automatically logged out of Moodle when you return to your normal role. If you login again you will be redirected to the page that you were on previously.

Texto y Apariencia

Why do I see [[missing strings]]?

Double square brackets around text indicate that language strings are missing for that function for that language. This is most common with third-party plugins or for languages that may not have all the strings translated for it yet.

First update your language packs to the latest versions in Site administration > Language > Paquetes de idioma > Update all installed language packs.

If the missing strings are for a non-standard plugin, try to update that plugin and / or check with that plugin maintainer to see if this is a reported issue. If you have access to the server code, you can check the code for this plugin; language strings are supposed to be contained in a lang folder within the module or plugin folder.

Note: after changing language strings you may see a lag in the cache for these to show up. You can force this in Site administration > Development > Purge all caches.

Cambiando el texto en Moodle

The language editing interface in Administration > Language > Personalización del idioma enables you to easily change any string, any word or phrase, used on the site.

The strings are stored per language pack. So if you change them for 'en' (common English), that will not change them for 'en_us' (US English) or any other language.

You may need to search through several files to find the word or phrase you are looking for. The file moodle.php contains all common site-wide phrases and the admin.php contains many admin phrases. Tip: if you don't know the file the string is in, select ALL the file options to search through.

Also, these customisations override but do not delete the default language strings but are stored separately in the language folders in your site's moodledata location.

Mi hoja de estilo o algunos otros cambios en el tema no se muestran

Browsers usually cache style sheets and so a forced refresh in your browser is required before any changes show up.

The Moodle server also caches all styles. You can force a refresh of the cache from disk in Site Administration>Appearance>Themes>Theme selector, click "Clear theme caches".

How can I change center of the Front Page from course categories to something else?

Go to Front Page > Settings and change "Front page" to None all down. Change "Front page items when logged in" to None all down. Ensure that "Include a topic section" is checked. Save changes and return to the front page. Turn editing on, obviously, and you should now see the "Add a resource" and "Add an activity" drop down combo-boxes. Select "Add a resource" and select "Insert a label". You can then edit the label in any way you want to in the WYSYWYG editor.

How can I change the initial login screen?

Edit one of the language files. Site administration > Language> Language customisation, look in the moodle.php file. Look for loginusing or loginsteps or loginstepsnone string variables.

How can I change the initial login screen help?

To change or add a help message for the login go to Site administration > Plugins > Authentication > Manage authentication. Type your help message in there in the Instructions text box.

Errores y Solución de Problemas

¿Cómo habilito/deshabilito la depuración (debugging)?

If you are getting a blank or partially complete page, or receive a page that presents a short error message that is not informative enough, you can turn on debugging to learn more details.

Turning on debugging will let you see what the error message is, which may help you diagnose the problem. Set this in Site administration > Development > Debugging - see Depuración for more.

Incomplete page displayed when I click "Turn Editing On"

When you see an incomplete page, it is normally a sign that an error occurred. To find out more, turn on Depuración, and you should see an error message which may help you to diagnose the problem.

This is usually as a result of an incompatible contributed module or block that you have installed. Follow these steps:

  1. Follow the module removal instructions in Instalar plugins.
  2. Re-visit your course page and try clicking on the "Turn Editing On" button again.

If you find an incompatible module or block, please report the problem to the person named as the maintainer in the Modules and Plugins database.

Receive error message "a required parameter (id) was missing" when uploading a file or

This message sometimes is generated when attempting to upload a file larger than the upload limit. This can also be caused by user's having more than one login to the same site open in the same browser in different windows or tabs.

User gets 'an invalid session key' error

A number of things may caused the invalid session key error. The most common is if the person tries to login into the same Moodle site in more than one tab or window in the same browser. That will not work. The fix is to close all those tabs and windows and close and restart the browser. This is almost always a transient issue. The fix is to close and restart the browser, and log back into Moodle.

If you send someone a URL to something in Moodle, like a course activity or particular page, is may be that the session id key is tacked onto the end of the URL. Simply delete that parameter from the URL.

Why is a page blank, or half missing?

A blank page, or a page that seems to have half missing, is normally a sign that an error occurred. If (as is recommended on production systems) you have display of error messages turned off, it can be very hard to understand what is going on.

The solution is to active la depuración temporarily. Then, when you go back to the problem page, you should see the error message. Once you had finished solving the problem, remember to turn debugging off again.

How can I fix just one bug, without upgrading my whole site?

Suppose:

  • You are experiencing a particular bug.
  • You have searched in the tracker, and found that your problem is MDL-abc, and that it has been fixed in the latest version.
  • For some reason, you cannot upgrade your whole site, even though the latest version probably has security fixes.

Then, how can you get the fix for just this one bug, without upgrading your whole site? Well, if you are prepared to manually patch the code, you can probably get this information from the tracker. Please see How to fix just one bug without upgrading guide.

Vea también

¿Más preguntas?

Por favos hágalas en el foro en idioma inglés General help forum en moodle.org.