# Trouble Setting Up Hestia CP

**URL:** <https://forum.hestiacp.com/t/trouble-setting-up-hestia-cp/14345>\
**Category:** Mail\
**Created:** [May 14, 2024, 3:43pm UTC](https://forum.hestiacp.com/t/trouble-setting-up-hestia-cp/14345 "2024-05-14T15:43:26Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [May 15, 2024, 9:03am UTC](https://forum.hestiacp.com/t/trouble-setting-up-hestia-cp/14345/21 "2024-05-15T09:03:15Z")

</div>

All ok… and this log?

```t
tail -n20 /var/log/apache2/domains/webmail.asmt.edu.np.log

```

---

<div class="post-metadata">

**Author:** ![sedasf](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/s/76d3ee/32.png) [@sedasf](https://forum.hestiacp.com/u/sedasf)\
**Post date:** [May 15, 2024, 9:03am UTC](https://forum.hestiacp.com/t/trouble-setting-up-hestia-cp/14345/22 "2024-05-15T09:03:52Z")

</div>

```auto
root@src:~# tail -n20 /var/log/apache2/domains/webmail.asmt.edu.np.log
tail: cannot open '/var/log/apache2/domains/webmail.asmt.edu.np.log' for reading: No such file or directory

```

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [May 15, 2024, 9:05am UTC](https://forum.hestiacp.com/t/trouble-setting-up-hestia-cp/14345/23 "2024-05-15T09:05:21Z")

</div>

I would need to access your server and see what’s going on… I’ll send you a private message.

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [May 15, 2024, 10:27am UTC](https://forum.hestiacp.com/t/trouble-setting-up-hestia-cp/14345/24 "2024-05-15T10:27:34Z")

</div>

The issue is solved.

Just for the records.

Checking `/var/log/roundcube/error.log` I could see this error message:

```auto
[15-May-2024 15:45:24 +0545]: <ubhl6ep8> DB Error: SQLSTATE[HY000] [1045] Access denied for user 'roundcube'@'localhost' (using password: YES) in /var/lib/roundcube/program/lib/Roundcube/rcube_db.php on line 201 (HEAD /)

```

So the user roundcube can’t access to the DB… strange.

I extracted the password used by roundcube:

```t
# grep db_dsnw /etc/roundcube/config.inc.php 
$config["db_dsnw"] = "mysql://roundcube:S3cretP4ss@localhost/roundcube";

```

And tried to login manually:

```t
# mysql -uroundcube -p
Enter password: S3cretP4ss
ERROR 1045 (28000): Access denied for user 'roundcube'@'localhost' (using password: YES)

```

So, the pass is not the right one so I changed it:

```t
mysql -uroot -e 'ALTER USER 'roundcube'@'localhost' IDENTIFIED BY "S3cretP4ss";'
mysql -uroot -e 'FLUSH PRIVILEGES;'

```

And now roundcube user can login and webmail is working fine.

Due the webmail wasn’t working (perms bug) @sed executed the script `/usr/local/hestia/install/upgrade/manual/migrate_roundcube.sh` and this script modified the roundcube password in DB but the script didn’t modify the password in `/etc/roundcube/config.inc.php` and that was the reason for the error.

That’s all 😉

---

<div class="post-metadata">

**Author:** ![system](https://forum.hestiacp.com/uploads/default/original/1X/d9a5b68bf50ced83e880b56452e592b204761b19.png) [@system](https://forum.hestiacp.com/u/system)\
**Post date:** [June 14, 2024, 10:28am UTC](https://forum.hestiacp.com/t/trouble-setting-up-hestia-cp/14345/25 "2024-06-14T10:28:25Z")

</div>

Closed on June 14, 2024, 10:28am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

[Previous page](https://forum.hestiacp.com/t/trouble-setting-up-hestia-cp/14345.md?page=1)
