Roundcube: Difference between revisions

From QmailToaster
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<pre>
<pre>
Upgrade PHP 5.x to 7.x
Upgrade PHP 5.x to 7.x
# yum -y install git yum-utils epel-release php-mysql roundcubemail
# yum -y install git yum-utils epel-release php-mysql roundcubemail
# echo "create database roundcube character set utf8 collate utf8_bin" | mysql -uroot -p
# echo "create database roundcube character set utf8 collate utf8_bin" | mysql -uroot -p
# echo "GRANT ALL ON roundcube.* TO roundcube@localhost IDENTIFIED BY 'p4ssw3rd'" | mysql -uroot -p
# echo "GRANT ALL ON roundcube.* TO roundcube@localhost IDENTIFIED BY 'p4ssw3rd'" | mysql -uroot -p
# mysql -uroot -p roundcube < /usr/share/roundcubemail/SQL/mysql.initial.sql
# mysql -uroot -p roundcube < /usr/share/roundcubemail/SQL/mysql.initial.sql
# cp -p /etc/httpd/conf.d/roundcubemail.conf /etc/httpd/conf.d/roundcubemail.conf.bak && \
# cp -p /etc/httpd/conf.d/roundcubemail.conf /etc/httpd/conf.d/roundcubemail.conf.bak && \
wget -O /etc/roundcubemail/config.inc.php http://www.qmailtoaster.org/rc.default.config && \
  wget -O /etc/roundcubemail/config.inc.php http://www.qmailtoaster.org/rc.default.config && \
wget -O /etc/httpd/conf.d/roundcubemail.conf http://www.qmailtoaster.org/rc.httpd.config
  wget -O /etc/httpd/conf.d/roundcubemail.conf http://www.qmailtoaster.org/rc.httpd.config
Change 'date.timezone' in '/etc/php.ini', e.g., date.timezone = "America/Denver"
Change 'date.timezone' in '/etc/php.ini', e.g., date.timezone = "America/Denver"
# systemctl restart httpd
# systemctl restart httpd
Access https://my.roundcube.server/email
Access https://my.roundcube.server/email
Add password support
Add password support
Everyone should log out of roundcube before doing the next steps
Everyone should log out of roundcube before doing the next steps
Enable vpopmaild
Enable vpopmaild
# wget -O /usr/share/roundcubemail/plugins/password/config.inc.php http://www.qmailtoaster.org/rc.password.config
# wget -O /usr/share/roundcubemail/plugins/password/config.inc.php http://www.qmailtoaster.org/rc.password.config
Add to config file, run command in red:
Add to config file, run command in red:
# [ "`grep \'password\', /etc/roundcubemail/config.inc.php`" = "" ] && \
# [ "`grep \'password\', /etc/roundcubemail/config.inc.php`" = "" ] && \
perl -ni -le 'BEGIN{ $q=chr(39), $pw="password" } print; print " $q$pw$q," if /$config.*'plugins'.*=.*array/' \
  perl -ni -le 'BEGIN{ $q=chr(39), $pw="password" } print; print " $q$pw$q," if /$config.*'plugins'.*=.*array/' \
/etc/roundcubemail/config.inc.php
  /etc/roundcubemail/config.inc.php
Add Carddav
Add Carddav
Everyone should log out of roundcube before doing the next steps
Everyone should log out of roundcube before doing the next steps
otherwise they'll have to clear their browser cache in order not
otherwise they'll have to clear their browser cache in order not
to get a database error. You may have to do this anyway.
to get a database error. You may have to do this anyway.
cd /usr/share/roundcubemail/plugins
# cd /usr/share/roundcubemail/plugins
git clone https://github.com/blind-coder/rcmcarddav carddav
# git clone https://github.com/blind-coder/rcmcarddav carddav
cd carddav
# cd carddav
curl -sS https://getcomposer.org/installer | php
# curl -sS https://getcomposer.org/installer | php
php composer.phar install
# php composer.phar install
Add to config file, run command in red::
Add to config file, run command in red::
# [ "`grep \'carddav\', /etc/roundcubemail/config.inc.php`" = "" ] && \
# [ "`grep \'carddav\', /etc/roundcubemail/config.inc.php`" = "" ] && \
perl -ni -le 'BEGIN{ $q=chr(39), $cd="carddav" } print; print " $q$cd$q," if /$config.*'plugins'.*=.*array/' \
  perl -ni -le 'BEGIN{ $q=chr(39), $cd="carddav" } print; print " $q$cd$q," if /$config.*'plugins'.*=.*array/' \
/etc/roundcubemail/config.inc.php
  /etc/roundcubemail/config.inc.php
 
2-Factor Authentication
2-Factor Authentication
Roundcubemail <= 1.4.13 (RHEL7) php >= 7.4 Github
Roundcubemail <= 1.4.13 (RHEL7) php >= 7.4 Github
Roundcubemail > 1.4.13 (RHEL8) php >= 7.4 Github
Roundcubemail > 1.4.13 (RHEL8) php >= 7.4 Github
</pre>
</pre>

Revision as of 14:31, 27 March 2024

Upgrade PHP 5.x to 7.x
 # yum -y install git yum-utils epel-release php-mysql roundcubemail
 # echo "create database roundcube character set utf8 collate utf8_bin" | mysql -uroot -p
 # echo "GRANT ALL ON roundcube.* TO roundcube@localhost IDENTIFIED BY 'p4ssw3rd'" | mysql -uroot -p
 # mysql -uroot -p roundcube < /usr/share/roundcubemail/SQL/mysql.initial.sql
 # cp -p /etc/httpd/conf.d/roundcubemail.conf /etc/httpd/conf.d/roundcubemail.conf.bak && \
   wget -O /etc/roundcubemail/config.inc.php http://www.qmailtoaster.org/rc.default.config && \
   wget -O /etc/httpd/conf.d/roundcubemail.conf http://www.qmailtoaster.org/rc.httpd.config
Change 'date.timezone' in '/etc/php.ini', e.g., date.timezone = "America/Denver"
 # systemctl restart httpd
Access https://my.roundcube.server/email
Add password support
Everyone should log out of roundcube before doing the next steps
Enable vpopmaild
 # wget -O /usr/share/roundcubemail/plugins/password/config.inc.php http://www.qmailtoaster.org/rc.password.config
Add to config file, run command in red:
 # [ "`grep \'password\', /etc/roundcubemail/config.inc.php`" = "" ] && \
   perl -ni -le 'BEGIN{ $q=chr(39), $pw="password" } print; print " $q$pw$q," if /$config.*'plugins'.*=.*array/' \
   /etc/roundcubemail/config.inc.php
Add Carddav
Everyone should log out of roundcube before doing the next steps
otherwise they'll have to clear their browser cache in order not
to get a database error. You may have to do this anyway.
 # cd /usr/share/roundcubemail/plugins
 # git clone https://github.com/blind-coder/rcmcarddav carddav
 # cd carddav
 # curl -sS https://getcomposer.org/installer | php
 # php composer.phar install
Add to config file, run command in red::
 # [ "`grep \'carddav\', /etc/roundcubemail/config.inc.php`" = "" ] && \
   perl -ni -le 'BEGIN{ $q=chr(39), $cd="carddav" } print; print " $q$cd$q," if /$config.*'plugins'.*=.*array/' \
   /etc/roundcubemail/config.inc.php

2-Factor Authentication
Roundcubemail <= 1.4.13 (RHEL7) php >= 7.4 Github
Roundcubemail > 1.4.13 (RHEL8) php >= 7.4 Github