+44 (203) 695-03-80
« Back to List

Server Configuration for EspoCRM

EspoCRM can be installed on the Apache (instructions), Nginx (instructions), or IIS server with support PHP version 5.5 or greater and MySQL version 5.1 or greater.

Configuration Recommendations

PHP Requirements

EspoCRM requires PHP 5.5 or greater, with the following extensions enabled:

  • PDO – to access MySQL in PHP;
  • JSON – resources use this format (metadata, layout, languages, and others);
  • GD – to manipulate images;
  • Mcrypt – to ensure the highest protection.
  • Zip – to be able to upgrade EspoCRM and install extensions.
  • IMAP – to use mailboxes in EspoCRM.
  • Other necessary libraries: mbstring, cURL.

php.ini:

max_execution_time = 180
max_input_time = 180
memory_limit = 256M
post_max_size = 50M
upload_max_filesize = 50M

MySQL Requirements

EspoCRM supports MySQL version 5.1 or greater. These are no special peculiarities. All default settings are good for EspoCRM.

Required Permissions for Unix-based Systems

The files and directories should have the following permissions:

  • /data, /custom, /client/custom – should be writable all files, directories and subdirectories (664 for files, 775 for directories, including all subdirectories and files);
  • /application/Espo/Modules, /client/modules – should be writable the current directory (775 for the current directory, 644 for files, 755 for directories and subdirectories);
  • All other files and directories should be readable (644 for files, 755 for directories).

To set the permissions, execute these commands in the terminal:

cd <PATH-TO-ESPOCRM-DIRECTORY>
find . -type d -exec chmod 755 {} + && find . -type f -exec chmod 644 {} +;
find data custom -type d -exec chmod 775 {} + && find data custom -type f -exec chmod 664 {} +;

All files should be owned and group-owned by the webserver process. It can be “www”, “www-data”, “apache”, etc. Note: On shared hosts, files should be owned and group-owned by your user account.

To set the owner and group-owner, execute these commands in the terminal:

cd <PATH-TO-ESPOCRM-DIRECTORY>
chown -R <OWNER>:<GROUP-OWNER> .;

Setup a crontab

To setup a crontab on a UNIX system, take the following steps:

  • 1. Login as administrator into your EspoCRM instance.
  • 2. Go to the Scheduled Jobs section in the administrator panel (Menu > Administration > Scheduled Jobs) and copy the string for the crontab. It looks like this one:
    * * * * * /usr/bin/php -f /var/www/html/espocrm/cron.php > /dev/null 2>&1
  • 3. Open a terminal and run this command:
    crontab -e -u WEBSERVER_USER

    WEBSERVER_USER can be one of the following “www”, “www-data”, “apache”, etc (depends on your webserver).

  • 4. Paste the copied string (from step 2) and save the crontab file (Ctrl+O, then Ctrl+X for nano editor).

Configuration instructions based on your server: