This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computing:roundcube [2026/11/02 15:36] – oemb1905 | computing:roundcube [2026/11/07 17:28] (current) – oemb1905 | ||
|---|---|---|---|
| Line 155: | Line 155: | ||
| systemctl restart apache2 php8.4-fpm | systemctl restart apache2 php8.4-fpm | ||
| </ | </ | ||
| + | |||
| + | After update, you might need to update db tables or what not. Check the forums. Here's a 1.6 to 1.7 change and the script that roundcube provided to update the db: | ||
| + | |||
| + | cd / | ||
| + | sudo -u www-data ./ | ||
| To setup a fail2ban filter that works with this setup, use something like the following: | To setup a fail2ban filter that works with this setup, use something like the following: | ||
| Line 180: | Line 185: | ||
| fail2ban-client reload --restart --unban roundcube-haack | fail2ban-client reload --restart --unban roundcube-haack | ||
| - | --- //[[alerts@haacksnetworking.org|oemb1905]] 2026/11/02 15:10// | + | Make sure the log directories and files exist and have proper perms: |
| + | |||
| + | mkdir -p / | ||
| + | touch / | ||
| + | chown www-data:www-data /var/www/ | ||
| + | |||
| + | For nginx, you can use these: | ||
| + | |||
| + | < | ||
| + | server { | ||
| + | listen 80; | ||
| + | listen | ||
| + | server_name mail.domain.com; | ||
| + | return 301 https:// | ||
| + | } | ||
| + | |||
| + | server { | ||
| + | listen 443 ssl http2; | ||
| + | listen | ||
| + | server_name mail.domain.com; | ||
| + | |||
| + | root / | ||
| + | index index.php; | ||
| + | |||
| + | ssl_certificate | ||
| + | ssl_certificate_key / | ||
| + | |||
| + | access_log / | ||
| + | error_log | ||
| + | |||
| + | location / { | ||
| + | try_files $uri $uri/ / | ||
| + | } | ||
| + | |||
| + | # Required for 1.7+ static assets (skins, plugins, program) | ||
| + | location ~ ^/(assets|skins|plugins|program)/ | ||
| + | try_files $uri / | ||
| + | } | ||
| + | |||
| + | location ~ \.php(?: | ||
| + | fastcgi_split_path_info ^(.+\.php)(/ | ||
| + | include snippets/ | ||
| + | fastcgi_pass unix:/ | ||
| + | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
| + | fastcgi_param PATH_INFO $fastcgi_path_info; | ||
| + | include fastcgi_params; | ||
| + | } | ||
| + | |||
| + | # Lock down installer after setup - UNLOCK / COMMENT OUT when fixing | ||
| + | #location ~ ^/ | ||
| + | # deny all; | ||
| + | #} | ||
| + | |||
| + | location ~ /\.ht { | ||
| + | deny all; | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | And for fail2ban: | ||
| + | |||
| + | < | ||
| + | nano / | ||
| + | [Definition] | ||
| + | failregex = ^< | ||
| + | ^< | ||
| + | ^< | ||
| + | ignoreregex = | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | nano / | ||
| + | [roundcube-haack] | ||
| + | enabled | ||
| + | port = http, | ||
| + | filter | ||
| + | logpath | ||
| + | maxretry = 2 | ||
| + | </code> | ||
| + | --- // | ||