Debian 9 – stretch, попытка установить nginx + php-fpm7 + MariaDB + Bitrix

1. Устанавливаем минимальную конфигурацию.

2. Задаем статический IP адрес:

# nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.60.101
netmask 255.255.255.0
gateway 192.168.60.1

3. Подключаем репозитории и устанавливаем nginx:

echo “deb http://packages.dotdeb.org squeeze all” |  tee -a /etc/apt/sources.list.d/dotdeb.list
echo “deb-src http://packages.dotdeb.org squeeze all” | tee -a /etc/apt/sources.list.d/dotdeb.list
wget -qO – http://www.dotdeb.org/dotdeb.gpg | apt-key add –
apt-get update
apt-get install nginx -y

4. Поправляем конфу nginx:

client_body_buffer_size 10K;
client_header_buffer_size 1k;
client_max_body_size 8m;
large_client_header_buffers 4 16k;
#prevent upstream sent too big header while reading response header from upstream errors with buffers
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;

 

5

apt-get install php7.0-bcmath php7.0-bz2 php7.0-cli php7.0-common php7.0-curl php7.0-dba php7.0-dev php7.0-enchant php7.0-fpm php7.0-gd php7.0-gmp php7.0-imap php7.0-interbase php7.0-intl php7.0-json php7.0-ldap php7.0-mbstring php7.0-mcrypt php7.0-mysql php7.0-odbc php7.0-opcache php7.0-pgsql php7.0-phpdbg php7.0-pspell php7.0-readline php7.0-recode php7.0-snmp php7.0-soap php7.0-sqlite3 php7.0-sybase php7.0-tidy php7.0-xml php7.0-xmlrpc php7.0-xsl php7.0-zip php7cc php-remctl php-tideways php-xdebug

 

CREATE USER bitrix@localhost IDENTIFIED BY ‘passw0rd’;
CREATE DATABASE bitrix;
GRANT ALL PRIVILEGES ON bitrix.* TO bitrix@localhost IDENTIFIED BY ‘passw0rd’;
FLUSH PRIVILEGES;
quit;