Drupal6 installs, but can't connect with database
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
drupal6 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: drupal6
I installed the packages drupal6 (6.16-1) and dh-make-drupal (0.5-1) in my Lucid and the install process run without errors:
-------
Selecionando pacote previamente não selecionado dh-make-drupal.
(Lendo banco de dados ... 295416 arquivos e diretórios atualmente instalados).
Desempacotando dh-make-drupal (de .../dh-
Selecionando pacote previamente não selecionado drupal6.
Desempacotando drupal6 (de .../drupal6_
Processando gatilhos para man-db ...
Configurando dh-make-drupal (0.5-1) ...
Configurando drupal6 (6.16-1) ...
dbconfig-common: writing config to /etc/dbconfig-
Creating config file /etc/dbconfig-
Creating config file /etc/drupal/
creating postgres user drupal6: success.
verifying creation of user: success.
creating database drupal6: success.
verifying database drupal6 exists: success.
dbconfig-common: flushing administrative password
www-data www-data 750 /var/lib/
Pressione Enter para continuar.
-------
After that I needed to change /etc/apache2/
-------
Alias /drupal/ "/usr/share/
<Directory "/usr/share/
Options Indexes MultiViews FollowSymLinks
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
-------
Then I tried to run the install.php script, but I receive this error:
-------
Choose language
The following error must be resolved before you can continue the installation process:
Failed to connect to your PostgreSQL database server. PostgreSQL reports the following message: Connection failed. See log file for failure reason.
* Are you sure you have the correct username and password?
* Are you sure that you have typed the correct database hostname?
* Are you sure that the database server is running?
* Are you sure you typed the correct database name?
For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.
-------
I checked the dbconfig.php file but it looks correct (the user name and password are only for test purposes):
-------
# cat /usr/share/
<?php
##
## database access settings in php format
## automatically generated from /etc/dbconfig-
## by /usr/sbin/
## Thu, 21 Oct 2010 11:29:09 -0200
##
## by default this file is managed via ucf, so you shouldn't have to
## worry about manual changes being silently discarded. *however*,
## you'll probably also want to edit the configuration file mentioned
## above too.
##
$dbuser='drupal6';
$dbpass=
$basepath='';
$dbname='drupal6';
$dbserver='';
$dbport='';
$dbtype='pgsql';
-------
(filling dbserver and dbport values does not solve the problem)
Both my Apache and Postgres installations are default. I've installed a PHP software called LimeSurvey (manually, it does not have a package) and it worked perfectly with Postgres.
There is no significant error message both in Apache's error.log and Postgres postgresql-
I think there is something wrong with Drupal package, it should work right out of the box.
I purged the packages, removed the database and the user and tried again with the same result.