Virtual machine. "Bitrix: Web Environment" - installation and configuration How to install the Bitrix web environment on the server

Sandbox

conscript April 25, 2014 at 02:31 PM

Step-by-step deployment of "1C-Bitrix: Web Environment" on CentOS for dummies

Bitrix has such a wonderful thing as "1C-Bitrix: Web Environment", which allows you to deploy a fully configured and optimized website on a clean server in a matter of minutes.
Being a complete teapot in administering Linux web servers, for a long time I bypassed dedicated servers with a lack of technical support and assistance in these matters. But in vain ... when I figured it out, everything turned out to be really easy and simple.

Below are the instructions that I use myself and give to my employees.

Step 1 - Install BitrixEnv

1) Go to the SSH server console

2) Install wget:

$ wget http://repos.1c-bitrix.ru/yum/bitrix-env.sh $ chmod + x bitrix-env.sh $ ./bitrix-env.sh

Step 2 - Configuring Mail on the Server

1) Open the SSH console again. As a result, a menu of the following type will appear:

2) Select the mail settings item
3) Specify the required data and save. These settings do not always work, then we go on to point 4-6.
4) Open the file /home/bitrix/.msmtprc
5) Write the following settings to a file (example for mail on pdd.yandex.ru):

Account default logfile /home/bitrix/.msmtp.log host smtp.yandex.ru port 25 tls off tls_starttls off tls_certcheck off from [email protected] auth login user [email protected] password 123456

6) Save the file.
If the settings are correct, then when checking the mail sending, the letter should go away.

Step 3 - Deploying the Site

In order to deploy a site, you just need to have the IP or domain name of the site in the browser (if it is already tied to the hosting). A standard Bitrix installer window will appear.
If the installer does not open and displays an error, then you need to open access to the following ports:
25 bitrix smtp server
80 http
443 https
5222 bitrix xmpp server
5223 bitrix xmpp ssl server
8090 ntlm authorization
8891 ntlm ssl authorization

I don’t know how it’s done yet.

Tags: bitrix, web environment

This article is not subject to comment, since its author is not yet a full member of the community. You will be able to contact the author only after he receives

With the help of special VM solutions, you can quickly get an optimally configured server that is not inferior in performance to BitrixVM, and in scalability - superior to the 1C-Bitrix virtual machine. The packages have been prepared by Bitrix specialists and are available for download and use.

1. "1C-Bitrix: Virtual Machine 7.3.4"

1C-Bitrix: Virtual Machine 7.3.4 is specially configured for fast execution of 1C-Bitrix software products: it unfolds in minutes and is immediately ready to work! You can not only install trial versions of 1C-Bitrix products on a virtual machine, but also transfer your own ready-made projects.

2. "1C-Bitrix: Web Environment" - Linux

"1C-Bitrix": Web Environment "- Linux is used for quick and easy installation of all software necessary for operation of 1C-Bitrix products and solutions on Linux platforms CentOS 6 (i386, x86_64) and CentOS 7 (x86_64).

3. Virtuozzo Application Template for running an optimized VPS "Bitrix"

Virtuozzo VZ Application Template for Bitrix using 1C-Bitrix: Web Environment - Linux 2.0. The template is designed to install (create) Virtuozzo containers based on CentOS 6 (i386, x86_64) and CentOS 7 (x86_64) packaged as a Virtuozzo EZ Template.

Installing packages requires administration skills! You can get additional information in the Developer Support Center by contacting the community on the BitrixVM forum

About the product

About the product

1C-Bitrix: Virtual Machine is specially configured for fast execution of 1C-Bitrix software products: it unfolds in minutes and is immediately ready to work! You can not only install trial versions of 1C-Bitrix products on a virtual machine, but also transfer your own ready-made projects. Moreover, you can run several sites on one virtual machine through the wizard.

Web Cluster-Enabled Virtual Machine

The virtual machine includes a wizard for creating a cluster, a wizard for adding a slave server, a wizard for switching a slave server to master mode. Now it takes 5-10 minutes to deploy a cluster. There is no need to install or configure anything.

You can appreciate the benefits of virtual machines right now, even if you have never used them. Download a fully operational virtual machine. Launch it and see how fast Bitrix products work under a properly configured virtual server.

Download and use for free!
Rent at the price of the hosting plan

