<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rafsun Sheikh</title>
    <description>The latest articles on DEV Community by Rafsun Sheikh (@rafsunsheikh).</description>
    <link>https://dev.to/rafsunsheikh</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1029846%2F37a80f2f-66a9-4137-a315-fed669102e9a.jpg</url>
      <title>DEV Community: Rafsun Sheikh</title>
      <link>https://dev.to/rafsunsheikh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rafsunsheikh"/>
    <language>en</language>
    <item>
      <title>A complete guide to Installing Services in Linux Fedora</title>
      <dc:creator>Rafsun Sheikh</dc:creator>
      <pubDate>Mon, 20 Feb 2023 07:08:11 +0000</pubDate>
      <link>https://dev.to/rafsunsheikh/a-complete-guide-to-installing-services-in-linux-fedora-1l93</link>
      <guid>https://dev.to/rafsunsheikh/a-complete-guide-to-installing-services-in-linux-fedora-1l93</guid>
      <description>&lt;p&gt;Many of us are a complete beginner when using Linux Operating System. Today we are going to learn how to install Linux Services into your Fedora Machine.&lt;/p&gt;

&lt;p&gt;To use or configure any services we are going to follow these steps generally:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Install the packages including the dependencies.&lt;/li&gt;
&lt;li&gt;Enable/restart the service&lt;/li&gt;
&lt;li&gt;Configure the service as per our requirements.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;And these are the following services that we are going to learn to install today:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;FTP Server with &lt;strong&gt;vsftpd&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Web Server with &lt;strong&gt;wordpress&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Cloud Server with &lt;strong&gt;ownCloud&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Mail Server with &lt;strong&gt;roundcube&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;But, for &lt;strong&gt;Web Server&lt;/strong&gt; and &lt;strong&gt;Cloud Server&lt;/strong&gt; we need &lt;strong&gt;LAMP&lt;/strong&gt; with &lt;strong&gt;phpmyadmin&lt;/strong&gt;. So, before we start with the web server we will install and configure LAMP at first.&lt;/p&gt;

&lt;h2&gt;
  
  
  FTP Server
&lt;/h2&gt;

&lt;p&gt;FTP stands for File Transfer Protocol. This protocol is used to transmit files between devices across a network. For instance, sending data from a computer to a server across the internet In a word, FTP is the language that devices use to transfer data over a TCP/IP network.&lt;/p&gt;

&lt;p&gt;When files are uploaded to an FTP server, other users can access them from anywhere in the world by connecting to the server and downloading the files using the FTP protocol. Nevertheless, this illustration shows that you need a dedicated FTP server set up in order to exchange the data. No, setting up your computer to act as an FTP server is a simple process. While Windows users can use the Internet Information Services Manager, Linux users can easily install the FTP program on their computer.&lt;/p&gt;

&lt;p&gt;You can easily install FTP on Fedora using the YUM package manager. Launch the Terminal and execute the command below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo yum install vsftpd

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can verify the installation by checking the VSFTPD version installed on your system when done.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;vsftpd -v
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Configure FTP (vsftpd) on Fedora
&lt;/h3&gt;

&lt;p&gt;You can check whether the ftp server is running or not by:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo service vsftpd status
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To make the modifications effective, restart the VSFTPD server. Run the commands listed below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo systemctl enable vsftpd
sudo systemctl restart vsftpd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Connect to the FTP server
&lt;/h3&gt;

&lt;p&gt;Enter the following URL into your browser's address bar to access the FTP server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ftp://[ip-address]
e.g.,
ftp://10.20.31.171
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you don’t know your local ip address use ifconfig. And you can find how to troubleshoot if ifconfig is not working.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ipconfig
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  LAMP with phpmyadmin
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Steps to Setup LAMP
&lt;/h3&gt;

