Krayin is a CRM software for businesses that provides features such as customer management, sales management, and reporting. In this tutorial, we will guide you on how to install Krayin on your Elementary OS Latest operating system.
Before installing Krayin, you need to install Apache and PHP on your system. Follow the below steps to install Apache and PHP.
Open the terminal by pressing Ctrl+Alt+T
on your keyboard.
Update the package index by running the command:
sudo apt update
Install Apache by running the command:
sudo apt install apache2
Install PHP and its required extensions by running the command:
sudo apt install php libapache2-mod-php php-mysql php-curl php-json php-gd php-cli php-xml php-zip
Verify the Apache installation by opening a web browser and entering http://localhost
in the address bar. You should see the "Apache2 Ubuntu Default Page" displayed.
Krayin requires a database to store its data. We will use MySQL as our database. Follow the below steps to install MySQL.
Run the following command to install MySQL:
sudo apt install mysql-server
During installation, you will be prompted to set a password for the MySQL root user. Set a strong password and remember it.
After installation, run the following command to secure your MySQL installation:
sudo mysql_secure_installation
Follow the on-screen prompts to secure your MySQL installation.
Open a web browser and go to https://krayincrm.com/.
Click on the "Download" button to download the Krayin ZIP file.
Extract the downloaded ZIP file to the /var/www/html
directory by running the following command:
sudo unzip -d /var/www/html krayin.zip
Rename the config.inc.sample.php
file to config.inc.php
by running the following command:
sudo mv /var/www/html/config.inc.sample.php /var/www/html/config.inc.php
Edit the config.inc.php
file by running the following command:
sudo nano /var/www/html/config.inc.php
Set the database details under the Database Settings
section.
define('DB_USER', 'root'); //Replace root with your MySQL username
define('DB_PASSWORD', 'password'); //Replace password with your MySQL password
define('DB_NAME', 'krayin'); //The name of the database you created for Krayin
Save and exit the file by pressing Ctrl+X
, Y
, and then Enter
.
Change the ownership of the /var/www/html
directory to the Apache user by running the following command:
sudo chown -R www-data:www-data /var/www/html/
Set the correct permissions for the config.inc.php
file by running the following command:
sudo chmod 777 /var/www/html/config.inc.php
Restart the Apache web server by running the following command:
sudo systemctl restart apache2
Open a web browser and enter http://localhost/
or http://<Your-IP-Address>/
in the address bar.
You should see the Krayin login page. Enter the default username and password to log in:
Username: admin
Password: admin
Congratulations! You have successfully installed Krayin on your Elementary OS Latest system. You can now customize it and use it for your business needs.
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!