YetiForce requirements

Introduction
YetiForce CRM requires a proper web server configuration. It is a key element for the process of installation as well as for the system to be stable. Most professional web servers meet the requirements presented below. However, in case your server does not meet all the requirements, ask your administrator to adjust the configuration and send him a link to this article. If your administrator cannot change the configuration, it might be time to consider upgrading your server.
Core server software (LAMP/LEMP)
Operating system – Debian, Ubuntu, RedHat, Mint – Our system primarily supports Linux distributions and functions well on Windows servers. However, we do not recommend running it on standard Windows operating systems due to limitations in web application optimization.
Serwer WWW
Nginx 1.23 (recommended) – works on earlier versions as well, however, the latest stable versions are recommended. You can also use alternative software as long as it is compatible.
Apache 2.4 – works on earlier versions as well (2.1, 2.2, 2.3), however, the latest stable versions are recommended. You can also use alternative software as long as it is compatible.
Databases
MariaDB 10.6 (recommended) – we recommend the latest stable versions. We don’t recommend versions older than 10.1.
MySQL 5.7, 8.0 – earlier version (5.6) works as well, the latest stable versions are recommended. You can also use alternative software as long as it is compatible.
PHP 7.4 (recommended), 8.0, 8.1 (tests pending). The latest stable versions are recommended (eg. 7.4.x).
Database engine requirements (MariaDB/MySQL)
Configuration files eg. /etc/my.cnf, /etc/mysql/my.cnf, /etc/mysql/conf.d/, my.ini
SQL_MODE should not contain STRICT_TRANS_TABLE i ONLY_FULL_GROUP_BY
ENGINE = InnoDB should be available and enabled by default (disable –skip-innodb)
[client]
default-character-set = utf8[mysql]
default-character-set = utf8[mysqld]
default_storage_engine = InnoDB
default-character-set = utf8
character-set-server = utf8
collation-server = utf8_general_ci
init-connect = ‘SET NAMES utf8’
sql-mode = ”
#sql-mode = “ONLY_FULL_GROUP_BY,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION”
wait_timeout = 600
connect_timeout = 600
net_read_timeout = 600
net_write_timeout = 600
interactive_timeout = 600
max_allowed_packet = 128M
query_cache_size = 128M
innodb_default_row_format = ‘dynamic’
innodb_lock_wait_timeout = 600
innodb_large_prefix = ON
innodb_file_per_table = ON
innodb_ft_min_token_size = 2
innodb_stats_on_metadata = OFF
innodb_open_files = 1000
innodb_io_capacity = 1000
ft_min_word_len = 2
table_open_cache = 1000
table_definition_cache = 1400
bulk_insert_buffer_size = 16Msort_buffer_size = 4M
read_buffer_size = 2M
read_rnd_buffer_size = 1M
join_buffer_size = 16M
max_connections = 100
innodb_flush_method = O_DIRECT
PHP requirements
Configuration files np. /etc/php/8.0/fpm/php.ini, /etc/php/8.0/cli/php.ini
allow_url_fopen = “On”
allow_url_include = “Off”
auto_detect_line_endings = “On”
default_charset = “UTF-8”
default_socket_timeout = 600
disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,shell_exec,exec,system,passthru,popen
display_errors = Off
display_startup_errors = Off
error_log = /var/log/php_error.log
error_reporting = E_ALL & ~E_NOTICE
expose_php = “Off”
file_uploads = “On”
html_errors = “On”
log_errors = “On”
max_execution_time = 600
max_input_time = 600
max_input_vars = 10000
mbstring.func_overload = 0
memory_limit = 1024M
mysqlnd.collect_memory_statistics = “Off”
mysqlnd.collect_statistics = “Off”
opcache.enable = “On”
opcache.enable_cli = “On”
opcache.fast_shutdown = 1
opcache.file_update_protection = 0
opcache.interned_strings_buffer = 100
opcache.max_accelerated_files = 40000
opcache.memory_consumption = 256
opcache.revalidate_freq = 0
opcache.save_comments = 0
opcache.validate_timestamps = 1
openssl.cafile=/etc/ssl/certs/ca-certificates.crt
openssl.capath=/etc/ssl/certs/
output_buffering = “On”
post_max_size = 100M
realpath_cache_size = 4096k
realpath_cache_ttl = 600
request_order = “GP”
session.auto_start = “Off”
session.cookie_httponly = “On”
session.gc_divisor = 500
session.gc_maxlifetime = 1440
session.gc_probability = 1
session.name = “YTSID”
session.use_only_cookies = “On”
session.use_strict_mode = “On”
session.use_trans_sid = “Off”
short_open_tag = “On”
upload_max_filesize = 100M
user_ini.filename =
variables_order = “GPCS”
zlib.output_compression = “Off”
External library configuration
Mandatory
- imap
- PDO
- pdo_mysql
- mysqlnd (MySQL Native Driver)
- openssl
- curl
- gd
- pcre
- xml
- json
- session
- dom
- zip
- mbstring
- soap
- fileinfo
- iconv
- intl
- SPL
- Reflection
- SimpleXML
- bcmath
- filter
- ctype
- hash
Optional
- exif – Library recommended for increasing security, allows you to work with image metadata
- ldap – Library required if LDAP/AD login is active
- OPcache – Improves PHP performance by storing compiled bytecode in shared memory
- apcu – Library that improves system efficiency, recommended when a large number of users is using the system or the system is under heavy load
- imagick – Library recommended for increasing security, it secures and verifies potentially dangerous image files
- pdo_sqlsrv – Library required if integration with Wapro ERP or Comarch is active
Forbidden
- uopz – Causes the system to freeze
FPM
php_admin_value[error_log] = /var/log/php_fpm_errors.log
clear_env = no
request_terminate_timeout = 600
pm.process_idle_timeout = 600s;
pm.max_requests = 5000
catch_workers_output = yes
Webserver
Apache: https://github.com/YetiForceCompany/YetiForceCRM/blob/stable/tests/setup/apache/.htaccess
Nginx: https://github.com/YetiForceCompany/YetiForceCRM/blob/stable/tests/setup/nginx
HTTPS & HTTP2 encryption
We recommend encrypting the connection to the server where the system is located. If the connection to the server is not established via HTTPS, the communication can be intercepted or altered by third parties.
Permissions to folders and files
Permissions to folders and files are often the most common source of problems for people who install an application on VPS and dedicated servers. There should be the same owner for all application files and folders.
We recommend the following configuration:
- files
644(rw-r–r–) - folders
755(rwxr-xr-x)
The configuration should allow the uploaded files to have full read and write access at the browser level, without changing the file and folder permissions. It is necessary to remember that when the application is running, it also performs various operations such as reading and writing, as well as creating and deleting files. If you don’t know how to configure the permissions, ask your administrator to do it and send them a link to this article.
- Configuration directory
config/ - Application data directory
app_data/ - User privileges directory
user_privileges/ - Tabdata File
user_privileges/tabdata.php - Menu file
user_privileges/menu_0.php - User privileges file
user_privileges/user_privileges_1.php - Cache Directory
cache/ - Address book directory
cache/addressBook/ - Image Cache Directory
cache/images/ - Import Cache Directory
cache/import/ - Logs directory
cache/logs/ - Session directory
cache/session/ - Cache templates directory
cache/templates_c/ - Cache upload directory
cache/upload/ - Vtlib test directory
cache/vtlib/ - Vtlib Test HTML Directory
cache/vtlib/HTML/ - Cron modules directory
cron/modules/ - Modules Directory
modules/ - Storage Directory
storage/ - Product Image Directory
storage/products/ - User Image Directory
storage/users/ - Contact Image Directory
storage/contacts/ - MailView attachments directory
storage/OSSMailView/ - Logo Directory
public_html/layouts/resources/Logo/ - E-mail client
public_html/modules/OSSMail/ - Third party libraries
public_html/libraries/
End user requirements
- OS – any OS that supports a web browser
- Display: 1280 × 800 (recommended)
- Browser compatible with
ES5(ECMAScript 5), and from YetiForce version 6.3 onES6(ECMAScript 6)
Supported browsers
Users should always have the latest version of any browsers they use because only the most recent versions support the newest web technologies. Below is a list of browsers, starting from the one that is the most recommended for YetiForce (Google Chrome) to the least recommended.
- Google Chrome, Microsoft Edge
- Firefox
- Opera, Brave, Vivaldi
- Apple Safari
- Internet Explorer
- Other
Additional configuration using .htaccess
Some servers allow changing the configuration via the .htaccess file. We present some of the examples below.
Apache module
php_flag log_errors On
php_flag display_errors Off
php_value error_log cache/logs/phpError.log
php_value memory_limit 512M
php_flag output_buffering On
php_flag zlib.output_compression Off
php_flag file_uploads On
php_value upload_max_filesize 100M
php_value post_max_size 50M
## FastCGI module
FcgidIOTimeout 600
FcgidConnectTimeout 600
FcgidBusyTimeout 600
FcgidIdleTimeout 600
IdleTimeout 600
ProcessLifeTime 600
IPCConnectTimeout 600
IPCCommTimeout 600
BusyTimeout 600
Additional configuration using user.ini
You can also quickly change the PHP configuration by creating a user.ini file in the main directory $_SERVER['DOCUMENT_ROOT'], right now it supports CGI/FastCGI. However, be careful because not all parameters can be configured this way (https://www.php.net/manual/en/configuration.changes.modes.php).
More information: https://secure.php.net/manual/en/configuration.file.per-user.php
Requirements for system update
MariaDB/MySQL
connect_timeout = 3600
connect_timeout = 3600
net_read_timeout = 3600
net_write_timeout = 3600
wait_timeout = 3600
wait_timeout = 3600
innodb_lock_wait_timeout = 3600
PHP
max_execution_time = 3600
max_input_time = 3600
default_socket_timeout = 3600
PHP FPM
pm.process_idle_timeout = 3600s
request_terminate_timeout = 3600
NGINX
server {
…
client_body_timeout 3600;
send_timeout 3600;location ~ \.php$ {
…
fastcgi_send_timeout 3600;
fastcgi_read_timeout 3600;
keepalive_timeout 3600;
proxy_connect_timeout 3600;
proxy_send_timeout 3600;
proxy_read_timeout 3600;
}
location ~ ^(.+\.php)(.*)$ {
…
fastcgi_send_timeout 3600;
fastcgi_read_timeout 3600;
keepalive_timeout 3600;
proxy_connect_timeout 3600;
proxy_send_timeout 3600;
proxy_read_timeout 3600;
}
}