Last active
January 14, 2020 14:39
-
-
Save jofese/affca16a5a06f7fe287ba4abd5dfb5aa to your computer and use it in GitHub Desktop.
pasos para la solucion de coneccion con la base de datos en roundcube webmail.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a) Solucion al error :RoundCube: DATABASE ERROR: CONNECTION FAILED! | |
Este error surge luego de instalar VestaCP y acceder a webmail. | |
La Solucion corresponde: | |
- ir a /var/lib/roundcube/debian-db.php | |
- ahi veremos el pass de usuario roundcube, copiamos ese pass. | |
- nos vamos a mysql: | |
1. ingresamos con usuario root: mysql -u root | |
2. creamos base de datos "roundcube" | |
3. ingresamos en la base de datos "roundcube" | |
4. creamos el usuario, asignamos la contraseña y damos privilegios GRANT | |
CREATE USER 'roundcube'@'localhost'; | |
SET PASSWORD FOR roundcube@localhost = PASSWORD('<password>'); | |
GRANT ALL PRIVILEGES ON roundcube.* TO roundcube@localhost; | |
FLUSH PRIVILEGES; | |
5. salimos de mysql | |
- en la linea de comandos del vps escribimos : | |
sudo mysql roundcube < /usr/share/dbconfig-common/data/roundcube/install/mysql | |
- terminado esto vamos al archivo /var/lib/roundcube/config.inc.php | |
buscamos la linea que tenga: $rcmail_config['db_dsnw'] = | |
y verificamos que tenga la contraseña del usuario roundcube correcta, sino cambiamos. | |
- Con esto podemos ingresar al webmail de la web sin problemas. | |
b) Solucion al error: No se a podido cambiar la contraseña de un usuario. | |
Después de un montón de depuración, finalmente descubrí lo que está pasando. | |
Alguien que escribió un '' controlador Rondcube de cambio de contraseña para VestaCP '' debería convertir una función a clase en el archivo /usr/share/roundcube/plugins/password/drivers/vesta.php | |
Plugin 'passwod' está esperando una clase en ese archivo, pero sólo hay una función. | |
De todos modos, aquí hay una solución para arreglar esto. | |
1. Open file /usr/share/roundcube/plugins/password/drivers/vesta.php | |
2. Find a line that contain: function password_save($curpass, $passwd) | |
3. Delete that line | |
4. On the same place, write: class rcube_vesta_password { | |
function save($curpass, $passwd) | |
5. At the end of file write: } | |
6. Save the file. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This save me, thanks