Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
services:roundcube [2025/02/18 14:43] – created willy | services:roundcube [2025/03/06 13:15] (current) – willy | ||
---|---|---|---|
Line 9: | Line 9: | ||
Since i don't want to oberate the external server with containers, i will show you how to install Roundcube on bare metal. It's relatively easy anyway. | Since i don't want to oberate the external server with containers, i will show you how to install Roundcube on bare metal. It's relatively easy anyway. | ||
- | You need PHP and NGINX installed. PHP requires some extensions like PDO and zip, so: | + | You need PHP and NGINX installed. PHP requires some extensions like PDO and zip, also Roundcube requires aspell to be installed for syntax checking, which is controlled by L10N variable in / |
<code bash> | <code bash> | ||
echo app-eselect/ | echo app-eselect/ | ||
echo dev-lang/ | echo dev-lang/ | ||
- | emerge -vp php | + | echo ' |
+ | emerge -vp php aspell | ||
+ | # The following is optional, if you haven' | ||
+ | # useradd --shell / | ||
</ | </ | ||
Since i use NGINX, the fpm flag needs also to be enabled. | Since i use NGINX, the fpm flag needs also to be enabled. | ||
+ | |||
+ | If you haven' | ||
+ | < | ||
+ | user = web | ||
+ | group = web | ||
+ | </ | ||
+ | in file **/ | ||
+ | |||
===== Installation ===== | ===== Installation ===== | ||
Line 25: | Line 35: | ||
Since i want to share PHP between Rouncube and other public services, due to the limited resources of the external server, i will not create a dedicated user, which would require also to run multiple PHP copies. | Since i want to share PHP between Rouncube and other public services, due to the limited resources of the external server, i will not create a dedicated user, which would require also to run multiple PHP copies. | ||
- | The webmail will be installed under **/ | + | The webmail will be installed under **/ |
<code bash> | <code bash> | ||
- | mkdir -p / | + | mkdir / |
- | cd /home/ | + | mkdir /var/log/ |
+ | chown web:web /var/log/roundcube | ||
</ | </ | ||
Line 36: | Line 47: | ||
<code bash> | <code bash> | ||
cd / | cd / | ||
- | mkdir db | + | mkdir db temp |
- | chown nginx:nginx db | + | chown web:web db temp |
- | cd roundcube-< | + | wget https:// |
- | chown nginx:nginx logs temp | + | tar xvf roundcubemail-X.Y.Z-complete.tar.gz |
+ | ln -s roundcubemail-X.Y.Z-complete.tar.gz roundcubemail | ||
</ | </ | ||
Line 54: | Line 66: | ||
index index.php; | index index.php; | ||
- | root / | + | root / |
access_log / | access_log / | ||
Line 62: | Line 74: | ||
# location ~ / | # location ~ / | ||
# deny all; | # deny all; | ||
- | # alias / | + | # alias / |
# } | # } | ||
Line 86: | Line 98: | ||
Point your browser to **https:// | Point your browser to **https:// | ||
+ | |||
+ | Double check the **temp** and **logs** paths, you need to change the path to point to the folders you created in the previous step. | ||
+ | |||
+ | When asked for database, use this as file path **/ | ||
+ | |||
+ | Save the settings by copying the produced config file as **/ | ||
+ | |||
+ | Here is an example which works with Stalwart: | ||
+ | <file - config.inc.php> | ||
+ | $config[' | ||
+ | $config[' | ||
+ | $config[' | ||
+ | $config[' | ||
+ | $config[' | ||
+ | $config[' | ||
+ | $config[' | ||
+ | $config[' | ||
+ | $config[' | ||
+ | $config[' | ||
+ | $config[' | ||
+ | $config[' | ||
+ | $config[' | ||
+ | </ | ||
+ | |||
+ | At this point the installation is complete. | ||
+ | |||
+ | |||
+ | ===== CardDav Plugin ===== | ||
+ | |||
+ | To enable integration with your CardDav addressbook, | ||
+ | |||
+ | Download latest tarball from [[https:// | ||
+ | |||
+ | **Note:** it is critical that you LOGOUT from Roundcube before enabling the plugin, and LOGIN again after. This is because this will create the needed table. If you don't, you will get an internal error. | ||
Line 93: | Line 139: | ||
<code bash> | <code bash> | ||
rc-update add php-fpm default | rc-update add php-fpm default | ||
- | rc-update add nginx defsault | + | rc-update add nginx default |
</ | </ | ||