# dnf install httpd php php-cli php-common php-curl php-json php-mbstring php-xml php-zip php-pdo php-mysqlnd -y
systemctl start httpdsystemctl enable httpd mkdir /var/www/html/rainloop cd /var/www/html/rainloopcurl -sL https://repository.rainloop.net/installer.php | php ORcd /var/www/htmlwget https://www.rainloop.net/repository/webmail/rainloop-latest.zipunzip rainloop-latest.zip -d rainloop# unzip rainloop-latest.zip
find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; chown -R apache:apache .chmod -R 777 /var/www/html/rainloop
Configure Apache for RainLoop
# vim /etc/httpd/conf.d/mail.conf [ Add this Line] -------------------------------------
Alias /mail /var/www/html/rainloop
<Directory /var/www/html/rainloop>
Options -Indexes
AllowOverride All
</Directory>
<Directory /var/www/html/rainloop/data>
Order Deny,Allow
Deny from All
</Directory>
--------------ROOT Login----------------------
<VirtualHost *:80> ServerAdmin admin@yourdomain.com DocumentRoot /var/www/html/rainloop ServerName mail.yourdomain.com <Directory /var/www/html/rainloop> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> ----------------------------OR--------------------------
<VirtualHost *:80> ServerAdmin admin@example.com ServerName example.com ServerAlias www.example.com DocumentRoot /var/www/rainloop/ <Directory /> Options +Indexes +FollowSymLinks +ExecCGI AllowOverride All Order deny,allow Allow from all Require all granted </Directory> <Directory /var/www/rainloop/data> Require all denied </Directory> ErrorLog /var/log/apache2/rainloop_error_log TransferLog /var/log/apache2/rainloop_access_log </VirtualHost>-----------------------------------------# systemctl restart httpd
Admin Panel
URL : http://Your-IP-Address/rainloop/?admin
Webmail: http://Your-IP-Address/mail
# mysql
# mysql -u root -pMySQL> create database rainloop;MySQL> FLUSH PRIVILEGES;MySQL> exit;Log in to the MySQL shell by running the following command:
mysql -u root -p
CREATE DATABASE rainloop;CREATE USER 'rainuser'@'localhost' IDENTIFIED BY 'YourPassword23';GRANT ALL ON rainloop.* TO 'rainuser'@'localhost';FLUSH PRIVILEGES;exit