Krayin CRM
Krayin is an open-source CRM (Customer Relationship Management) developed using the Laravel framework. Krayin is designed to help businesses manage customer relationships effectively with features such as contact management, activity scheduling, sales tracking, and customer data analysis. With a modern and modular interface, Krayin is easily customizable for various business needs. The latest version (2.0) includes performance improvements, new features, and better integration flexibility.
1. System Requirements
System requirements for running Krayin 2.0:
- Web server Apache or Nginx
- 3GB RAM
- PHP 8.2+
- MySQL 5.7+ or MariaDB 10.2+
- Composer 2.5+
Before starting deployment, prepare:
- VPS or server with Ubuntu 24.04 OS
- SSH access to the server
- A domain already pointed to the server
2. Server Preparation
Update the system
sudo apt update
sudo apt upgrade -y
Install Apache
sudo apt install apache2 -y
Install MariaDB
sudo apt install mariadb-server -y
Add the PPA ondrej/php repository
sudo add-apt-repository ppa:ondrej/php -y
sudo apt upgrade -y
Install PHP 8.2 and required extensions
sudo apt install libapache2-mod-php8.2 php8.2 php8.2-cli php8.2-common \
php8.2-apcu php8.2-mbstring php8.2-gd php8.2-intl \
php8.2-xml php8.2-soap php8.2-bcmath php8.2-mysql php8.2-zip \
php8.2-curl php8.2-tidy php8.2-imagick php8.2-sqlite3 -y
Install Composer
sudo wget https://getcomposer.org/download/latest-stable/composer.phar -O /usr/local/bin/composer
sudo chmod +x /usr/local/bin/composer
3. Create Database
Log in to MariaDB
sudo mysql
Create database and user
CREATE DATABASE krayin;
CREATE USER 'krayin'@'localhost' IDENTIFIED BY 'rahasia';
GRANT ALL PRIVILEGES ON krayin.* TO 'krayin'@'localhost';
FLUSH PRIVILEGES;
exit
4. Apache Configuration
Create a virtual host configuration for crm.contoh.com
sudo nano /etc/apache2/sites-available/crm.contoh.com.conf
Enter the configuration
<VirtualHost *:80>
ServerName crm.contoh.com
DocumentRoot /var/www/crm.contoh.com/public
<Directory /var/www/crm.contoh.com/public>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/log/apache2/crm.contoh.com_error.log
CustomLog /var/log/apache2/crm.contoh.com_access.log combined
</VirtualHost>
Enable the rewrite
module, virtual host, and restart apache2
sudo a2enmod rewrite
sudo a2ensite crm.contoh.com
sudo systemctl restart apache2
Install certbot for Apache
sudo apt install certbot python3-certbot-apache -y
Request SSL certificate
sudo certbot --non-interactive \
-m [email protected] \
--agree-tos \
--no-eff-email \
--apache -d crm.contoh.com \
--redirect
5. Install Krayin
Create a Krayin project with composer
composer create-project krayin/laravel-crm crm.contoh.com
Install Krayin CRM
cd crm.contoh.com
php artisan krayin-crm:install
Krayin CRM Installation Prompt
Please enter the application name
Krayin CRM
Please enter the application URL
https://crm.contoh.com
Please select the default application locale
English
Please select the default currency
Indonesian Rupiah
Please select the database connection
mysql
Please enter the database host
127.0.0.1
Please enter the database port
3306
Please enter the database name
krayin
Please enter the database prefix
Press ENTER
Please enter your database username
krayin
Please enter your database password
rahasia
Enter the name of the admin user
admin
Enter the email address of the admin user
[email protected]
Configure the password for the admin user
admin123
Message displayed after Krayin CRM installation is complete
-----------------------------
Congratulations!
The installation has been finished and you can now use Krayin.
Go to http://localhost/admin/dashboard and authenticate with:
Email: [email protected]
Password: admin123
Cheers!
_ __ _
| | / / (_)
| |/ / _ __ __ _ _ _ _ _ __
| \| '__/ _` | | | | | '_ \
| |\ \ | | (_| | |_| | | | | |
\_| \_/_| \__,_|\__, |_|_| |_|
__/ |
|___/
Welcome to the Krayin project! Krayin Community is an open-source CRM solution
which is built on top of Laravel and Vue.js.
Made with 💖 by the Krayin Team. Happy helping :)
Open the .env
file
nano .env
Set the following configuration
APP_ENV=production
APP_DEBUG=false
APP_TIMEZONE=Asia/Jakarta
Move the Krayin CRM directory to /var/www
sudo mv ../crm.contoh.com /var/www
Change the directory’s user-group
cd /var/www
sudo chown -R www-data:www-data crm.contoh.com
Access https://crm.contoh.com
, Krayin CRM is ready to use.