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.

  1. Open the terminal by pressing Ctrl+Alt+T on your keyboard.

  2. Update the package index by running the command:

    sudo apt update
    
  3. Install Apache by running the command:

    sudo apt install apache2
    
  4. 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
    
  5. 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.

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.

  1. Run the following command to install MySQL:

    sudo apt install mysql-server
    
  2. During installation, you will be prompted to set a password for the MySQL root user. Set a strong password and remember it.

  3. 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.

Step 3: Download Krayin

  1. Open a web browser and go to https://krayincrm.com/.

  2. Click on the "Download" button to download the Krayin ZIP file.

  3. Extract the downloaded ZIP file to the /var/www/html directory by running the following command:

    sudo unzip -d /var/www/html krayin.zip
    

Step 4: Configure Krayin

  1. 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
    
  2. Edit the config.inc.php file by running the following command:

    sudo nano /var/www/html/config.inc.php
    
  3. 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
    
  4. Save and exit the file by pressing Ctrl+X, Y, and then Enter.

Step 5: Set Permissions

  1. 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/
    
  2. Set the correct permissions for the config.inc.php file by running the following command:

    sudo chmod 777 /var/www/html/config.inc.php
    

Step 6: Restart Apache

  1. Restart the Apache web server by running the following command:

    sudo systemctl restart apache2
    

Step 7: Access Krayin

  1. Open a web browser and enter http://localhost/ or http://<Your-IP-Address>/ in the address bar.

  2. 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!