How to install Espo crm V5.1.2 on Linuxmint-18.03

To install Espo CRM V5.1.2 on Linuxmint-18.03


EspoCRM is a free and open source web-based customer relationship management application. It is written in PHP and uses the MySQL database server to store its data. It is responsive, has an easy to use web interface and comes in many languages. It can be used in various industries like retails, e-commerce, banking, call centers etc.


Pre-requirements


Install LAMP (Apache, php7.2, mariadb-server)
In MariaDB (create database, user and give privileges to the user)


For PHP INSTALLATION

add-apt-repository ppa:ondrej/php 
apt-get update 
apt install php7.2 libapache2-mod-php7.2 php7.2-common php7.2-mbstring php7.2-xmlrpc php7.2-soap php7.2-gd php7.2-xml php7.2-intl php7.2-mysql php7.2-cli php7.2-mcrypt php7.2-ldap php7.2-zip php7.2-curl

Download the Espocrm package from the browser

linuxhelp ~ # wget https://www.espocrm.com/downloads/EspoCRM-5.1.2.zip
--2018-05-22 15:42:47--  https://www.espocrm.com/downloads/EspoCRM-5.1.2.zip
Resolving www.espocrm.com (www.espocrm.com)... 159.203.138.21
Connecting to www.espocrm.com (www.espocrm.com)|159.203.138.21|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 40284862 (38M) [application/zip]
Saving to: ‘;EspoCRM-5.1.2.zip’;

EspoCRM-5.1.2.zip        100%[=================================>]  38.42M   730KB/s    in 4m 50s  

2018-05-22 15:47:42 (136 KB/s) - ‘;EspoCRM-5.1.2.zip’; saved [40284862/40284862]

Extract the download directory

linuxhelp ~ # unzip EspoCRM-5.1.2.zip 
Archive:  EspoCRM-5.1.2.zip
   creating: EspoCRM-5.1.2/
  inflating: EspoCRM-5.1.2/web.config  
  inflating: EspoCRM-5.1.2/upgrade.php  
  inflating: EspoCRM-5.1.2/rebuild.php  
  inflating: EspoCRM-5.1.2/index.php  
  inflating: EspoCRM-5.1.2/extension.php  
  inflating: EspoCRM-5.1.2/cron.php  
  inflating: EspoCRM-5.1.2/clear_cache.php  
.
.
.
  creating: EspoCRM-5.1.2/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DggContainer/BstoreContainer/BSE/
  inflating: EspoCRM-5.1.2/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DggContainer/BstoreContainer/BSE/Blip.php  
   creating: EspoCRM-5.1.2/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE/
  inflating: EspoCRM-5.1.2/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE/Blip.php  
   creating: EspoCRM-5.1.2/client/modules/crm/res/templates/opportunity/admin/field-manager/fields/probability-map/
  inflating: EspoCRM-5.1.2/client/modules/crm/res/templates/opportunity/admin/field-manager/fields/probability-map/edit.tpl  

Rename the download directory

linuxhelp ~ # ls
EspoCRM-5.1.2  EspoCRM-5.1.2.zip
linuxhelp ~ # mv EspoCRM-5.1.2 espocrm

Move the Espo CRM directory into the /var/www/html directory

linuxhelp ~ # mv espocrm /var/www/html/
Go to /var/www/html directory
linuxhelp ~ # cd /var/www/html/
linuxhelp html # ls
espocrm  index.html

Change ownership and permission for the Espo CRM directory

linuxhelp html # chown -R www-data:www-data espocrm/
linuxhelp html # chmod -R 775 espocrm/

Configure the virtual host for Espo CRM. Create an empty file named  espo.conf

linuxhelp html # cd /etc/apache2/sites-available/
linuxhelp sites-available # vim espo.conf
<virtualhost *:80>
servername  www.linuxhelp1.com
Documentroot  /var/www/html/espocrm
<Directory /var/www/html/espocrm>
AllowOverride all
order allow,deny
allow from all
</Directory>
</virtualhost>

Enable the espo.conf file

linuxhelp sites-available # a2ensite espo.conf
Enabling site espo.
To activate the new configuration, you need to run
service apache2 reload

Make an entry to the hosts file as follows

linuxhelp sites-available # vim /etc/hosts
<give your ip>    <give your domain name> 

Restart  apache web server

linuxhelp sites-available # systemctl restart apache2.service 

Open the browser, Enter the local IP or domain name  

Choose the Language and continue

Accept the License terms and continue

Configure the Database Connection setup

Verify the System Requirements and start the installation

Configure the admin account setup

Configure the system settings

Configure the SMTP settings 

After the installation, you will see the following page

Log in using the admin credentials 

After the successful login, you will see the admin dashboard as shown below 

with this, the method to install Espo CRM V5.1.2 on Linuxmint-18.03 comes to an end.

FAQ
Q
How can I Configure the virtual host for Espo CRM?
A
Execute the below command:
# vim espo.conf
Q
How to enable the repo conf file?
A
# a2ensite espo.conf
Q
How do I extract the downloaded package?
A
Run the following command:
# unzip EspoCRM-5.1.2.zip
Q
How can I get the Espo crm V5.1.2 package on Linuxmint?
A
Use the following link:
# wget https://www.espocrm.com/downloads/EspoCRM-5.1.2.zip
Q
What are all the Pre-requirements of Espo crm V5.1.2 on Linuxmint?
A
The Pre-requirements are,
Install LAMP (Apache, php7.2, mariadb-server)
In MariaDB (create database, user and give privileges to the user)