Update your system by running the following command:
sudo apt update && sudo apt upgrade
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
Download EspoCRM using the following command:
wget https://www.espocrm.com/downloads/EspoCRM-5.9.8.zip
Extract the files from the downloaded zip file using the following command:
unzip EspoCRM-5.9.8.zip -d /var/www/html/
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
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.
Enable the virtual host configuration using the following command:
sudo a2ensite espocrm.conf
Restart the Apache service using the following command:
sudo systemctl restart apache2
Configure MySQL for EspoCRM using the following command:
sudo mysql_secure_installation
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.
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.
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!