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.
Before starting with the installation process, make sure that you have the following prerequisites installed on your system:
Log in to your Fedora server and update the system packages to their latest versions:
sudo dnf update
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
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
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.
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.
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
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.
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.
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!