Webmail not working (Oops... something went wrong!)

my webmail.domain.com dont work. gives me the below error

Help please

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

still facing the same error… :frowning_face: :frowning_face:

Are you using roundcube or snappymail?

Show the output of these commands (replace YourDomain.tld by your actual domain):

ls -la /etc/roundcube/
tail -n20 /var/log/nginx/domains/webmail.YourDomain.tld.error.log

root@hcp:~# ls -la /etc/roundcube/
total 100
drwxr-x–x 3 hestiamail www-data 4096 Jan 25 22:53 .
drwxr-xr-x 129 root root 12288 Feb 7 20:49 …
-rw-r----- 1 hestiamail www-data 6082 Sep 9 2022 config.inc.php
-rw-r----- 1 hestiamail www-data 3841 Aug 5 2022 config.old.php
-rw-r----- 1 hestiamail www-data 64583 Nov 5 08:58 defaults.inc.php
-rw-r----- 1 hestiamail www-data 2812 Sep 9 2022 mimetypes.php
drwxr-x–x 5 hestiamail www-data 4096 Apr 1 2022 plugins
root@hcp:~# tail -n20 /var/log/nginx/domains/webmail.nazirahomar.com
tail: cannot open ‘/var/log/nginx/domains/webmail.nazirahomar.com’ for reading: No such file or directory

that’s what it give me.

That is not the file I said to check, you missed the .error.log part.

tail -n20 /var/log/nginx/domains/webmail.nazirahomar.com.error.log

ubuntu@hcp:~$ sudo -i
root@hcp:~# ls -la /etc/roundcube/
total 100
drwxr-x–x 3 hestiamail www-data 4096 Jan 25 22:53 .
drwxr-xr-x 129 root root 12288 Feb 7 20:49 …
-rw-r----- 1 hestiamail www-data 6082 Sep 9 2022 config.inc.php
-rw-r----- 1 hestiamail www-data 3841 Aug 5 2022 config.old.php
-rw-r----- 1 hestiamail www-data 64583 Nov 5 08:58 defaults.inc.php
-rw-r----- 1 hestiamail www-data 2812 Sep 9 2022 mimetypes.php
drwxr-x–x 5 hestiamail www-data 4096 Apr 1 2022 plugins
root@hcp:~# tail -n20 /var/log/nginx/domains/webmail.nazirahomar.com.error.log
root@hcp:~# tail -n20 /var/log/nginx/domains/webmail.nazirahomar.com.error.log
root@hcp:~#

tail -n20 /var/log/nginx/domains/webmail.nazirahomar.com.log
tail -n20 /var/log/nginx/error.log
tail -n20 /var/log/apache2/error.log

ubuntu@hcp:~$ sudo -i

root@hcp:~# tail -n20 /var/log/nginx/domains/webmail.nazirahomar.com.log

102.36.7.170 - - [08/Feb/2024:05:39:54 +0000] “GET /favicon.ico HTTP/2.0” 404 1358 “https://webmail.nazirahomar.com/” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0”

102.36.7.170 - - [08/Feb/2024:05:39:56 +0000] “GET / HTTP/2.0” 500 426 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0”

102.36.7.170 - - [08/Feb/2024:05:39:57 +0000] “GET /favicon.ico HTTP/2.0” 404 1358 “https://webmail.nazirahomar.com/” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0”

102.36.7.170 - - [08/Feb/2024:05:43:48 +0000] “GET / HTTP/2.0” 500 426 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0”

102.36.7.170 - - [08/Feb/2024:05:43:48 +0000] “GET /favicon.ico HTTP/2.0” 404 1358 “https://webmail.nazirahomar.com/” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0”

5.164.29.116 - - [08/Feb/2024:05:56:34 +0000] “GET / HTTP/1.1” 301 162 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 (scanner.ducks.party)”

5.164.29.116 - - [08/Feb/2024:06:03:21 +0000] “GET / HTTP/1.1” 301 162 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 (scanner.ducks.party)”

167.99.222.91 - - [08/Feb/2024:06:59:19 +0000] “GET / HTTP/1.1” 301 162 “-” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”

167.99.222.91 - - [08/Feb/2024:06:59:19 +0000] “GET / HTTP/1.1” 500 426 “-” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”

41.150.227.69 - - [08/Feb/2024:07:08:17 +0000] “GET / HTTP/2.0” 500 426 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36”

116.203.78.202 - - [08/Feb/2024:07:12:21 +0000] “HEAD / HTTP/1.1” 301 0 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15”

116.203.78.202 - - [08/Feb/2024:07:12:21 +0000] “HEAD / HTTP/1.1” 500 0 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15”

116.203.78.202 - - [08/Feb/2024:07:12:21 +0000] “GET / HTTP/1.1” 500 426 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15”

116.203.78.202 - - [08/Feb/2024:07:12:21 +0000] “GET / HTTP/1.1” 500 634 “-” “Discourse Forum Onebox v3.3.0.beta1-dev”

