jueves, 24 de enero de 2013

Drupal 7 - Solucion - /admin/content not found

Solucionado despues de - Clean URLS

Drupal 7 - Solucion - Clean URL Test Failed

Main Apache configuration file:

In windows : httpd.conf

In Ubuntu : apache2.conf

Apache path : /etc/apache2

 - contains httpd.conf, apache2.conf

Apache service path : /etc/init.d/apache2root path : /var/www

1. Create a file phpinfo.php with:

<?php phpinfo();?>

http://localhost/phpinfo.php

'Loaded Modules', should contain 'mod_rewrite'.

If no, enable it in your apache configurationv : $ sudo a2enmod rewrite

2. Add these lines: /etc/apache2/httpd.conf

<Directory "/var/www/Drupal_Directory">
AllowOverride All
</Directory>

lunes, 14 de enero de 2013

Drupal 7 - Cambiar de servidor y cambiar de nombre de BD

1. Copiar todos los archivos

2. Crear la nueva BD e importar el BD.sql.zip

3. Cambiar /sites/default/settings.php con los datos nuevos

$databases = array (
  'default' =>
  array (
    'default' =>
    array (
      'database' => 'musohead',
      'username' => 'root',
      'password' => '',
      'host' => 'localhost',
      'port' => '',
      'driver' => 'mysql',
      'prefix' => '',
    ),
  ),
);

Drupal 7 - Instalar en ubuntu

1. Iniciar bd para drupal

mysql -u root -p

CREATE DATABASE bd_drupal;

exit

2. Reiniciar servidor

apache sudo service apache2 restart

3. Permisos al archivo settings.php

~/web/drupal-7.16/sites$ chmod -R 777 default/

~/web/drupal-7.16/sites/default$ cp default.settings.php settings.php
~/web/drupal-7.16/sites/default$ chmod -R 777 settings.php


4. Instalar drupal

Drupal 7 - Login de usuario

Caso: Mantenimiento y luego cierre de sesion

Entrar a

http://WEB/?q=user/login

o

http://WEB/user/login

Drupal 7 - Traducir toda la interfaz a español

Install, Enable Module "Localization update"

http://drupal.org/project/l10n_update

Drupal 7 - Cambiar tema de drupal desde mysql

UPDATE system SET status=1 WHERE name = 'garland';

UPDATE variable SET value='s:7:"garland"' WHERE name = 'theme_default';

TRUNCATE cache;

UPDATE users SET theme='garland' WHERE uid = '1';

Otros casos:

Descomentar en settings.php

# $conf['theme_default'] = 'garland';

Drupal 7 - Change password

For this problem

Sorry, there have been more than 5 failed login attempts for this account. It is temporarily blocked. Try again later or request a new password."

on
/path_to_drupal_files

Generate encoded password
php ./scripts/password-hash.sh new_password

UPDATE users SET pass='YOUR_PASSWORD_HASH' where uid=1;

Remove flood content
truncate flood;

Drupal Community - GSOC Organization