Krayin CRM
Krayin adalah CRM (Customer Relationship Management) berbasis open source yang dikembangkan dengan framework Laravel. Krayin dirancang untuk membantu bisnis mengelola hubungan pelanggan secara efektif dengan fitur seperti manajemen kontak, penjadwalan aktivitas, pelacakan penjualan, serta analisis data pelanggan. Dengan antarmuka yang modern dan modular, Krayin mudah disesuaikan untuk kebutuhan bisnis yang beragam. Versi terbaru (2.0) mencakup peningkatan performa, fitur baru, dan fleksibilitas integrasi yang lebih baik.
1. Persyaratan Sistem
System requirements untuk menjalankan Krayin 2.0:
- Web server Apache atau Nginx
- RAM 3GB
- PHP 8.2+
- MySQL 5.7+ atau MariaDB 10.2+
- Composer 2.5+
Sebelum memulai deploy, siapkan:
- VPS atau server dengan OS Ubuntu 24.04
- Akses SSH ke server
- Domain yang sudah diarahkan ke server
2. Persiapan Server
Update sistem
sudo apt update
sudo apt upgrade -y
Install Apache
sudo apt install apache2 -y
Install MariaDB
sudo apt install mariadb-server -y
Tambah repository PPA ondrej/php
sudo add-apt-repository ppa:ondrej/php -y
sudo apt upgrade -y
Install PHP 8.2 dan extension yang dibutuhkan
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. Buat Database
Login ke MariaDB
sudo mysql
Buat database dan user
CREATE DATABASE krayin;
CREATE USER 'krayin'@'localhost' IDENTIFIED BY 'rahasia';
GRANT ALL PRIVILEGES ON krayin.* TO 'krayin'@'localhost';
FLUSH PRIVILEGES;
exit
4. Konfigurasi Apache
Buat konfigurasi virtual host untuk crm.contoh.com
sudo nano /etc/apache2/sites-available/crm.contoh.com.conf
Masukkan konfigurasinya
<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>
Aktifkan modul rewrite
, virtual host, dan restart apache2
sudo a2enmod rewrite
sudo a2ensite crm.contoh.com
sudo systemctl restart apache2
Install certbot untuk Apache
sudo apt install certbot python3-certbot-apache -y
Request sertifikat SSL
sudo certbot --non-interactive \
-m [email protected] \
--agree-tos \
--no-eff-email \
--apache -d crm.contoh.com \
--redirect
5. Install Krayin
Buat proyek Krayin dengan composer
composer create-project krayin/laravel-crm crm.contoh.com
Install Krayin CRM
cd crm.contoh.com
php artisan krayin-crm:install
Prompt instalasi Krayin CRM
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
tekan 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
Pesan yang ditampilkan setelah instalasi Krayin CRM selesai
-----------------------------
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 :)
Buka file .env
nano .env
Atur konfigurasi berikut
APP_ENV=production
APP_DEBUG=false
APP_TIMEZONE=Asia/Jakarta
Pindahkan direktori Krayin CRM ke /var/www
sudo mv ../crm.contoh.com /var/www
Ubah user-group direktori
cd /var/www
sudo chown -R www-data:www-data crm.contoh.com
Akses https://crm.contoh.com
, Krayin CRM siap digunakan.