116.203.78.202 - - [08/Feb/2024:07:12:22 +0000] “GET / HTTP/1.1” 500 426 “-” “Discourse Forum Onebox v3.3.0.beta1-dev”

88.6.127.124 - - [08/Feb/2024:07:12:30 +0000] “GET / HTTP/1.1” 301 162 “-” “Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0”

88.6.127.124 - - [08/Feb/2024:07:12:30 +0000] “GET / HTTP/2.0” 500 426 “-” “Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0”

88.6.127.124 - - [08/Feb/2024:07:12:31 +0000] “GET /favicon.ico HTTP/2.0” 404 1358 “https://webmail.nazirahomar.com/” “Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0”

41.150.227.69 - - [08/Feb/2024:07:22:52 +0000] “GET / HTTP/2.0” 500 426 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36”

41.150.227.69 - - [08/Feb/2024:07:22:54 +0000] “GET / HTTP/2.0” 500 426 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36”

root@hcp:~# tail -n20 /var/log/nginx/error.log

2024/02/07 20:45:03 [notice] 1020#1020: signal 15 (SIGTERM) received from 1, exiting

2024/02/07 20:45:03 [notice] 1024#1024: signal 15 (SIGTERM) received from 1, exiting

2024/02/07 20:45:03 [notice] 1020#1020: signal 14 (SIGALRM) received

2024/02/07 20:45:03 [notice] 1020#1020: signal 17 (SIGCHLD) received from 1022

2024/02/07 20:45:03 [notice] 1020#1020: worker process 1022 exited with code 0

2024/02/07 20:45:03 [notice] 1020#1020: signal 29 (SIGIO) received

2024/02/07 20:45:03 [notice] 1020#1020: signal 17 (SIGCHLD) received from 1023

2024/02/07 20:45:03 [notice] 1020#1020: worker process 1023 exited with code 0

2024/02/07 20:45:03 [notice] 1020#1020: worker process 1024 exited with code 0

2024/02/07 20:45:03 [notice] 1020#1020: signal 17 (SIGCHLD) received from 1024

2024/02/07 20:45:03 [notice] 1020#1020: signal 17 (SIGCHLD) received from 1021

2024/02/07 20:45:03 [notice] 1020#1020: worker process 1021 exited with code 0

2024/02/07 20:45:03 [notice] 1020#1020: exit

2024/02/07 20:47:17 [crit] 71451#71451: opendir() “/var/cache/nginx/proxy_temp” failed (13: Permission denied)

2024/02/07 20:49:49 [crit] 15242#15242: opendir() “/var/cache/nginx/proxy_temp” failed (13: Permission denied)

2024/02/07 21:02:02 [notice] 102042#102042: using inherited sockets from “9;10;11;”

2024/02/07 21:03:02 [crit] 102054#102054: opendir() “/var/cache/nginx/proxy_temp” failed (13: Permission denied)

2024/02/08 05:14:02 [notice] 876273#876273: using inherited sockets from “9;10;11;”

2024/02/08 05:15:02 [crit] 876287#876287: opendir() “/var/cache/nginx/proxy_temp” failed (13: Permission denied)

2024/02/08 05:41:27 [crit] 1311#1311: opendir() “/var/cache/nginx/proxy_temp” failed (13: Permission denied)

root@hcp:~# tail -n20 /var/log/apache2/error.log

[Thu Feb 08 07:11:47.435779 2024] [php:error] [pid 116852] [client 10.0.0.55:53774] script ‘/var/www/html/xmlrpc.php’ not found or unable to stat

[Thu Feb 08 07:11:48.363276 2024] [php:error] [pid 116848] [client 10.0.0.55:53784] script ‘/var/www/html/xmlrpc.php’ not found or unable to stat

[Thu Feb 08 07:11:50.649066 2024] [php:error] [pid 116847] [client 10.0.0.55:53786] script ‘/var/www/html/xmlrpc.php’ not found or unable to stat

[Thu Feb 08 07:11:50.696261 2024] [php:error] [pid 116854] [client 10.0.0.55:53788] script ‘/var/www/html/xmlrpc.php’ not found or unable to stat

[Thu Feb 08 07:11:58.571339 2024] [php:error] [pid 116848] [client 10.0.0.55:45848] script ‘/var/www/html/xmlrpc.php’ not found or unable to stat

[Thu Feb 08 07:12:02.173052 2024] [php:error] [pid 116854] [client 10.0.0.55:45860] script ‘/var/www/html/xmlrpc.php’ not found or unable to stat

[Thu Feb 08 07:12:02.889206 2024] [php:error] [pid 193011] [client 10.0.0.55:45876] script ‘/var/www/html/xmlrpc.php’ not found or unable to stat

[Thu Feb 08 07:12:08.543189 2024] [php:error] [pid 116848] [client 10.0.0.55:37384] script ‘/var/www/html/xmlrpc.php’ not found or unable to stat

