How to Install Krayin CRM on Fedora Server Latest?

Krayin CRM is an open-source PHP-based customer relationship management (CRM) system. In this tutorial, we will guide you through the installation of Krayin CRM on a Fedora Server Latest operating system.

Prerequisites

Before starting with the installation process, make sure that you have the following prerequisites installed on your system:

Step 1: Update the System

Log in to your Fedora server and update the system packages to their latest versions:

sudo dnf update

Step 2: Install Apache, MySQL/MariaDB, and PHP

To install the Apache web server, MySQL/MariaDB database server, and PHP on your Fedora server, run the following command:

sudo dnf install httpd mariadb-server mariadb php php-mysqlnd php-gd php-json php-mbstring php-xml php-zip

Step 3: Configure the Apache Web Server

Once Apache is installed, open the main configuration file using your favorite text editor:

sudo vim /etc/httpd/conf/httpd.conf

Uncomment the following line to activate the rewrite module:

LoadModule rewrite_module modules/mod_rewrite.so

Save and exit the file. Then, start the Apache service and enable it to start at boot time:

sudo systemctl start httpd
sudo systemctl enable httpd

Step 4: Configure the MySQL/MariaDB Database Server

Start the MariaDB service and enable it to start at boot time:

sudo systemctl start mariadb
sudo systemctl enable mariadb

Once the MariaDB service is started, run the following command to set up the root user password and secure the database server:

sudo mysql_secure_installation

Follow the on-screen prompts to set up a secure root password, remove anonymous users, disallow root login remotely, and remove test databases and access to them.

Step 5: Create a Database for Krayin CRM

Log in to the MySQL/MariaDB server using the root user credentials:

sudo mysql -u root -p

Create a new user and database for Krayin CRM:

CREATE DATABASE krayin;
CREATE USER 'krayin_user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON krayin.* TO 'krayin_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Replace password with your desired password.

Step 6: Download and Install Krayin CRM

Download the latest version of Krayin CRM from the project's official website:

wget https://krayincrm.com/downloads/krayin.zip

Unzip the downloaded file:

unzip krayin.zip

Move the unzipped Krayin CRM directory to the Apache webroot directory:

sudo mv krayin /var/www/html/

Set the appropriate ownership and permissions for the Krayin CRM directory:

sudo chown -R apache:apache /var/www/html/krayin
sudo chmod -R 755 /var/www/html/krayin

Step 7: Configure Krayin CRM

Create a new .env file in the Krayin CRM directory and set the appropriate configuration variables for your environment:

cd /var/www/html/krayin
cp .env.example .env
vim .env

Update the following variables:

APP_URL=http://localhost/krayin

DB_DATABASE=krayin
DB_USERNAME=krayin_user
DB_PASSWORD=password

Save and exit the file.

Step 8: Run the Krayin CRM Installer

Navigate to the Krayin CRM directory and run the installer script:

cd /var/www/html/krayin
php artisan krayin:install

Follow the on-screen prompts to select your language, set your administrator account details, and configure your email settings.

Step 9: Access Krayin CRM

Once the installation process finishes, access the Krayin CRM web interface using your preferred web browser using the URL http://localhost/krayin.

Log in with the administrator account credentials you set up during the installation process.

Congratulations! You have successfully installed Krayin CRM on your Fedora server.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!