Roundcube: Difference between revisions

From QmailToaster
Jump to navigation Jump to search
(Created page with "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/...")
 
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
Upgrade PHP 5.x to 7.x
[[Webmail|Back]]<br>
# yum -y install git yum-utils epel-release php-mysql roundcubemail
EL 8 & 9 should already have roundcubemail installed, otherwise...
# echo "create database roundcube character set utf8 collate utf8_bin" | mysql -uroot -p
  # dnf -y install epel-release
# echo "GRANT ALL ON roundcube.* TO roundcube@localhost IDENTIFIED BY 'p4ssw3rd'" | mysql -uroot -p
  # dnf config-manager --set-enabled powertools
# mysql -uroot -p roundcube < /usr/share/roundcubemail/SQL/mysql.initial.sql
  # dnf -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
# cp -p /etc/httpd/conf.d/roundcubemail.conf /etc/httpd/conf.d/roundcubemail.conf.bak && \
  # dnf -y module reset php
wget -O /etc/roundcubemail/config.inc.php http://www.qmailtoaster.org/rc.default.config && \
  # dnf module install php:remi-8.1
wget -O /etc/httpd/conf.d/roundcubemail.conf http://www.qmailtoaster.org/rc.httpd.config
  # yum -y install git yum-utils epel-release php-mysql roundcubemail
Change 'date.timezone' in '/etc/php.ini', e.g., date.timezone = "America/Denver"
  # mysql --defaults-extra-file=$credfile -e "create database roundcube character set utf8 collate utf8_bin"
# systemctl restart httpd
  # mysql --defaults-extra-file=$credfile -e "CREATE USER roundcube@localhost IDENTIFIED BY 'p4ssw3rd'"
Access https://my.roundcube.server/email
  # mysql --defaults-extra-file=$credfile -e "GRANT ALL PRIVILEGES ON roundcube.* TO roundcube@localhost"
Add password support
  # mysql --defaults-extra-file=$credfile roundcube < /usr/share/roundcubemail/SQL/mysql.initial.sql
Everyone should log out of roundcube before doing the next steps
  # cp -p /etc/httpd/conf.d/roundcubemail.conf /etc/httpd/conf.d/roundcubemail.conf.bak
Enable vpopmaild
  # wget -O /etc/roundcubemail/config.inc.php http://www.qmailtoaster.org/rc.default.config.rhelgt7
# wget -O /usr/share/roundcubemail/plugins/password/config.inc.php http://www.qmailtoaster.org/rc.password.config
  # wget -O /etc/httpd/conf.d/roundcubemail.conf http://www.qmailtoaster.org/rc.httpd.config
Add to config file, run command in red:
  # sed -i 's/\;date.timezone.*/date.timezone = "America\/Denver"/' /etc/php.ini | sleep 2 | cat /etc/php.ini | grep date.timezone.*=
# [ "`grep \'password\', /etc/roundcubemail/config.inc.php`" = "" ] && \
  # systemctl restart httpd
perl -ni -le 'BEGIN{ $q=chr(39), $pw="password" } print; print " $q$pw$q," if /$config.*'plugins'.*=.*array/' \
 
/etc/roundcubemail/config.inc.php
Access https://my.roundcube.server/email
Add Carddav
 
Everyone should log out of roundcube before doing the next steps
Add password support (Everyone should logout of roundcube at this point)
otherwise they'll have to clear their browser cache in order not
[http://wiki.qmailtoaster.org/index.php?title=Vpopmail_daemon Enable vpopmaild]
to get a database error. You may have to do this anyway.
  # wget -O /usr/share/roundcubemail/plugins/password/config.inc.php http://www.qmailtoaster.org/rc.password.config
cd /usr/share/roundcubemail/plugins
  # [ "`grep \'password\', /etc/roundcubemail/config.inc.php`" = "" ] && \
git clone https://github.com/blind-coder/rcmcarddav carddav
      perl -ni -le 'BEGIN{ $q=chr(39), $pw="password" } print; print " $q$pw$q," if /$config.*'plugins'.*=.*array/' \
cd carddav
      /etc/roundcubemail/config.inc.php
curl -sS https://getcomposer.org/installer | php
 
php composer.phar install
Add Carddav (Everyone should logout of roundcube at this point)
Add to config file, run command in red::
  # cd /usr/share/roundcubemail/plugins
# [ "`grep \'carddav\', /etc/roundcubemail/config.inc.php`" = "" ] && \
  # git clone https://github.com/blind-coder/rcmcarddav carddav
perl -ni -le 'BEGIN{ $q=chr(39), $cd="carddav" } print; print " $q$cd$q," if /$config.*'plugins'.*=.*array/' \
  # cd carddav
/etc/roundcubemail/config.inc.php
  # curl -sS https://getcomposer.org/installer | php
2-Factor Authentication
  # php composer.phar install
Roundcubemail <= 1.4.13 (RHEL7) php >= 7.4 Github
  # [ "`grep \'carddav\', /etc/roundcubemail/config.inc.php`" = "" ] && \
Roundcubemail > 1.4.13 (RHEL8) php >= 7.4 Github
  perl -ni -le 'BEGIN{ $q=chr(39), $cd="carddav" } print; print " $q$cd$q," if /$config.*'plugins'.*=.*array/' \
  /etc/roundcubemail/config.inc.php
 
</pre>

Latest revision as of 21:22, 24 April 2024

Back

EL 8 & 9 should already have roundcubemail installed, otherwise...
 # dnf -y install epel-release
 # dnf config-manager --set-enabled powertools
 # dnf -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
 # dnf -y module reset php
 # dnf module install php:remi-8.1
 # yum -y install git yum-utils epel-release php-mysql roundcubemail
 # mysql --defaults-extra-file=$credfile -e "create database roundcube character set utf8 collate utf8_bin"
 # mysql --defaults-extra-file=$credfile -e "CREATE USER roundcube@localhost IDENTIFIED BY 'p4ssw3rd'"
 # mysql --defaults-extra-file=$credfile -e "GRANT ALL PRIVILEGES ON roundcube.* TO roundcube@localhost"
 # mysql --defaults-extra-file=$credfile 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.rhelgt7
 # wget -O /etc/httpd/conf.d/roundcubemail.conf http://www.qmailtoaster.org/rc.httpd.config
 # sed -i 's/\;date.timezone.*/date.timezone = "America\/Denver"/' /etc/php.ini | sleep 2 | cat /etc/php.ini | grep date.timezone.*=
 # systemctl restart httpd
Access https://my.roundcube.server/email
Add password support (Everyone should logout of roundcube at this point)
Enable vpopmaild
 # wget -O /usr/share/roundcubemail/plugins/password/config.inc.php http://www.qmailtoaster.org/rc.password.config
 # [ "`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 logout of roundcube at this point)
 # 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
 # [ "`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