Author Topic: not a clue how to do it [question]  (Read 4769 times)

Offline pqangel

  • Newbie
  • *
  • Posts: 5
not a clue how to do it [question]
« on: December 12, 2008, 03:55:29 AM »
hi, i want to install roundcube as my webmail interface

i'm running ubuntu 8.10 on a gnome desktop

so far i have the following installed via apt-get the following:

php5
mysql server and client
apache2
roundcube

apache server and php are up and running mysql is also running but i have no way to test it (although i logged in as root and created a table called roundcubemail and gave it full privileges)

now the thing is i have located on /var/www all the files that were located on /usr/share/roundcube

and when i try to access index.php it says it can not connect to de DB so i opened the the main.inc.php.dist and thats where i started loosing control ;D:(:D

so i would like if someone would help me out in here, i'm a noob on linux so please be patient :)

my options so far for the IMAP and SMTP servers where postfix for SMTP and cyrus-IMAP for imap but i have being hearing of courier so i started doubting on what to use :\

i'm configuring all of this on a remote server with ssh so everything has to be done on the command line although i have access to an SFTP connection

thank you for your help

greets

Offline roberrt

  • Newbie
  • *
  • Posts: 3
not a clue how to do it [question]
« Reply #1 on: December 12, 2008, 04:19:19 AM »
You need to rename main.inc.php.dist to main.inc.php and db.inc.php.dist to db.inc.php and make shure that the database settings in db.inc.php are correct, something like:
$rcmail_config['db_dsnw'] = 'mysql://mysql_username:mysql_password@localhost/database_name';

Offline pqangel

  • Newbie
  • *
  • Posts: 5
not a clue how to do it [question]
« Reply #2 on: December 12, 2008, 05:09:56 AM »
i did as you said, the files were not on /var/www/webmail/ (from now on /)  only the main.inc.php.dist was there i renamed it to main.inc.php

under /config there were two files main.inc.php and db.inc.php (both were links to another location) i edited the file db.inc.php modifying a line that said something like this:

$rcmail_config['db_dsnw'] = "$dbtype://$dbusername:$dbpassword@$dbremotehost:$dbport:$dbname";

for what you told me to

i also copied db.inc.php from /config to /

in every case i got a blank page

i also downloaded the .tar.gz package and located it under /roundcubemail so i can use the install script it has (maybe things will get easier this way) but i haven't done so yet as i was afraid it would create conflicts with the version installed from apt-get

also i still don't know what to do on the IMAP and SMTP server side, what would you suggest??


thanks a lot

Offline roberrt

  • Newbie
  • *
  • Posts: 3
not a clue how to do it [question]
« Reply #3 on: December 12, 2008, 08:48:59 AM »
Sorry, I should have read your message with more care!
Because you have installed an Ubuntu package I think you have to execute
Code: [Select]
sudo dpkg-reconfigure roundcube for configuring.
Also you better reinstall roundcube first with
Code: [Select]
sudo apt-get --reinstall install roundcube
« Last Edit: December 12, 2008, 08:53:46 AM by roberrt »

Offline pqangel

  • Newbie
  • *
  • Posts: 5
not a clue how to do it [question]
« Reply #4 on: December 16, 2008, 08:58:39 PM »
sorry for the delay but /me has been really busy with work lately :\

i tried what you sugested but there was no luck :(

although now i'm dealing with a bigger problem when i try apt-get install courier-imap the following error appears:

Code: [Select]
root@takatakaproducciones:/etc/postfix/ssl# apt-get install courier-imap

 Leyendo lista de paquetes... Hecho

 Creando árbol de dependencias

 Leyendo la información de estado... Hecho

 courier-imap ya está en su versión más reciente.

 0 actualizados, 0 se instalarán, 0 para eliminar y 0 no actualizados.

 2 no instalados del todo o eliminados.

 Se utilizarán 0B de espacio de disco adicional después de desempaquetar.

 Configurando courier-imap (4.4.0-1ubuntu2) ...

 * ERR: config file missing

 invoke-rc.d: initscript courier-imap, action "start" failed.

 dpkg: error al procesar courier-imap (--configure):

 el subproceso post-installation script devolvió el código de salida de error 1

 dpkg: problemas de dependencias impiden la configuración de courier-imap-ssl:

 courier-imap-ssl depende de courier-imap (>= 1.3.7-3); sin embargo:

 El paquete `courier-imap' no está configurado todavía.

 dpkg: error al procesar courier-imap-ssl (--configure):

 problemas de dependencias - se deja sin configurar

 No se ha escrito ningún informe de Apport porque el mensaje de error indica que

 es un error proveniente de un fallo anterior.

 Se encontraron errores al procesar:

 courier-imap

 courier-imap-ssl

 E: Sub-process /usr/bin/dpkg returned an error code (1)



i have no idea on how to solve it. any ideas?

really thank you :D

Offline pqangel

  • Newbie
  • *
  • Posts: 5
not a clue how to do it [question]
« Reply #5 on: December 17, 2008, 10:06:34 PM »
problem solved
i extracted the file i needed and reinstalled courier-imap form a deb package