Page 1 of 1

Installation of roundcube

Posted: Sun Apr 14, 2019 8:18 am
by Kalvic
Can you tell me how to install rouncube on vestacp?

Re: Installation of roundcube

Posted: Thu Apr 18, 2019 8:59 pm
by dreiggy
You did not specified your OS. So I copy from installed steps (and edited some variables) for CentOS7.
I DID NOT TEST IT. BE CAREFULL ;)

Create file install-roundcube.sh and paste below text:

Code: Select all

#!/bin/sh

### VARIABLE TO EDIT
vestacp="/usr/local/vesta/install/rhel/7"
servername=$(hostname)
r="P@SSW0RD" # EDIT TO YOUR OWN
###
yum install roundcubemail 
cp -f $vestacp/roundcube/roundcubemail.conf /etc/httpd/conf.d/
cp -f $vestacp/roundcube/main.inc.php /etc/roundcubemail/config.inc.php
cd /usr/share/roundcubemail/plugins/password
cp -f $vestacp/roundcube/vesta.php drivers/vesta.php
cp -f $vestacp/roundcube/config.inc.php config.inc.php
sed -i "s/localhost/$servername/g" config.inc.php
chmod a+r /etc/roundcubemail/*
chmod -f 777 /var/log/roundcubemail
mysql -e "CREATE DATABASE roundcube"
mysql -e "GRANT ALL ON roundcube.* TO 
        roundcube@localhost IDENTIFIED BY '$r'"
sed -i "s/%password%/$r/g" /etc/roundcubemail/config.inc.php
chmod 640 /etc/roundcubemail/config.inc.php
chown root:apache /etc/roundcubemail/config.inc.php
if [ -e "/usr/share/roundcubemail/SQL/mysql.initial.sql" ]; then
        mysql roundcube < /usr/share/roundcubemail/SQL/mysql.initial.sql
else
        mysql roundcube < /usr/share/doc/roundcubemail-*/SQL/mysql.initial.sql
fi
chmod +x install-roundcube.sh
sh install-roundcube.sh