&lt;p&gt;LAMP stands for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Linux&lt;/li&gt;
&lt;li&gt;Apache&lt;/li&gt;
&lt;li&gt;MySQL&lt;/li&gt;
&lt;li&gt;PHP&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So we need to install all the services in our machine. Whereas Linux is already installed so we need to start from installing Apache.&lt;/p&gt;

&lt;h3&gt;
  
  
  Install Apache
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo yum update upgrade
sudo yum install httpd
sudo yum install httpd-tools
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To check the apache service:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo systemctl status httpd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Enable the service:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo systemctl start httpd
sudo systemctl enable httpd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add the service permission to the firewall so that firewall lets other users use the service from the network:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;All necessary packages will be installed once the script has finished running, and we can test it by entering the IP address of our web server (localhost).&lt;/p&gt;

&lt;p&gt;The basic site (the one we saw in the previous step) is activated by default on Apache. Its content is editable under /var/www/html.&lt;/p&gt;

&lt;h3&gt;
  
  
  Install MariaDB
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo yum install mariadb-server mariadb -y
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Enable mariadb:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo systemctl status mariadb
sudo systemctl start mariadb
sudo systemctl enable mariadb
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To configure mariadb run the following commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo mysql_secure_installation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You will be encountered with the following Configuration options:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Enter current password for root (enter for none):
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Press Enter&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Switch to unix_socket authentication [Y/n]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Press n&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Change the root password? [Y/n]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Press y&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;New password: 
Re-enter new password:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can give your own password like 12345678&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reminder&lt;/strong&gt; : You will need this password to login into your phpmyadmin login page&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Remove anonymous users? [Y/n]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Press y&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Disallow root login remotely? [Y/n]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Press y&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Remove test database and access to it? [Y/n]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Press n&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Remove test database and access to it? [Y/n]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Press n&lt;/p&gt;

&lt;p&gt;You will be completed with the configuration of mariadb by then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Cleaning up...

All done!  If you've completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Install PHP
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo yum install php -y
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To check whether php is working fine or not we need to create a small .php file and move it to /var/www/html and try to access it from web browser.&lt;/p&gt;

&lt;p&gt;To do that at first delete everything from our desired directory.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd /var/www/html
sudo rm * 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then we create and edit the file using nano.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo nano index.php
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And write the following lines into index.php file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;?php
     phpinfo();
?&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Save the file by ctrl+s and exit the file by ctrl+x.&lt;/p&gt;

&lt;p&gt;We need to restart the apache server again.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo systemctl restart httpd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now go to your web browser and search:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://localhost/index.php
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You should be able to see the basic php info page.&lt;/p&gt;

&lt;h3&gt;
  
  
  Install phpmyadmin
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo yum install phpmyadmin -y
sudo systemctl restart httpd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Go to &lt;a href="http://localhost/phpmyadmin" rel="noopener noreferrer"&gt;http://localhost/phpmyadmin&lt;/a&gt; &lt;br&gt;
&lt;strong&gt;N.B&lt;/strong&gt;: In the login page your username is root and password is the password that you gave during &lt;strong&gt;mysql_secure_installation&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  Web Server
&lt;/h2&gt;

&lt;p&gt;At first download wordpress&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo wget https://wordpress.org/latest.zip
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After download if you list the directory by &lt;strong&gt;ls&lt;/strong&gt; you will find latest.zip is there. Let’s unzip it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;unzip latest.zip
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then ls again, you’ll find wordpress directory. Get inside the directory.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd wordpress
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And you’ll find all the files are there. &lt;/p&gt;

&lt;p&gt;Copy all the files and directories into /var/www/html.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo cp * /var/www/html -r
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now Create a database for your wordpress installation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo mysql -u root -p
####Enter Password : &amp;lt;Provide the password you've set during the mysql_secure_installation&amp;gt;
create database wordpress; # wordpress is the database name here
show databases: # to find the already created databases
create user "admin"@"%" identified by "password"; # this is a important step as we need to provide a username and a password while installing wordpress
#Here admin is the useraname and password is the password and "@"%" along with username is a requirement to give while creating username
grant all privileges on wordpress.* to "admin"@"%"; 
#this line is for granting access to the database wordpress by user admin
exit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you are done with database, user and password creation.&lt;/p&gt;

