Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Installation of roundcube

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
Kalvic
Posts: 4
Joined: Sun Mar 05, 2017 7:32 am

Installation of roundcube
  • Quote

Post by Kalvic » Sun Apr 14, 2019 8:18 am

Can you tell me how to install rouncube on vestacp?
Top

dreiggy
Posts: 154
Joined: Thu May 17, 2018 8:05 pm
Contact:
Contact dreiggy
Skype

Os: CentOS 6x
Web: apache + nginx
Re: Installation of roundcube
  • Quote

Post by dreiggy » Thu Apr 18, 2019 8:59 pm

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
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password