How to Install SuiteCRM on Debian Latest

SuiteCRM is a popular open-source Customer Relationship Management (CRM) software that comes with a wide range of features and functionalities. In this tutorial, we will show you how to install SuiteCRM on Debian Latest.

Prerequisites

Before we start, please make sure that you have the following prerequisites installed:

Step 1: Install Required PHP Extensions

To run SuiteCRM correctly, we need to install some required PHP extensions. To install them, run the following command:

sudo apt-get install php-curl php-gd php-intl php-mbstring php-soap php-xml php-xmlrpc php-zip

Step 2: Download and Install SuiteCRM

To download and install SuiteCRM on your Debian system, follow the steps below:

  1. Download the latest version of SuiteCRM using the following command.

    wget https://suitecrm.com/files/281/SuiteCRM-7.11/295/SuiteCRM-7.11.18.zip
    

    Note: Replace the above link with the latest version that suites your requirements.

  2. Once the download is complete, extract the downloaded file using the following command:

    unzip SuiteCRM-7.11.18.zip
    
  3. Copy the extracted folder to your webserver document root directory.

    sudo cp -r SuiteCRM /var/www/html/
    
  4. Set the correct permissions for the SuiteCRM files and directories using the following commands:

    sudo chown -R www-data:www-data /var/www/html/SuiteCRM
    sudo chmod -R 755 /var/www/html/SuiteCRM/
    

Step 3: Create a MySQL/MariaDB Database and User

Before we can connect SuiteCRM to our database system, we need to create a new database and a dedicated user with the necessary privileges.

To do that, open the MySQL/MariaDB shell and run the following commands:

mysql -u root -p
CREATE DATABASE suitecrm;
GRANT ALL PRIVILEGES ON suitecrm.* TO 'suitecrmuser'@'localhost' IDENTIFIED BY 'your_password';

Note: Replace "your_password" with a strong password that you want to use.

Step 4: Configure Apache/Nginx

First, let's create a new virtual host by creating a new file in the /etc/apache2/sites-available/ directory:

sudo nano /etc/apache2/sites-available/suitecrm.conf

And paste the configuration below:

<VirtualHost *:80>
    ServerAdmin admin@example.com
    DocumentRoot /var/www/html/SuiteCRM/
    ServerName example.com
    ServerAlias www.example.com
    <Directory /var/www/html/SuiteCRM/>
        Options FollowSymLinks
        AllowOverride All
    </Directory>
    ErrorLog /var/log/apache2/suitecrm-error_log
    CustomLog /var/log/apache2/suitecrm-access_log common
</VirtualHost>

Note: Replace example.com with your domain name.

Save the file and then enable the new virtual host:

sudo a2ensite suitecrm.conf

Finally, restart the Apache webserver using the following command:

sudo systemctl restart apache2

If you're using Nginx, you can create a new virtual host by following the same steps and then restarting Nginx using the following command:

sudo systemctl restart nginx

Step 5: Install SuiteCRM

Open your web browser and navigate to the following address: http://your_IP_address_or_domain_name/SuiteCRM/

You should see the SuiteCRM installation wizard. Follow the prompts to configure and install SuiteCRM.

Fill in the database details you created in step 3 when prompted.

Once the installation is complete, you can log in to your SuiteCRM by navigating to http://your_IP_address_or_domain_name/SuiteCRM/.

Congratulations! You have successfully installed SuiteCRM on your Debian Latest system.

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!