&lt;p&gt;Then go to the browser and search for:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://localhost/wp-admin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;WordPress installation page will show up. Start with the installation process.&lt;/p&gt;

&lt;p&gt;If you face any dialog box that says that&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Unable to write to wp-config.php file.
You can create the wp-config.php file manually and paste the following text into it.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then copy the full text from the box. And go to terminal and type:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo cd /var/www/html
sudo nano wp-config.php
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and paste the whole text you copied and ctrl+s to save and ctrl+x to close the window.&lt;br&gt;
After the installation you can access your WordPress website from:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://localhost
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And also you can edit your website from:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://localhost/wp-admin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Cloud Server
&lt;/h2&gt;

&lt;p&gt;We will be using &lt;strong&gt;owncloud&lt;/strong&gt; to provide data access using web interface. It also provides options to sync and share data across devices. &lt;/p&gt;

&lt;p&gt;To enable cloud services we need to do the followings:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Step 1 - Setup LAMP&lt;/li&gt;
&lt;li&gt;Step 2 - Download ownCloud Archive&lt;/li&gt;
&lt;li&gt;Step 3 - Create MySQL Database and User&lt;/li&gt;
&lt;li&gt;Step 4 - Install ownCloud with Web Installer&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We are already done with Step - 1. So now we will start with step 2.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2 - Download ownCloud Archive
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd /var/www/html
sudo wget https://download.owncloud.com/server/stable/owncloud-complete-latest.zip
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then unzip the latest.zip file :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo unzip owncloud-complete-latest.zip
cd /var/www/html
sudo chown -R apache.apache owncloud
sudo chmod -R 755 owncloud
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Delete the .zip file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo rm owncloud-complete-latest.zip
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Create MySQL database and user
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mysql -u root -p
Enter Password:

create database owncloud;
grant all privileges on owncloud.* to "admin"@"%";
#as we have already created user admin with password "password"
exit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now let’s go to web browser and search:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://localhost/ownlcloud
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You might encounter an error like :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;This version of ownCloud is not compatible with PHP 8.0
You are currently running PHP 8.1.2.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That time, you need to downgrade your php. You need to go below php version 7.4.&lt;/p&gt;

&lt;p&gt;To do that:&lt;/p&gt;

&lt;h3&gt;
  
  
  Remove php from your system
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo yum remove php
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Add REMI Repository
&lt;/h3&gt;

&lt;p&gt;Run the command below to add REMI Repository to your system.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo yum -y install https://rpms.remirepo.net/fedora/remi-release-36.rpm
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Install PHP 7.4 on Fedora
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo dnf config-manager --set-enabled remi
sudo  dnf module reset php
sudo dnf module install php:remi-7.4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Confirm current php version is installed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php -v
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Restart the apache again:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo systemctl restart httpd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Go to the web browser and search:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://localhost/owncloud
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You might face a write error. To solve that,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo setenforce 0
sudo nano /etc/selinux/config
# change the SELINUX=enforcing to SELINUX=permissive
then reboot the pc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After reboot, go to your web browser again search for:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://localhost/owncloud
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Mail Server
&lt;/h2&gt;

&lt;p&gt;We will be using RoundCubeMail to set up our mail server. To do that:&lt;/p&gt;

&lt;p&gt;Download the latest tarball of roundcube mail, untar it and move it to the /var/www/html/. and also change the ownership.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#download roundcubemail from roundcubemail website
cd /home/mdrafsunsheikh/Downloads
tar zxvf roundcubemail-0.8.6.tar.gz
mv roundcubemail-0.8.6 /var/www/html/roundcubemail
chown -R apache:apache /var/www/html/roundcubemail
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Create a database for the roundcube mail&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mysql -u root -p
CREATE DATABASE roundcubemail;
GRANT ALL PRIVILEGES ON roundcubemail.* TO "admin"@"%";
exit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open the link in the browser:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://localhost/roundcubemail/installer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Press Next then Check login.&lt;/p&gt;

