установка Битрикс24 на Centos7

wget http://www.1c-bitrix.ru/download/files/portal/bitrix24_encode_php5.tar.gz

configuration for nginx:
server {
listen 80;
server_name bitrix24.site.net;
root /var/www/bitrix24.site.net;
index index.php;

location / {
try_files $uri $uri/ /index.php?q=$uri&$args;
}

location ~* ^.+\.(jpg|jpeg|gif|png|ico|pdf)$ {
access_log off;
expires max;
add_header Cache-Control private;
}

location ~ \.php$ {
include fastcgi_params;
# try_files $uri =404;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PHP_VALUE "
max_execution_time = 300
memory_limit = 512M
post_max_size = 16M
upload_max_filesize = 2M
max_input_time = 300
date.timezone = Europe/Moscow
always_populate_raw_post_data = -1
short_open_tag = on
opcache.revalidate_freq = 0
mbstring.func_overload = 2
display_errors = on
";
fastcgi_index index.php;
fastcgi_buffers 8 256k;
fastcgi_buffer_size 128k;
fastcgi_intercept_errors on;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_pass 127.0.0.1:9000;
# fastcgi_pass unix:/var/lib/php/php-fpm.sock;
}

location ~ /\. {
deny all;
}
}

Comments powered by CComment

Designed by san © 2018