How to install EspoCRM on Linux Mint Latest
Step 1: Update your system
Update your system by running the following command:
sudo apt update && sudo apt upgrade
Step 2: Install necessary dependencies
EspoCRM requires some dependencies to be installed. Install them by running the following command:
sudo apt install -y apache2 mysql-server php7.4 php7.4-curl php7.4-gd php7.4-intl php7.4-json php7.4-mbstring php7.4-mysql php7.4-zip libapache2-mod-php7.4 unzip git curl
Step 3: Download EspoCRM
Download EspoCRM using the following command:
wget https://www.espocrm.com/downloads/EspoCRM-5.9.8.zip
Step 4: Extract the files
Extract the files from the downloaded zip file using the following command:
unzip EspoCRM-5.9.8.zip -d /var/www/html/
Step 5: Set correct file permissions
Set correct file permissions on the EspoCRM directory using the following command:
sudo chown -R www-data:www-data /var/www/html/EspoCRM && sudo chmod -R 755 /var/www/html/EspoCRM
Step 6: Create a virtual host configuration
Create a virtual host configuration file for EspoCRM by running the following command:
sudo nano /etc/apache2/sites-available/espocrm.conf
Add the following lines to the file:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/EspoCRM/
ServerName yourdomainname.com
<Directory /var/www/html/EspoCRM/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/espocrm_error.log
CustomLog ${APACHE_LOG_DIR}/espocrm_access.log combined
</VirtualHost>
Save and close the file.
Step 7: Enable the virtual host configuration
Enable the virtual host configuration using the following command:
sudo a2ensite espocrm.conf
Step 8: Restart Apache service
Restart the Apache service using the following command:
sudo systemctl restart apache2
Step 9: Configure MySQL for EspoCRM
Configure MySQL for EspoCRM using the following command:
sudo mysql_secure_installation
Step 10: Create a MySQL database for EspoCRM
Create a MySQL database for EspoCRM by running the following command:
sudo mysql -u root -p -e "CREATE DATABASE espocrm_db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; GRANT ALL ON espocrm_db.* TO 'espocrm_user'@'localhost' IDENTIFIED BY 'YOUR_PASSWORD'; FLUSH PRIVILEGES; EXIT;"
Replace "YOUR_PASSWORD" with a secure password of your choice.
Step 11: Setup EspoCRM
Open your browser and go to "http://yourdomainname.com". Follow the installation wizard to complete the installation of EspoCRM.
That's it! You have successfully installed EspoCRM on Linux Mint Latest.