dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
dnf install https://rpms.remirepo.net/enterprise/remi-release-9.rpm
dnf module install php:remi-7.4
# dnf install httpd php php-cli php-common php-curl php-json php-mbstring php-xml php-zip php-pdo php-mysqlnd -y# dnf install php-cli php-fpm php-curl php-mysqlnd php-gd php-opcache php-zip php-intl php-common php-bcmath php-imap php-imagick php-xmlrpc php-json php-readline php-memcached php-redis php-mbstring php-apcu php-xml php-dom php-redis php-memcached php-memcache -y dnf -y install php-xml php-soap php-xmlrpc php-mbstring php-json php-gd php-mcrypt php-pear php-ldap dnf install php-ldap php-imagick php-common php-gd php-imap php-json php-curl php-zip php-xml php-mbstring php-bz2 php-intl php-gmp -y dnf install php-mysql php-xml pcre php-common php-mbstring php-pear curl unzip -y dnf -y install php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-snmp php-soap php-tidy curl curl-devel 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; --------------------------
MySQL> create database rainloop;MySQL> grant all privileges on rainloop.* to rainuser@'localhost' identified by 'YourPassword23';MySQL> FLUSH PRIVILEGES;MySQL> exit;Log in to the MySQL shell by running the following command:
mysql -u root -p
CREATE DATABASE rainloop DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;CREATE USER 'rainuser'@'localhost' IDENTIFIED BY 'YourPassword23';GRANT ALL ON rainloop.* TO 'rainuser'@'localhost';FLUSH PRIVILEGES;exit# vi /etc/php.ini
max_execution_time = 300
memory_limit = 512M;
post_max_size = 80M;
upload_max_filesize = 50M;
date.timezone = Asia/Dhaka
systemctl restart httpd
systemctl restart php-fpm
Reset Default PHP Module
dnf module reset php
dnf module enable php:remi-7.4
dnf install php php-cli php-mbstring php-mysqlnd php-xml php-gd php-curl php-opcache php-common php-pdo php-intl php-json php-devel -y
php -v
systemctl restart httpd
sudo systemctl restart php-fpm