Skip to content

Commit

Permalink
📝 (hestiacp): Add documentation for resolving webmail internal server…
Browse files Browse the repository at this point in the history
… error

The documentation provides a solution to the common issue of encountering an internal server error when accessing webmail after migrating a user with multiple domains. It outlines the necessary permission changes to the Roundcube configuration files to resolve the problem, ensuring secure access to webmail post-migration. The reference to the HestiaCP forum thread offers additional context and validation for the solution.
  • Loading branch information
mabdullahabid committed Jun 2, 2024
1 parent ca9f7d4 commit 62a1f62
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions hestiacp/webmail-internal-server-error-after-migration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Webmail Internal Server Error after migration

After backing up and restoring a user with multiple domains to a new host, and configuring the DNS to point to the correct IP address, the webmail interface displayed an internal server error. After going through HestiaCP forums, I found that this is a permissions issue.

Here's the fix:

Change permissions to php files in /etc/roundcube/

find /etc/roundcube/ -type f -iname "*php" -exec chmod 644 {} \;

Once done, try to access webmail.

Edit: As there are passwords inside config files, this should be a better approach to fix the issue:

chown -R hestiamail:hestiamail /etc/roundcube/
find /etc/roundcube/ -type f -iname "*php" -exec chmod 640 {} \;

You should be able to access webmail after.

Reference

https://forum.hestiacp.com/t/webmail-internal-server-error/12073/7

0 comments on commit 62a1f62

Please sign in to comment.