d /tmp/php_sessions 0770 apache2 _webserver -
d /tmp/php_upload 0770 apache2 _webserver -
chown root:_webserver /etc/redis/ /var/log/redis/ -Rchmod 775 /etc/redis/ /var/log/redis/ -R
cp etc/init.d/push-server-multi /usr/local/bin/push-server-multi
cp etc/sysconfig/push-server-multi /etc/sysconfig/push-server-multi
cp etc/push-server/push-server.service /etc/systemd/system/
ln -sf /opt/node_modules/push-server /opt/push-server
[Service]
User=apache2
Group=_webserver
ExecStart=/usr/local/bin/push-server-multi systemd_start
ExecStop=/usr/local/bin/push-server-multi stop
service nginx restart
service httpd2 restart
putenv("BITRIX_VA_VER=7.4-3");
echo "date_default_timezone_set(\"Europe/Moscow\");" >> /var/www/html/bx-site/bitrix/php_interface/dbconn.php
{ echo "\$connection = Bitrix\Main\Application::getConnection();"; echo "\$connection->queryExecute(\"SET sql_mode=''\");"; echo "\$connection->queryExecute(\"SET innodb_strict_mode=0\");"; } >> /var/www/html/bx-site/bitrix/php_interface/after_connect_d7.php