"1C-Bitrix: Virtual Machine" is implemented using VMware virtualization technologies and can be used in any VMware cloud computing solutions.

How to try it?

There are two ways to test a virtual machine in operation:
  • independently download and run the installation file on your computer (free of charge);
  • rent a virtual machine of hosters (at the price of the hosting plan).

"1C-Bitrix: Virtual Machine" is a non-commercial product. In this case, you can contact the 1C-Bitrix Technical Support Center for help if problems arise in the functioning of our commercial products (1C-Bitrix: Site Management, 1C-Bitrix: Corporate Portal and Solutions) on BitrixVM. But other issues, for example, on changing the BitrixVM configuration, are resolved only by the developer community on the BitrixVM forum.

The composition of the product

"1C-Bitrix: Virtual Machine" emulates the operation of a real computer. The product includes a configured operating system, web server, database, firewall, mail server, as well as a large number of settings that affect the reliability, performance and security of a web project. On the Virtual Machine, you can start a new project, or transfer an already prepared site to it. Website transfer is possible directly from the server to the machine.

The virtual server contains:

  • Operating system - CentOS 7.5 with automatic updates
  • Two-tier configuration - NGINX + Apache2
  • MySQL5 with InnoDB support
  • HTTPS support
  • Cluster Configuration and Add Additional Sites Wizards
  • Sphinx Search Server Configuration Wizard
  • Additional packages: geoip, catdoc, poopler, mc, man, strace, sphinx
  • configured firewall (iptables) and verified configuration security
  • The IP address is obtained by DHCP or set manually
  • highly customizable mail client (msmtp)
  • minimum memory requirements - 512M
  • maximum disk space 100 GB
  • auto-optimization of performance for different amounts of memory (up to 16 GB)
  • console panel of typical actions for managing a virtual server
  • a large number of settings on which reliability, performance and safety depend
  • Root password - bitrix (a change is required at the first login)
  • Bitrix password - bitrix (a change is required at the first login)

About virtual machines

Virtual machine technology is gaining popularity. The market leader is VMWare, Microsoft is actively developing with Hyper-V, Citrix with XEN.

From Wikipedia:

What's new?

Version history BitrixEnv and BitrixVM

The product "1C-Bitrix: Virtual Machine" is constantly being improved and refined. Stay tuned for changes and new features of the Virtual Machine on this page.

Changes in version 7.3.4

Software Update:
  • push-server 2.0.0
Major fixes:
  • The push-server package has been updated to work correctly on CentOS 7.6. Fixed error starting push-server service via systemd.

Changes in version 7.3.3

Major fixes:
  • Added automatic inclusion of PHP zip and dom extensions. They have become mandatory as they are required for the documentgenerator module to work.

Changes in version 7.3.2

Major fixes:
  • Added the ability to enable and disable the yum repository that stores beta versions of virtual machine packages.
  • Fixed a typo in the menu phrase, due to which the restoration of the default certificate for the site did not work.

Changes in version 7.3.1

Software Update:
  • push-server 2.0.0
Major fixes:
  • Fixed display of MySQL and PHP update items if MySQL server version 5.5 and PHP is updated to 7.0.
  • Added copying of the certificate chain when configuring your own ssl certificate.
  • Generation of dhparam has been made easier.
  • Fixed blocking of the menu when the configuration script is running.
  • Fixed exit from the menu for several items.
  • Fixed menu behavior when monitoring is enabled.

Changes in version 7.3.0

Software Update:
  • nginx 1.14.0
  • hostname 1.0.0
  • php 7.1
Major fixes:
  • Added use of php version 7.1 by default.
  • Fixed setting of certificates with configured https access to the site.
  • Corrections on package settings (option in dbconn.php and ethtool dependencies).

Changes in version 7.2.2

Major fixes:
  • Fixed a bug with duplicating ntlm settings for the httpd-scale service.

Changes in version 7.2.1

Major fixes:
  • Fixed an error that occurred when creating a website with advanced parameters.
  • Fixed a phrase in the mail settings for the site.

Changes in version 7.2.0

Software Update:
    nginx 1.12.2
Major fixes:
  • Added support for installing certificates: native and Let "s Encrypt.
  • Added the ability to return the "default" ssl site certificate.
  • Fixed errors in configuring the web cluster.
  • Added the ability to change the hostname after creating a server pool.
  • The procedure for updating the settings of MySQL servers in the pool has been fixed.
  • Security fixes for nginx and httpd config files.
  • Fixed errors in creating sites if there is not a single working site on the server.
  • Added removal of servers from monitoring when they are removed from the server pool.

