Actualizar Drupal

Los siguientes pasos para la actualización de Drupal están en el archivo UPGRADE.txt que nos descargamos con la actualización, y que traduzco y resumo para una posterior lectura más rápida.

1. Hacer copias de seguridad de la base de datos y la carpeta raíz del sitio. Sobre todo la carpeta /sites y los archivos que hemos subido al servidor. Si tienen modificaciones, también .htaccess y robors.txt. Y por lo que entiendo, los archivos y settings.php (configuración del servidor, supongo) y default.settings.php (para una posible restauración) .


2. Entrar en la tienda como el primer usuario que se creó (el de ID=1).


3. Poner el sitio en modo Off-line. (http://www.tusitio.com/?q=admin/settings/site-maintenance)


4. Cambiar el tema a Garland o Bluemarine (un core-theme), si es que lo habíamos cambiado antes.

5. Desactivar todos los módulos custom y contribute

6. Eliminar todos los viejos archivos de la carpeta de instalación de Drupal.
Remove all old files and directories from the Drupal installation directory.


7. Subir los nuevos archivos y directorios dentro de la carpeta de instalación de Drupal.
Unpack the new files and directories into the Drupal installation directory.


8. Subir nuestras copias de seguridad del paso 1.
Copy your backed up «files» and «sites» directories to the Drupal
installation directory. If other system files such as .htaccess or
robots.txt were customized, re-create the modifications in the new
versions of the files using the backups taken in step #1.

9. Verificar el nuevo archivo de configuración para hacer que tenga la información correcta.
Verify the new configuration file to make sure it has correct information.

10. Visitar http://www.tusitio.com/update.php

Note: if you are unable to access update.php do the following:

– Open your settings.php with a text editor.
– There is a line that says $update_free_access = FALSE;
Change it to $update_free_access = TRUE;
– Once update.php is done, you must change the settings.php file
back to its original form with $update_free_access = FALSE;

11. Comprobar la versión de los módulos custom y contributed. Algunos módulos de versiones previas no serán compatibles, y se requerirán versiones actualizadas.

Ensure that the versions of all custom and contributed modules match the
new Drupal version to which you have updated. For a major update, such as
from 5.x to 6.x, modules from previous versions will not be compatible
and updated versions will be required.

– For contributed modules, check http://drupal.org/project/modules
for the version of a module matching your version of Drupal.

– For custom modules, review http://drupal.org/update/modules to
ensure that a custom module is compatible with the current version.

12. Activar de nuevo los módulos y visitar http://www.tusitio.com/update.php
Re-enable custom and contributed modules and re-run update.php
to update custom and contributed database tables.

13. Ya se puede restablecer el tema si lo tuviste que cambia en el paso 4
Return the site to its original theme (if you switched to a core
theme like Garland or Bluemarine in step #4). If your site uses a
custom or contributed theme, make sure it is compatible with your
version of Drupal.

– For contributed themes, check http://drupal.org/project/themes
for the version of a theme matching your version of Drupal.

– For custom themes, review http://drupal.org/update/theme to ensure
that a custom theme is compatible with the current version.


14. Finalmente, poner de nuevo el sitio en modo «Online» como en el paso 3 (http://www.tusitio.com/?q=admin/settings/site-maintenance).
Finally, return your site to «Online» mode so your visitors may resume
browsing. As in step #3, this option is available in your administration
screens at http://www.example.com/?q=admin/settings/site-maintenance
(replace www.example.com with your installation’s domain name and path).

(For more information on upgrading visit
the Drupal handbook at http://drupal.org/upgrade)

Write a Reply or Comment

Your email address will not be published.