[Thu Feb 08 07:12:21.834654 2024] [php:error] [pid 116847] [client 10.0.0.55:53816] PHP Fatal error: Uncaught Error: Call to undefined function mb_internal_encoding() in /var/lib/roundcube/program/lib/Roundcube/bootstrap.php:86\nStack trace:\n#0 /var/lib/roundcube/program/include/iniset.php(78): require_once()\n#1 /var/lib/roundcube/index.php(40): require_once(‘…’)\n#2 {main}\n thrown in /var/lib/roundcube/program/lib/Roundcube/bootstrap.php on line 86

[Thu Feb 08 07:12:21.898129 2024] [php:error] [pid 116854] [client 10.0.0.55:53824] PHP Fatal error: Uncaught Error: Call to undefined function mb_internal_encoding() in /var/lib/roundcube/program/lib/Roundcube/bootstrap.php:86\nStack trace:\n#0 /var/lib/roundcube/program/include/iniset.php(78): require_once()\n#1 /var/lib/roundcube/index.php(40): require_once(‘…’)\n#2 {main}\n thrown in /var/lib/roundcube/program/lib/Roundcube/bootstrap.php on line 86

[Thu Feb 08 07:12:21.995778 2024] [php:error] [pid 193011] [client 10.0.0.55:53832] PHP Fatal error: Uncaught Error: Call to undefined function mb_internal_encoding() in /var/lib/roundcube/program/lib/Roundcube/bootstrap.php:86\nStack trace:\n#0 /var/lib/roundcube/program/include/iniset.php(78): require_once()\n#1 /var/lib/roundcube/index.php(40): require_once(‘…’)\n#2 {main}\n thrown in /var/lib/roundcube/program/lib/Roundcube/bootstrap.php on line 86

[Thu Feb 08 07:12:22.051248 2024] [php:error] [pid 116852] [client 10.0.0.55:53834] PHP Fatal error: Uncaught Error: Call to undefined function mb_internal_encoding() in /var/lib/roundcube/program/lib/Roundcube/bootstrap.php:86\nStack trace:\n#0 /var/lib/roundcube/program/include/iniset.php(78): require_once()\n#1 /var/lib/roundcube/index.php(40): require_once(‘…’)\n#2 {main}\n thrown in /var/lib/roundcube/program/lib/Roundcube/bootstrap.php on line 86

[Thu Feb 08 07:12:30.889176 2024] [php:error] [pid 116849] [client 10.0.0.55:47294] PHP Fatal error: Uncaught Error: Call to undefined function mb_internal_encoding() in /var/lib/roundcube/program/lib/Roundcube/bootstrap.php:86\nStack trace:\n#0 /var/lib/roundcube/program/include/iniset.php(78): require_once()\n#1 /var/lib/roundcube/index.php(40): require_once(‘…’)\n#2 {main}\n thrown in /var/lib/roundcube/program/lib/Roundcube/bootstrap.php on line 86

[Thu Feb 08 07:22:52.458548 2024] [php:error] [pid 116847] [client 10.0.0.55:36258] PHP Fatal error: Uncaught Error: Call to undefined function mb_internal_encoding() in /var/lib/roundcube/program/lib/Roundcube/bootstrap.php:86\nStack trace:\n#0 /var/lib/roundcube/program/include/iniset.php(78): require_once()\n#1 /var/lib/roundcube/index.php(40): require_once(‘…’)\n#2 {main}\n thrown in /var/lib/roundcube/program/lib/Roundcube/bootstrap.php on line 86

[Thu Feb 08 07:22:54.864178 2024] [php:error] [pid 116854] [client 10.0.0.55:36270] PHP Fatal error: Uncaught Error: Call to undefined function mb_internal_encoding() in /var/lib/roundcube/program/lib/Roundcube/bootstrap.php:86\nStack trace:\n#0 /var/lib/roundcube/program/include/iniset.php(78): require_once()\n#1 /var/lib/roundcube/index.php(40): require_once(‘…’)\n#2 {main}\n thrown in /var/lib/roundcube/program/lib/Roundcube/bootstrap.php on line 86

[Thu Feb 08 07:34:11.981692 2024] [php:error] [pid 116847] [client 10.0.0.55:58384] script ‘/var/www/html/class.api.php’ not found or unable to stat

[Thu Feb 08 07:34:13.248201 2024] [php:error] [pid 116852] [client 10.0.0.55:58404] script ‘/var/www/html/chosen.php’ not found or unable to stat

[Thu Feb 08 07:34:13.929144 2024] [php:error] [pid 116849] [client 10.0.0.55:58416] script ‘/var/www/html/users.php’ not found or unable to stat

[Thu Feb 08 07:34:16.822510 2024] [php:error] [pid 116854] [client 10.0.0.55:58432] script ‘/var/www/html/classwithtostring.php’ not found or unable to stat

[Thu Feb 08 07:45:42.665257 2024] [php:error] [pid 193011] [client 10.0.0.55:40194] script ‘/var/www/html/index.php’ not found or unable to stat

root@hcp:~#

There is a missing extension in your php installation, how did you install roundcube?

Anyways, you need to install the php extension mbstring for your current php version:

Example, if you are using php 8.2, then:

apt install php8.2-mbstring
1 Like