VestaCP-Roundcube-PasswordPlugin

FRESH INSTALLATION OF ROUNDCUBE 1.3.6 WITH (VESTACP + UBUNTU16.0.4 + APACHE2 + NGINX) with password changing plugin..



#REMOVING OLD ROUNDCUBE INSTALLATIONS
  • dpkg --get-selections | grep -i roundcube
  • apt-get remove roundcube-*
  • apt-get purge roundcube-*
  • rm /etc/apache2/conf.d/roundcube.conf
  • mysql --defaults-file=/etc/mysql/debian.cnf
  • DROP DATABASE roundcube;

#BKP OLD ROUNDCUBE FILES IF ANY
  • mv /var/lib/roundcube /var/lib/roundcube-BKP
  • mv /etc/roundcube /etc/roundcube-BKP
  • mv /usr/share/roundcube /usr/share/roundcube-BKP
  • #STARTING OF INSTALLATIONS
  • mkdir /var/lib/roundcube
  • cd /var/lib/roundcube
  • wget https://github.com/roundcube/roundcubemail/releases/download/1.3.6/roundcubemail-1.3.6-complete.tar.gz
  • tar -xvzf roundcubemail-1.3.6-complete.tar.gz

#MOVING EXTRACTED FILES TO CURRENT-ONE-LEVEL-UP
  • mv roundcubemail-*/* .
  • mv roundcubemail-*/.htaccess .
  • rm -r roundcubemail-*

#CREATING MYSQL DB & TABLES
  • mysql --defaults-file=/etc/mysql/debian.cnf
  • CREATE DATABASE roundcubemail;
  • GRANT ALL PRIVILEGES ON roundcubemail.* TO roundcube@localhost IDENTIFIED BY 'MyPassWord';
  • flush privileges;
  • quit
  • mysql --defaults-file=/etc/mysql/debian.cnf roundcubemail < /var/lib/roundcube/SQL/mysql.initial.sql
  • cd /var/lib/roundcube/config
  • cp -pf config.inc.php.sample config.inc.php
  • nano config.inc.php

#set the above mentioned mysql password inside this file
  • cp /usr/local/vesta/install/ubuntu/16.04/roundcube/apache.conf /var/lib/roundcube/apache.conf
  • ln -s /var/lib/roundcube/apache.conf /etc/apache2/conf.d/roundcube.conf -f
  • cp /usr/local/vesta/install/ubuntu/16.04/roundcube/main.inc.php /var/lib/roundcube/main.inc.php
  • cp /usr/local/vesta/install/ubuntu/16.04/roundcube/db.inc.php /var/lib/roundcube/db.inc.php
  • cp /usr/local/vesta/install/ubuntu/16.04/roundcube/config.inc.php /var/lib/roundcube/plugins/password/config.inc.php
  • mv /var/lib/roundcube/db.inc.php /var/lib/roundcube/debian-db-roundcube.php
  • mv /var/lib/roundcube/main.inc.php /var/lib/roundcube/config.inc.php
  • chmod 640 /var/lib/roundcube/debian-db-roundcube.php
  • chown root:www-data /var/lib/roundcube/debian-db-roundcube.php
#PASSWORD PLUGIN CONFIG
  • Goto /var/lib/roundcube/plugins/password/drivers
  • Open vesta.php 
  • Find the line " function password_save($curpass, $passwd) "
  • Replace with " class rcube_vesta_password { function save($curpass, $passwd) "
  • Put the closing bracket " " at the very end of this file

  • service apache2 restart
  • service vesta restart

 ------------------------------------

Cheap Web Designing Company | Budget Web Hosting | Cheque Writer Singapore | Easy Accounting

Post a Comment

1 Comments

You must visit to https://vvcares.com - accept the our policy to approve your comment submission successfully.