How to Install Krayin on Elementary OS Latest
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.
Step 1: Install Apache and PHP
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+Ton your keyboard.Update the package index by running the command:
sudo apt updateInstall Apache by running the command:
sudo apt install apache2Install 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-zipVerify the Apache installation by opening a web browser and entering
http://localhostin the address bar. You should see the "Apache2 Ubuntu Default Page" displayed.
Step 2: Install MySQL
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-serverDuring 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_installationFollow the on-screen prompts to secure your MySQL installation.
Step 3: Download Krayin
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/htmldirectory by running the following command:sudo unzip -d /var/www/html krayin.zip
Step 4: Configure Krayin
Rename the
config.inc.sample.phpfile toconfig.inc.phpby running the following command:sudo mv /var/www/html/config.inc.sample.php /var/www/html/config.inc.phpEdit the
config.inc.phpfile by running the following command:sudo nano /var/www/html/config.inc.phpSet the database details under the
Database Settingssection.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 KrayinSave and exit the file by pressing
Ctrl+X,Y, and thenEnter.
Step 5: Set Permissions
Change the ownership of the
/var/www/htmldirectory 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.phpfile by running the following command:sudo chmod 777 /var/www/html/config.inc.php
Step 6: Restart Apache
Restart the Apache web server by running the following command:
sudo systemctl restart apache2
Step 7: Access Krayin
Open a web browser and enter
http://localhost/orhttp://<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.