Changes in version 7.1.0

Software Update:
  • nginx 1.12
  • mysql 5.7
  • nodejs push-server 1.0.0
Major fixes:
  • New version of mysql server. Added update wizard to menu for existing installations.
  • Added the ability to configure a new push-server.
  • Fixed bug with lsyncd server configuration
  • Fixed the procedure for updating a machine in a pool, added the ability to start a full update from the menu
  • Fixed security for nginx config files
  • Added X-Frame-Options option for online chats
  • Fixed starting smtp service

Changes in version 7.0.1

  • Added the proxy_ignore_client_abort option when creating new sites; a separate menu item for configuring existing sites was added.
  • Added settings for fast file serving via nginx for external storages: Clodo, Rackspace, Google Storage and Selectel.
  • Added generation of DH parameters for ssl connection.
  • Fixed configuration of lsyncd service for Cent OS 6.
  • The procedure for generating the name for the index has been changed.
  • Fixed error with monitoring settings in the system.
  • Fixed error with configuring mysql service after stopping it in the system.
  • Fixed the error of changing when changing the password for the mysql service.
  • Fixed a bug with getting the status of the mysql service for a localized version of the OS.
  • The procedure for changing the password for hosts without installed / configured sites has been fixed.

Changes in version 7.0.0

  • CentOS 7 (x86_64) becomes the main distribution kit for Bitrix Virtual Machine 7.0. Images work under CentOS 7 (x86_64), rpm packages are still available on CentOS 6 (i386, x86_64).
  • Software Update:
    • nginx up to version 1.10.2
    • sphinx 2.2.11
    • php 7.0
    • ansible 2.2
  • Fixed scripts for the virtual machine to work with Ansible 2.2. The ansible package is now shipped through the Bitrix repository.
  • The procedure for generating passwords in the car has been fixed, support for specials has been added. characters.
  • Added a procedure for automatically creating a password for the mysql service at the first start of the machine and during installation via bitrix-env.sh.
  • PHP 7.0 is used by default. Added the ability to rollback to PHP 5.6 if needed. When upgrading a virtual machine from 5.1 to 7.0 in the same menu item, you can perform the upgrade procedure from PHP 5.6 to 7.0.
  • Added the ability to create custom rules for iptables / firewalld.
  • Fixed errors in the menu in the case of several IP addresses on one network interface.
  • The procedure for configuring a web cluster is divided into two steps that can be started separately from each other: data synchronization and setting up the web environment.
  • Lsyncd is used by default as a data synchronization service.
  • Fixed errors in case of deleting a machine from the server pool.

Changes in version 5.1.8

Fixed scripts of the virtual machine to work with Anaible 2.1.0.

Changes in version 5.1.7

Software update: nginx - 1.8.1

Changes in version 5.1.6

  • ANSIBLE: Support for working with ansible 2.0.1
  • Description: Fixed scripts of the virtual machine to work with Anaible 2.0.1

Changes in version 5.1.5

A number of changes have been made to improve the performance of the Bitrix Virtual Machine product.

Changes in version 5.1.4

  • Added deletion of the pool configuration, for cases when it is necessary to recreate it.
  • Added the ability to remove servers from the pool that are offline or unavailable for one reason or another.
  • Added the ability to upgrade PHP to version 5.6.
  • Added the ability to set the authorization method when configuring mail.
  • Added the ability to set cron settings or hits for the site during its creation.
  • Added the ability to configure email notifications for the Nagios monitoring system.
  • Added the ability to set a personal login and password for Nagios and Munin monitoring systems.

Changes in version 5.1.3

Now, when adding a server to AD, you can specify an arbitrary NETBIOS name other than the machine name.

Bugs fixed:

  • connecting the server to a domain with localized group names;
  • creation of incorrect configuration files for the samba server;
  • impossibility of changing the domain for the server;
  • creation of sites in cp1251 encoding;
  • creating an invalid link in case of an https request.

Change in version 5.1.2

When creating mail for the site, the msmtp profile is registered for the crown. In this way, the configured mail for the site starts working if the job is transferred to the crowns.

