IMPORTANT: Per accedir als fitxer de subversion: http://acacha.org/svn (sense password). Poc a poc s'aniran migrant els enllaços. Encara però funciona el subversion de la farga però no se sap fins quan... (usuari: prova i la paraula de pas 123456)

Instal·lació

Versió 6

Instal·lació manual

Ubuntu repositoris

$ sudo apt-get install drupal6

Els fitxers instal·lats són:

$ sudo dpkg -L drupal6 | more
/.
/etc
/etc/drupal
/etc/drupal/6
/etc/drupal/6/sites
/etc/drupal/6/sites/default
/etc/drupal/6/sites/default/settings.php
/etc/drupal/6/profiles
/etc/drupal/6/profiles/default
/etc/drupal/6/profiles/default/default.profile
/etc/drupal/6/apache.conf
/etc/drupal/6/htaccess
/etc/cron.d
/etc/cron.d/drupal6
/var
/var/lib
/var/lib/drupal6
/var/lib/drupal6/files
/var/lib/drupal6/backups
/usr
/usr/share
/usr/share/doc
/usr/share/doc/drupal6
....
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/drupal6
/usr/share/drupal6
/usr/share/drupal6/cron.php
...
/etc/drupal/6/sites/default/files
/usr/share/drupal6/profiles
/usr/share/drupal6/sites
/usr/share/drupal6/.htaccess

Per instal·lar la configuració d'Apache:

$ sudo cp /etc/drupal/6/apache2.conf /etc/apache2/conf.d/drupal.conf

On:

$ cat /etc/apache2/conf.d/drupal.conf
Alias /drupal6 /usr/share/drupal6 

<Directory /usr/share/drupal6/>
	Options +FollowSymLinks
	AllowOverride All
	order allow,deny
	allow from all
</Directory>

Si cal reconfigurar podeu executar en qualsevol moment:

$ sudo dpkg-reconfigure drupal6 
dbconfig-common: writing config to /etc/dbconfig-common/drupal6.conf
Replacing config file /etc/drupal/6/sites/default/dbconfig.php with new version
granting access to database drupal6 for [email protected]: success.
verifying access for [email protected]: success.
creating database drupal6: success.
verifying database drupal6 exists: success.
dbconfig-common: flushing administrative password
www-data www-data 750 /var/lib/drupal6/files

Ara cal reiniciar Apache:

$ sudo /etc/init.d/apache2 restart

I anar a la URL:

http://IP_DEL_SERVIDOR/drupal6/install.php


A quantal: 6.26-1.1ubuntu1: all en canvi a 12.04:

$ apt-cache show drupal6
Package: drupal6
Priority: extra
Section: universe/web
Installed-Size: 4976
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Luigi Gangitano <[email protected]>
Architecture: all
Version: 6.22-1ubuntu1
Depends: debconf (>= 0.5) | debconf-2.0, apache2 | httpd, php5, php5-mysql | php5-pgsql, php5-gd, default-mta | mail-transport-agent, wwwconfig-common (>= 0.0.37), mysql-client | virtual-mysql-client | postgresql-client, dbconfig-common, curl
Recommends: mysql-server | postgresql
Filename: pool/universe/d/drupal6/drupal6_6.22-1ubuntu1_all.deb
Size: 1079618
MD5sum: 4d8d9f2ab05c21d183ee28438b839b74
SHA1: 94ea339fd1681cf845e899cdd4d71f7c9772c384
SHA256: 982ce864577f9def5a85338ec2c893e2b8e51be237dac3b5b524b304f81a0a93
Description-en: fully-featured content management framework
 Drupal is a dynamic web site platform which allows an individual or
 community of users to publish, manage and organize a variety of
 content, Drupal integrates many popular features of content
 management systems, weblogs, collaborative tools and discussion-based
 community software into one easy-to-use package.
 .
 This package contains version 6 of Drupal.
Homepage: http://www.drupal.org/
 Description-md5: 41b6c7db9f1a96b30fb4bd135bb1fac2
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
 

Recursos:

Guifi

Recursos:

Configuració

TODO

Altres

Drush

https://gitorious.org/~pataquets/guifi/pataquets-drupal-guifi/blobs/master/guifi-dev.make

Recursos:

Troubleshooting. Resol·lució de problemes

Pàgina en blanc

Consulteu:

$ sudo tail -f /var/log/apache2/error.log
...
[Sat Mar 16 18:53:56 2013] [error] [client 185.13.76.51] PHP Warning:  Table 'drupal6.access' doesn't exist\nquery: SELECT 1 FROM access WHERE type = 'host' AND LOWER('185.13.76.51') LIKE LOWER(mask) AND status = 0 LIMIT 0, 1 in /usr/share /drupal6/includes/database.mysql.inc on line 13 5
[Sat Mar 16 18:53:56 2013] [error] [client 185.13.76.51] PHP Warning:  Table 'drupal6.users' doesn't exist\nquery: SELECT u.*, s.* FROM users u INNER JOIN sessions s ON u.uid = s.uid WHERE s.sid = 'p36o6kmtpjndrp0ou6hh47nva3' in /usr/share/drupal6 /includes/database.mysql.inc on line 135
[Sat Mar 16 18:53:56 2013] [error] [client 185.13.76.51] PHP Warning:  Table 'drupal6.cache' doesn't exist\nquery: SELECT data, created, headers, expire, serialized FROM cache WHERE cid = 'variables' in /usr/share/drupal6/includes/database.mysql.inc on line 135
[Sat Mar 16 18:53:56 2013] [error] [client 185.13.76.51] PHP Warning:  Table 'drupal6.variable' doesn't exist\nquery: SELECT * FROM variable in /usr/share/drupal6/includes/database.mysql.inc on line 135
[Sat Mar 16 18:53:56 2013] [error] [client 185.13.76.51] PHP Notice:  Undefined variable: variables in /usr/share/drupal6/includes/bootstrap.inc on line 557
[Sat Mar 16 18:53:56 2013] [error] [client 185.13.76.51] PHP Warning:  Table 'drupal6.cache' doesn't exist\nquery: UPDATE cache SET data = '', created = 1363456436, expire = 0, headers = '', serialized = 0 WHERE cid = 'variables'  in /usr/share/drupal6/includes/database.mysql.inc on line 135
[Sat Mar 16 18:53:56 2013] [error] [client 185.13.76.51] PHP Notice:  Undefined variable: variables in /usr/share/drupal6/includes/bootstrap.inc on line 564
[Sat Mar 16 18:53:56 2013] [error] [client 185.13.76.51] PHP Warning:  Table 'drupal6.system' doesn't exist\nquery: SELECT name, filename, throttle FROM system WHERE type = 'module' AND status = 1 AND bootstrap = 1 ORDER BY weight ASC, filename ASC in /usr/share/drupal6/includes/database.mysql.inc on line 135

En el meu cas no s'havia instal·lat la base de dades.


Vegeu també

Enllaços externs