- Install php_pgsql (the required files are not installed after selection of the database
- Manually create a database user and a database:
createuser -D -A -P drupal5Using the automated setup scripts creates a database that is not owned by the drupal user. Later, the installation process will not be able to create the required tables. It seems that dbconfig-common has its trouble handling postgresql databases.
createdb -O drupal5 drupal5
- Install drupal using
apt-get install drupal5Choose to set up the database manually. The dialog is likely to frighten you away, but you have already done everything necessary.
- Change the ownership of the data files. The script changes /var/lib/drupal5 to www-data (with is what Apache needs to read files). However, the files are in /usr/lib/drupal5. As they are still owned by root -> Error messages.
chown -R www-data:www-data /usr/lib/drupal5does the trick.
- In /etc/postgresql/8.x/main/pg_hba.conf add a line:
host drupal5 drupal5 127.0.0.1 255.255.255.255 passwordallows drupal to access the local database.
- Restart Apache and Postgresql
- In a browser query the server:
http://server/drupal5You should see the Drupal logon screen.
- Create an administrative user
There is a helpful link in the Ubuntu forum. It helped me understand what was going on durign the installation process.