Changes in version 5.1.1

  1. Changed behavior of disabling php modules through config files. Avoids including "unwanted" php modules when updating php packages.
  2. Added the ability to set the root password by creating the /root.my.cnf file when updating the mysql server.

Changes in version 5.1.0

Major changes
  1. Added the ability to configure the delivery of the composite cache through nginx, if it is configured on the site
  2. Software Update:
  • php - 5.4
  • mysql - 5.5
  • nginx - 1.6.2
  • Support for external kernels (ext_kernel) for sites
    For this type of site:
    • no web access
    • you can use them to create a link
    • all cluster functions are supported (mysql, web)
  • The dependency of creating memcached and sphinx roles from cluster and searchd modules installed on sites has been removed. In the absence of a module on the site, a service will be added. But at the same time, it will not be registered in the corresponding site model.
  • Added restrictions on creating a cluster configuration (mysql, web) in the following cases:
    • if there is more than one site of type kernel (kernel) or external kernel (ext_kernel) on the server
    • cluster or scale module not installed
  • Updating ntlm (fixing errors for synchronizing calendars, contacts; added the ability to update the configuration of several sites if NTLM is already configured for the server)
  • Added HVM images (Frankfurt and not only)


  • Changes in version 5.0

    New:
    • Added work with dynamic addresses (updating the list of servers in the pool, if the address is updated on one of the servers in the pool, access settings and access configuration are changed). Wiki article
    • Changed work with sites:
      • added a definition of whether the scale and / or cluster module is installed on the site, for such sites site operations are allowed: setting email, enabling / disabling https-only mode, setting up backup, but such sites do not participate in cluster operations: memcached, mysql, apache
      • in case of an error on one of the installed sites installed on the server, such a site will not participate in any of the operations in the cluster, the list of such sites and their errors can be viewed in paragraph 6, subparagraph 8
    • API for hosters
    Fixes:
    • Work with subinterfaces, in the previous version was not defined correctly, which did not allow working in OpenVZ / Virtuozzo containers
    • An incorrect determination of the mode in which the server is operating (behind a balancer or without) led to the following errors:
      • website creation on port 8080
      • enabling HTTPS-ONLY mode did not work
      • links to the https version of the site were created incorrectly
    • Domain names were used in the nginx server configs (allow / deny rules), if the user specified the FQDN when creating a master or adding a new server to the pool, which led to service restart errors

    Changes in version 4.3:

    • changed the settings of the nginx-push-stream-module, added the ability to work via websoket and standard ports 80, 443
    • reworked configuration files, added comments
    • fixed loss of get parameters in dav
    • updated module nginx-push-stream-module, nginx, apc
    • added sphinx configuration and connection wizard
    • autoscaling options expanded to 16GB

    Changes in version 4.2:

    • changed the settings of the nginx-push-stream-module to correctly support push & pull
    • php json module is enabled by default
    • fixed rpm package when updating
    • fixed setting in cron of the task of checking the rights of munin and nagios
    • fixed rules for processing merged css by nginx
    • added rules for processing merged js by nginx
    • correct nginx response headers are set when displaying custom errors
    • fixed definition of variables in nginx
    • fixed library dependencies in BitrixVM

    Changes in version 4.1:

    • CentOS updated to version 6.3
    • fixed wizard for adding additional sites
    • fixed backup setup wizard, archive format made compatible with restore.php
    • improved service for setting parameters of the bvat system
    • 404 error handling for static content moved to nginx
    • nginx fixed 404 error handling for dynamic content
    • added error pages to nginx
    • correct processing of calendars has been added to nginx
    • to support the push & pull module, nginx is built with the nginx-push-stream-module
    • fixed mechanism for working with html cache "Bitrix" in nginx
    • added system update wizard
    • changes to improve system security

    Changes in version 4.0:

    • operating system CentOS 6.2 i386
    • removed a number of VMWare components that caused problems after virtual machine updates
    • standard virtual machine disk size increased to 10 GB
    • ZendServer replaced with Apache and APC
    • changed the connection scheme of Nginx and Apache configuration files to minimize problems when updating or installing additional packages
    • ntlm authorization mechanism changed and BitrixEnv4 package added to rpm
    • added wizards for creating a backup copy of a site on a schedule, deleting settings for additional sites, setting up system monitoring (munin, nagios)
    • changes aimed at improving the security of the system
    • the wizard for creating additional sites has been improved
    • the work of the service for setting parameters of the bvat system has been corrected
    • added version control system mercurial

    Changes in version 3.1:

    • updated version of nginx 1.1.0, with patch upstream_keepalive
    • expanded set of preinstalled packages (htop, samba, etc.)
    • ntlm authorization setup wizard

    Changes in version 3.0:

    • operating system CentOS 6.0 i386
    • ext4 filesystem
    • updated version of nginx 1.0.6, configuration changes
    • updated version of msmtp 1.4.24, changes in the configuration wizard
    • replacing xpdf with poppler
    • fixes to mysql config
    • the set of pre-installed packages has been expanded in the virtual machine (mc, strace, man, etc.)
    • added the ability to create additional sites, both on a separate core and within the framework of multisite
    • added masters: creating a master node of the cluster, adding a slave node to the cluster, changing the role of a slave node to master
    • updated GeoIP databases

    Major changes in version 2.0:

    • php-5.3.3 or php-5.2 (version of php-5.3.3 lacks Zend Guard Loader component, i.e. encoded files will not work);
    • PHP parameters have been changed for optimal operation of Bitrix products
    • added xdebug module (not active by default, to activate it, just uncomment the corresponding line in php.ini and restart apache);
    • updated version of nginx 0.7.67, configuration changes;
    • expanded list of OSs for installing Fedora 8-14 (i386 only), server CentOS / RHEL / OEL 5 (i386 and x86_64);
    • disabling duplicate compression in the product configuration (now only nginx compresses data);
    • elimination of msmtp mail program configuration problems;
    • disabled auto-update of packages (via yum) when restarting the server;
    • fixed minor notes and errors.
    Packages tested on Fedora 8,12,14 (i386), CentOS / OEL 5 (i386 / x86_64). Fedora 14 has minor OS bug issues.

    Changes in version 1.6:

    • By default, the VM site is now accessible over both HTTP and HTTPS, and the Zend Server control panel has been disabled to save resources. Both of these options are still well managed through the root user menu.
    • Added support for the SMTP server that appeared in Bitrix: Corporate Portal 9.0, which, if configured correctly, starts automatically.
    • After updating the product, a search in PDF files becomes available.
    • Updated all software packages, including Zend-Server-CE (very seriously updated), added php-5.2-memcache module to use in-memory caching.
    • Changes have been made to the NGINX configuration for processing cached PHP pages (HTML caching technology), errors in processing WebDAV requests have been fixed, and scalability has been improved. Fixed errors in the APACHE configuration, which caused, in particular, errors when "classic" uploading images to the photo gallery (via java-applet). Added processing of document types docx, xlsx, pptx.
    • Improved start script bitrixsetup, added localizations for English and German.

    Changes in version 1.5

    • updated all Ubuntu 8.0.4 OS packages, as well as Zend Serevr CE 4.0.3, PHP 5.2.10 application packages;
    • improved nginx configuration in terms of compression;
    • changes in the console menu: when the Zend panel is disabled, the corresponding service is stopped, which saves the RAM of the Virtual Machine;
    • system improvements in the use of RAM: The virtual machine runs satisfactorily on 160 MB of RAM, although the main recommendation for the size of RAM remains the same - 256 MB of RAM;
    • updated bitrixsetup.php - allows you to install additional 1C-Bitrix applications.

    Changes in the new version 1.4

    Added installation using BitrixSetup.

    Changes in version 1.3

    The new edition of VMBitrix is ​​implemented according to the VMware Virtual Appliance standard!

    General configuration:

    • the home directory of the bitrix user is separated from the webroot;
    • before the initial login via ssh / console to change the default password (bitrix), you cannot connect via SFTP and HTTPS to manage the server. This does not affect the launch of bitrix_setup and the installation of the product;
    • removed EULA.
    Error correction:
    • fixed test SSL certificate;
    • console menu: fixed error in mail configuration, removed menu items for configuring IP - this is in VMware tools;
    • nginx configuration: fixed WebDAV errors (you need to update to 8.0.2 to work correctly), 400 Bad Request when creating a new theme, synchronizing with Outlook;
    • fixed bug when launching XMPP.
    Applications:
    • additional packages are installed: catdoc, memcached, xpdf;
    • reworked and fixed the bitrix_setup script;
    • updated nginx to version 0.7.62 (security bug - Critical vulnerability in the Nginx http server);
    • modified script for auto-tuning service parameters to ensure high performance with RAM values ​​up to 2 GB;
    • changes were made to the distributions of Bitrix products, necessary for the correct operation of the VM.

    Advantages

    Advantages

    "1C-Bitrix: Virtual Machine" is an excellent solution to the problem of high-quality hosting and dedicated servers setup. Usually, in order to achieve high project performance, you need to independently configure the server software, OS, hardware. It is also important to ensure safety. And in "1C-Bitrix: Virtual Machine" all these settings have already been made. As a result, you save time and money on the deployment and configuration of the server, on the purchase of the necessary equipment, on the security of the project.

    Everything is ready to go!

    The virtual server is ready for immediate use. This means that 1C-Bitrix products will work quickly on the server, and most of the services and services here are not just configured, but work perfectly.

    After installing the virtual machine:

    • you can use the wizard for configuring the cluster and adding additional sites;
    • the menu allows you to configure sending mail through an external SMTP server;
    • if you configure an SMTP gateway, mail can be routed within the organization;
    • the instant messaging server (XMPP / JABBER server) is configured and running (automatically starts);
    • Miranda, QIP and other messenger programs can be configured to work with the Internet / Intranet portal;
    • adjusted the indexing of office documents;
    • WebDAV is configured and running;
    • HTTPS support for the Corporate Portal;
    • SSL support for XMPP

    Saving

    There are significant savings for the company:

    • on deployment time;
    • on equipment;
    • on the cost of operation.

    Rent

    The product "1C-Bitrix: Virtual Machine" can be rented from hosting providers. Virtual machine rental is available in any virtualization technologies: VMware, Parallels Virtuozzo Containers, Amazon EC2 (AMI), Open VZ, Citrix.

    Having trouble finding a specific video? Then this page will help you find the video you need so much. We will easily process your requests and give you all the results. No matter what you are interested in and what you are looking for, we can easily find the necessary video, no matter what direction it is.


    If you are interested in up-to-date news, then we are ready to offer you the most relevant at the moment news reports in all directions. The results of football matches, political events or world, global problems. You will always be aware of all the events if you use our wonderful search. The awareness of the videos we provide and their quality does not depend on us, but on those who uploaded them to the Internet. We just supply you with what you are looking for and demand. In any case, using our search, you will know all the news in the world.


    However, the world economy is also a rather interesting topic that worries a lot of people. Quite a lot depends on the economic condition of various countries. For example, import and export of any food products or equipment. The same standard of living directly depends on the state of the country, as well as salaries and so on. How can such information be useful? It will help you not only adapt to the consequences, but it can also warn you against traveling to a particular country. If you are a notorious traveler, then be sure to use our search.


    Nowadays it is very difficult to understand political intrigues and to understand the situation you need to find and compare a lot of different information. Therefore, we can easily find for you various speeches of the State Duma deputies and their statements for all the past years. You can easily understand politics and the situation in the political arena. The politics of different countries will become clear to you and you can easily prepare yourself for the coming changes or adapt already in our realities.


    However, you can find here not only various news from the whole world. You can also easily find yourself a film that will be pleasant to watch in the evening with a bottle of beer or popcorn. In our search database there are films for every taste and color, you can easily find an interesting picture for yourself. We can easily find for you even the oldest and most difficult to find works, as well as the classics known to everyone - for example, Star Wars: The Empire Strikes Back.


    If you just want to relax a little and are in search of funny videos, then we can quench your thirst here too. We will find for you a million different entertaining videos from all over the planet. Short jokes will easily cheer you up and will amuse you all day long. Using the convenient search system, you can find exactly what will make you laugh.


    As you already understood, we work tirelessly so that you always get exactly what you need. We have created this wonderful search especially for you, so that you can find the necessary information in the form of a video and watch it on a convenient player.

    As an alternative to the basic Denwer package, it is customary to consider the "Web Environment" package, the installation file of which can be downloaded from the official site "1C-Bitrix: Site Management" ( http: // www.lc-bitrix.ru/products/env/). The Web Environment package includes Apache 2.2.15, PHP 5.3.2, MySQL 5.1.51, ZendOptimizer, eAccselerator, and other required packages.

    To install the "Web Neighborhood" package, do the following:

    1. Run bitrix_env.exe. After the dialog box appears, close all extraneous applications and click on the button Next> .
    2. Read the terms of the license agreement. If everything suits you, then set the switch to "I accept the terms of the agreement" and click on the button Next> to the next step of the installation.
    3. Specify the directory where the files of the "Web environment" package will be registered. Check the required free space. Click on the button Next>... Select in which folder on the Start menu the "Web Neighborhood" boot shortcuts will be created.
    4. If you want to place a shortcut for the "Web Neighborhood" package on your desktop, check the box "Create an icon on the desktop"... To proceed to the next step of the installation, click the Next> button.
    5. Specify the port of the web server - this is the port on which the site will run. The default settings assign port 6448. In addition to port 6448, any other port can be used, for example 6447. The main thing is that the web server port is not occupied by third-party applications.
    6. Check the installation options for the "Web Neighborhood" package. If everything was specified correctly in the previous steps, click the Install button. If necessary, go back using the button < назад ... You can cancel the installation of the "Web Neighborhood" package using the Cancel button.
    7. The process of installing the "Web environment" package.
    8. After the installation wizard for the "Web Neighborhood" package has finished, click the Finish button. To run the package automatically, select the "Launch Web Neighborhood" checkbox.

    The start page of the web environment contains information about additional required software and links to download them. The "Bitrix Web Environment" shortcut on the desktop is intended for subsequent launches of the web application.

    Working directory "1C-Bitrix: Site Management", ie. the folder where the CMS files will need to be placed has the following path: <директория установки>/ www.

    Now you can start installing Bitrix Site Manager directly. The commercial version with a license key is packed in a .zip or .tar.gz archive. A free trial version for a period of thirty days is presented on the official website of the developers in the form of a self-extracting .exe file.

    At the beginning of this year, Bitrix released a new, seventh, version of their "Web environment". Most importantly, installation on CentOS 7 and php 7 is now officially supported. A little explanation if you are not aware. "1C-Bitrix: Web Environment" is a ready-made environment with a pre-installed recommended set of software necessary for the correct operation of CMS 1C-Bitrix. It is supplied in a wide variety - there are ready-made images for various virtualization (for details, see the official website) and an installation script for installation on the server. We will consider working with the latter.

    What do we get

    The web environment is positioned as the best solution for the entire Bitrix product line - both for all editions of “1C-Bitrix: Site Management” and for the Bitrix24 box. Let's take a look at what we are offered to use as a recommended bundle.
    The scheme itself is traditional: Apache + nginx. For the current 7.0.1 version of the web environment, stable Apache 2.4 and nginx 1.10.2 are used. The most important innovation is the transition to php 7. There are no rumors about the official support for nginx + php-fpm, so this option will still have to be assembled by hand.
    The MySQL version, or rather the MariaDB fork, is still 5.5, according to the official CentOS repositories. Although, if you have updated to the latest versions of Bitrix, you have probably met an offer to execute in the database console some sql query for the “Web Messenger” module, which can be performed only with version 5.6. I'll tell you about the transition to 5.6 as well.
    What else is included in the package:

    • memcached is a service that provides data caching in RAM, if used correctly, it significantly speeds up work. Not used by default;
    • stunnel - for organizing encrypted ssl tunnels;
    • catdoc is a library for working with MS Office formats. In particular, it is used for searching documents;
    • xpdf - tasks are the same as in the paragraph above, only for PDF;
    • munin and nagios - server health monitoring. Not used by default;
    • sphinx - full text search. At the moment, the best solution for the convenience, quality and speed of search. Not used by default.

    Of course, all this is already configured to work correctly with each other. Let's put it on.

    Installing "1C-Bitrix: Web Environment" on the server

    Downloading the installation script - the current download link can be found at the office. site. We need to run it as root, and then it is assumed that we are in / root. If not, proceed by doing:

    If you have SElinux enabled, the first step will be asked to disable:

    You must disable SElinux before installing the Bitrix Environment. Do you want disable SELinux? (Y | n)

    You must disable SElinux before installing the Bitrix Environment.

    Do you want disable SELinux? (Y | n)

    We agree and press Enter to confirm. After a successful shutdown, you need to reboot the server:

    Change SELinux state to disabled in / etc / selinux / config Change SELinux state to disabled in / etc / sysconfig / selinux Please reboot the system! (cmd: reboot)

    Change SELinux state to disabled in / etc / selinux / config

    Change SELinux state to disabled in / etc / sysconfig / selinux

    Please reboot the system! (cmd: reboot)

    After rebooting, run the installation script again.

    Launching the "1C-Bitrix: Web Environment" installation

    The system update process will be launched first in order to update the versions of the installed packages. Those. in fact:

    yum - y update

    Then all the necessary software will be installed. The installation process takes about 10-15 minutes. After installation, it will ask if we want to set a root password for MySQL. We agree and install:

    Do you want to set a password for root user in MySQL service? (Y | n): Enter root password: Re-enter root password:

    Do you want to set a password for root user in MySQL service? (Y | n):

    Enter root password:

    Re - enter root password:

    This completes the installation, and a corresponding notification will be issued.
    Run the script for managing the environment (after rebooting and logging in as root, this script will run automatically):

    # ./menu.sh

    At the first start we will be asked to set a password for the bitrix user.

    Set a password and get to the start menu “1C-Bitrix: Web Environment”. Installation is complete, proceed to setup.

    Configuring Bitrix Web Environment

    What makes Web environment scripts so good is that they allow you to configure a web server for 1C-Bitrix without having deep knowledge of Linux administration. And for those who understand, reduce the time for routine operations to configure the server. In theory, you do not need to exit the web environment shell at all, everything should be done by its means. In practice, of course, this is not entirely true, but for quickly launching a web server, this is an excellent solution.
    Let's nevertheless figure out a little about the settings and create an environment for the site, where we will deploy Bitrix: Site Management (SUS).
    The first thing we need to do is create a Menengment pool. To do this, select item 1 of the menu (press the number 1 and Enter). A wizard will start which will ask you to enter the FQDN address of your site. Enter your domain name without www, http, etc. Because I am setting up in a local virtual environment, I will have this mysite.local.

    After that, a significant number of items will be added to the main menu.

    Actually, we could stop at this, if you go to the address that you set for the environment, you will see the following:

    Those. you may well deploy your Bitrix from scratch or from a backup.
    Let's torment the web environment menu a little more and see what useful things need to be done.

    Mail setup

    This point is the first that needs to be done yet. before installation the CMS itself.
    We go first 6. Manage sites in the pool, then 4. Change email settings on site. Then we select the site for which the setting is in progress, if we have one (it will be designated as default), then just press Enter. Then:

    1. Enter from address (ex. [email protected]): we indicate the address on whose behalf the mailing will take place, it is desirable to indicate the existing one;
    2. Enter server address or DNS (127.0.0.1): leave it as indicated and press Enter;
    3. Enter server port (25): leave the same as it is;
    4. Do you want to use SMTP authentication on the 127.0.0.1:25? (N | y) - no thanks. Enter n;
    5. Do you need TLS enable for 127.0.0.1:25 (n | Y): same no, enter n.

    Actually, everything can be seen in the screenshot:

    In Bitrix, we run “System Check” and make sure that everything is in order:

    I hope you understand that there will be very little trust in mail sent this way. Therefore, I recommend configuring mail through a real SMTP server with authentication and configured DKIM.
    And one more thing - the mail log is written to /home/bitrix/msmtp_default.log

    Enabling memcached

    In the main menu, go to item 4. Configure memcahed servers. And then 1. Create memcached server. Then we enter the hostname for which the service will be started. In our case, we have one.

    Actually everything - as you can see on the screen, everything is running. Press Enter to return to the previous menu.
    After that, do not forget to enable memcached support in Bitrix - as described in the official documentation.

    Similarly, let's add support for full-text search via sphinx for Bitrix. Select 7. Manage sphinx in the pool, then 1. Create sphinx instance on server
    Here we need to enter the hostname first, and then the name of the database that sphinx will work with. Agree to the reindexing request (Bitrix must already be installed and the database is not empty).

    As always with Bitrix, there are some peculiarities. If the “Search” module is less than version 17.0.0, you will receive the message “Error connecting to the Sphinx server: MySql extension is not installed”.

    And the last thing

    How to disable automatic launch of the Web environment menu at login

    Exit the web environment menu to the server console (0. Exit). And in the ~ / .bash_profile file, comment out the last line, where the menu script is called:

    export PATH # bitrix-env export BITRIX_VA_VER = 7.0.1 #menu # ~ / menu.sh - call the menu at the start of the session