&lt;p&gt;Remove the installer directory.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rm -rf /var/www/html/roundcubemail/installer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Go to the link:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://localhost/roundcubemail
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You will get the roundcubemail login screen.&lt;/p&gt;

&lt;h3&gt;
  
  
  Install Mail Server using iRedMail in Ubuntu
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Install Ubuntu in your PC first.&lt;/strong&gt;&lt;br&gt;
Download iRedMail installation file from its official website.&lt;/p&gt;

&lt;p&gt;Go to your Downloads folder and extract the installed file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd Downloads
tar -xzvf iRedMail-1.6.2.tar.gz
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Go inside the extracted folder&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd iRedMail-1.6.2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Change the permission of the &lt;a href="http://iRedMail.sh" rel="noopener noreferrer"&gt;iRedMail.sh&lt;/a&gt; file to executable&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;chmod +x iRedMail.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;install the &lt;a href="http://iRedMail.sh" rel="noopener noreferrer"&gt;iRedMail.sh&lt;/a&gt; file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo ./iRedMail.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;provide your password.&lt;/p&gt;

&lt;p&gt;You will face an error like&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;&amp;lt; ERROR &amp;gt;&amp;gt; Please configure a fully qualified domain name (FQDN) in /etc/hosts before we go further.

Example:

127.0.0.1   mail.iredmail.org mail localhost
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We need to configure our domain name. Before that lets change our hostname to mail for better assimilation&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo hostname mail
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Lets go to /etc/hosts and set our domain name&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo nano /etc/hosts
#and change into following:
127.0.0.1       mail.service.xyz mail localhost
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then save the file with ctrl+s and exit with ctrl+x&lt;/p&gt;

&lt;p&gt;Again try to install the iRedMail.sh file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo ./iRedMail.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Follow the following configuration&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt; Question &amp;gt; Use it for mail server setting? [y|N]
#Give y ; 

1. Press enter to select Yes in Welcome and thanks for your use
2. In default mail storage path keep default and press "Enter"
3. In Preffered web server select "Nginx" and press "Enter"
4. In Choose preffered backend used to store mail accounts select "Mariadb" and press "Enter"
5. Set a password for MYSQL administrator : root
6. Input your domain name as service.xyz
7.  Set a password for the mail domain administrator
8. In optional components keep everything as such and press NEXT
9. Type 'y' and press "enter" to start the installation
10. Question &amp;gt; File : /etc/firewalld/zones/iredmail.xml, with SSHD ports : 22 [y/n] Press Y
11.  Restart firewall ? Press y
12. File &amp;gt; /etc/my.cnf. press Y
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Your installation will be finished and there will be some configuration check as :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;URLs of installed web applications:

- Roundcube webmail: https://mail.service.xyz/mail
- Netdata (monitor): https://mail.service.xyz/netdata

- Web admin panel (iRedmail): https://mail.service.xyz/iredmail

You can login to above links with below credentials:

-username: postmaster@service.xyz
- Password : &amp;lt;your given password&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You have to reboot your pc to enable all services&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;reboot
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Congratulations! You are done with installing mail server using iRedMail. Now you can go to your web browser and search the Roundcube webmail URL or Web Admin Panel URL. Happy Coding!&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;You have come to the end of the tutorial. Some of the steps are clumsy. In those cases you need to be cautious. Please read the prompt up writings in the bash. You will be clear when you read them carefully. You may face many errors, so try to follow the steps meticulously. Hopefully you can be able to install and configure all the services successfully.&lt;br&gt;
Please leave a comment if you face any problems. Thank you.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>analytics</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
