2-B

-----

yum install -y php56w php56w-json php56w-mcrypt php56w-cli php56w-gd php56w-curl php56w-xml php56w-mysql php56w-mbstring php56w-pspell php56w-imagick php56w-imap php-pear-DB

# vim /etc/php.ini

cgi.fix_pathinfo=0

date.timezone = "Asia/Dhaka"

# cd /tmp

 wget http://nchc.dl.sourceforge.net/project/roundcubemail/roundcubemail/1.1.4/roundcubemail-1.1.4-complete.tar.gz

wget https://github.com/roundcube/roundcubemail/releases/download/1.4.3/roundcubemail-1.4.3.tar.gz

wget https://github.com/roundcube/roundcubemail/releases/download/1.3.9/roundcubemail-1.3.9-complete.tar.gz

BEST

 wget https://github.com/roundcube/roundcubemail/releases/download/1.3.10/roundcubemail-1.3.10-complete.tar.gz

tar -xvf roundcubemail-1.3.10-complete.tar.gz

mkdir /usr/share/roundcubemail

mv /tmp/roundcubemail-1.3.10/* /usr/share/roundcubemail/

chown -R root:root /usr/share/roundcubemail

chown apache /usr/share/roundcubemail/temp

chown apache /usr/share/roundcubemail/logs

cd /usr/share/

chown -R apache:apache roundcubemail

chown apache:apache -R /var/www/html/roundcube

[root@mail]# vi /etc/httpd/conf.d/roundcubemail.conf

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

#

# Round Cube Webmail is a browser-based multilingual IMAP client

#

Alias /roundcubemail /usr/share/roundcubemail

Alias /webmail /usr/share/roundcubemail

# Define who can access the Webmail

# You can enlarge permissions once configured

<Directory /usr/share/roundcubemail/>

    <IfModule mod_authz_core.c>

        # Apache 2.4

        Require all granted

    </IfModule>

    <IfModule !mod_authz_core.c>

        # Apache 2.2

        Order Deny,Allow

        Deny from all

        Allow from 127.0.0.1

        Allow from ::1

    </IfModule>

</Directory>

# Define who can access the installer

# keep this secured once configured

<Directory /usr/share/roundcubemail/installer/>

    <IfModule mod_authz_core.c>

        # Apache 2.4

        Require all granted

    </IfModule>

    <IfModule !mod_authz_core.c>

        # Apache 2.2

        Order Deny,Allow

        Deny from all

        Allow from 127.0.0.1

        Allow from ::1

    </IfModule>

</Directory>

# Those directories should not be viewed by Web clients.

<Directory /usr/share/roundcubemail/bin/>

    Order Allow,Deny

    Deny from all

</Directory>

<Directory /usr/share/roundcubemail/plugins/enigma/home/>

    Order Allow,Deny

    Deny from all

</Directory>

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

# systemctl restart httpd.service

# mysql -u root -p

> create database roundcube;

> grant all privileges on roundcube.* to roundcube@'localhost' identified by 'password';

> flush privileges;

> exit

 

# cd /usr/share/roundcubemail/SQL

# mysql -u roundcube -D roundcube -p < mysql.initial.sql

systemctl start httpd

systemctl enable httpd

http://192.168.80.1/roundcubemail/installer

Remove the installer

vi /usr/share/roundcubemail/config/config.inc.php

# vi /usr/share/roundcube/config/config.inc.php

$config['enable_installer'] = false;

OR

Remove the installer directory from your web server document root ( /var/www/html/roundcube )

[root@tec ~]# cd /var/www/html/roundcube/

[root@tec roundcube]# rm -rf installer

------