For testing and developing sites on Bitrix (and others too), I use the Bitrix: Web Environment package for Windows, initially tailored for one site. Let's install several sites in one web environment, and at the same time install an admin panel for the MySql database.

The manufacturer recommends using the Bitrix: Web Environment package for testing demo versions of the product. A convenient and intuitive wizard will automatically install everything that is necessary to work with the product: MySQL 5.0.51, Apache 2.2.8, PHP 5.3, eAccelerator 0.9.5. He supposedly should even be able to send mail.

Download the web environment from here, launch it and install it, for example, in the “D:/BitrixEnv” folder.

Bitrix, due to some misunderstanding, is written in such a way that it can only work in the root of the site. For each site you need to create your own virtual host. The site settings are located in the folder "D:\BitrixEnv\apache2\conf\sites", the site files themselves will be placed in "D:\BitrixEnv\www-site synonym/", for ease of identification. The initial host of the web environment runs at localhost:6448. For each additional site we will create our own host settings and allocate a separate port (6449 and so on in order).

In the folder "D:\BitrixEnv\apache2\conf\sites" we duplicate the file default.conf with default settings, call it "9449.conf", again for ease of identification.

We edit by changing the port numbers, the location of the site folder and the name of the log files (in the picture in yellow and orange)

An additional site in Bitrix: Web Environment is ready for launch!

One strange thing was noticed - demo versions of Bitrix during installation cannot create a database themselves (in manual installation mode). To solve this problem, and in general for convenient management of the MySql database, many people recommend phpmyadmin. This is certainly a good tool, but for our case I recommend Adminer (formerly phpMinAdmin) - it is a lightweight administration tool for MySQL, PostgreSQL, SQLite, MS SQL and Oracle. The project was born as a “lightweight” version of phpMyAdmin. Adminer fits into one file and does not require installation (just copy the php file to the server, for example in "D:\BitrixEnv\www\adminer.php").







Bitrix Environment

Tools


  • MySQL


  • Test site

  • Development site



We restart the Bitrix environment via the tray icon and begin testing and website development.

We perform similar actions for subsequent additional sites - copy the latest config, change the port number to a larger one, correct the site folder and names of log files (access and errors), add an entry to the main index.html. After restarting the web environment, all sites should work as we configured them.

(BitrixVM) are images of virtual machines with pre-installed Linux CentOS OS for the most common hypervisors. The settings are optimized for CMS 1C-Bitrix. Available for download from https://www.1c-bitrix.ru/download/vmbitrix.php

1C-Bitrix: Web environment(BitrixEnv) is an installation script that installs all the necessary software and optimizes the settings of a freshly installed Linux distribution of Fedora, CentOS and Red Hat for optimal operation of the 1C-Bitrix CMS. Available for download from https://www.1c-bitrix.ru/products/env/

Thus, the end result of both products is the same - the creation of an optimal environment for the operation of the 1C-Bitrix CMS. Moreover, for a non-specialist the difference in what was taken as a basis, BitrixVM or BitrixEnv, may not be obvious.

Which option to choose depends on personal preferences and the specifics of the tasks being solved. So, for quick deployment in a hypervisor, it would be optimal 1C-Bitrix: Virtual machine. You just need to change the disk size. For example, for installation on a dedicated server or for fine-tuning Linux OS parameters - 1C-Bitrix: Web environment.

Are you 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. It doesn’t matter what you are interested in or what you are looking for, we can easily find the necessary video, no matter what its focus.


If you are interested in modern news, then we are ready to offer you the most current news reports in all directions at the moment. Results of football matches, political events or world, global problems. You will always be aware of all events if you use our wonderful search. The awareness of the videos we provide and their quality depend not on us, but on those who uploaded them to the Internet. We just supply you with what you are looking for and demanding. 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 many people. Quite a lot depends on the economic state of different 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 do salaries and so on. How can such information be useful? It will help you not only adapt to the consequences, but may also warn you against traveling to a particular country. If you are an avid traveler, 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 by State Duma deputies and their statements over the past years. You will be able to easily understand politics and the situation in the political arena. The policies of different countries will become clear to you and you can easily prepare yourself for the upcoming changes or adapt to our realities.


However, you can find here not only various news from around the world. You can also easily find a movie 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 find an interesting picture for yourself without any problems. We can easily find for you even the oldest and hard-to-find works, as well as well-known classics - such as Star Wars: The Empire Strikes Back.


If you just want to relax a little and are looking for 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 lift your spirits and keep you amused all day long. Using a convenient search system, you can find exactly what will make you laugh.


As you already understand, we work tirelessly to ensure that you always receive exactly what you need. We 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.

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 were prepared by 1C-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 deploys in minutes and is immediately ready for 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 the operation of 1C-Bitrix products and solutions on the Linux platforms CentOS 6 (i386, x86_64) and CentOS 7 (x86_64).

3. Virtuozzo Application Template for launching an optimized Bitrix VPS

Virtuozzo VZ Application Template package for Bitrix using the 1C-Bitrix: Web Environment solution - Linux 2.0. The template is designed for installing (creating) 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! For more information, please visit the Developer Support Center or reach out to the community on the forum.

About the product

About the product

“1C-Bitrix: Virtual Machine” is specially configured for fast execution of 1C-Bitrix software products: it deploys in minutes and is immediately ready for 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, and a wizard for switching a slave server to master mode. Now it takes 5-10 minutes to deploy the 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 ready-to-use virtual machine. Launch it and see how quickly 1C-Bitrix products work under a properly configured virtual server.

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

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

How to try?

There are two ways to test a virtual machine:
  • download and run the installation file on your computer yourself (free);
  • rent a hoster’s virtual machine (at the price of the hosting tariff).

"1C-Bitrix: Virtual Machine" is a non-commercial product. At the same time, you can turn to 1C-Bitrix for help if you encounter problems with the functioning of our commercial products (“1C-Bitrix: Site Management”, “1C-Bitrix: Corporate Portal” and) on BitrixVM. But other issues, for example, changing the BitrixVM configuration, are resolved only by the developer community.

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 on which the reliability, performance and security of the web project depend. You can launch a new project on a Virtual Machine, or transfer a ready-made website to it. It is possible to transfer a website directly from the server to the machine.

The virtual server contains:

  • Operating system - CentOS 7.5 with automatic updates
  • Two-level configuration - NGINX + Apache2
  • MySQL5 with InnoDB support
  • HTTPS support
  • Wizards for setting up a cluster and adding additional sites
  • 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 via DHCP or set manually
  • easily customizable email client (msmtp)
  • minimum memory requirements - 512M
  • maximum disk space 100 GB
  • automatic performance optimization for different memory sizes (up to 16 GB)
  • console panel of typical actions for managing a virtual server
  • a large number of settings that affect reliability, performance and security
  • The root password is bitrix (will need to be changed upon first login)
  • Bitrix password - bitrix (will need to be changed upon first login)

About virtual machines

Virtual machine technology is becoming more widespread. The market leader is VMWare, Microsoft is actively developing with Hyper-V, Citrix with XEN.

Material from Wikipedia:

What's new?

Version history of BitrixEnv and BitrixVM

The 1C-Bitrix: Virtual Machine product is constantly being improved and refined. Keep track of 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 an issue with starting the push-server service via systemd.

Changes in version 7.3.3

Major fixes:
  • Added automatic inclusion of PHP extensions zip and dom. They have become mandatory, as they are necessary for the operation of the Document Generator module.

Changes in version 7.3.2

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

Changes in version 7.3.1

Software Update:
  • push-server 2.0.0
Major fixes:
  • Fixed the display of MySQL and PHP update items if the MySQL server version is 5.5 and PHP is updated to 7.0.
  • Added copying of the certificate chain when setting up your own SSL certificate.
  • Easier generation of dhparam.
  • Fixed blocking of the menu when the configuration script is running.
  • Fixed exiting 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 up certificates when access to the site is configured with https.
  • Fixes for 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 site with advanced parameters specified.
  • The phrase in the mail settings for the site has been corrected.

Changes in version 7.2.0

Software Update:
    nginx 1.12.2
Major fixes:
  • Added support for installing certificates: your own and Let's Encrypt.
  • Added the ability to return the site's "default" SSL certificate.
  • Web cluster configuration errors have been fixed.
  • Added the ability to change the hostname after creating a server pool.
  • The procedure for updating MySQL server settings in a pool has been fixed.
  • Security fixes for nginx and httpd configuration files.
  • Errors in creating sites have been fixed 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 an update wizard to the menu for existing installations.
  • Added the ability to configure a new push-server.
  • Fixed lsyncd server configuration error
  • The procedure for updating a machine in a pool has been fixed; the ability to run a full update from the menu has been added
  • Security fixes for nginx configuration files
  • Added X-Frame-Options for online chats
  • Fixed launch of smtp service

Changes in version 7.0.1

  • The proxy_ignore_client_abort option has been added when creating new sites, and a separate menu item has been added for configuring existing sites.
  • Added settings for fast file upload via nginx for external storages: Clodo, Rackspace, Google Storage and Selectel.
  • Added generation of DH parameters for ssl connection.
  • Fixed lsyncd service configuration for Cent OS 6.
  • The index name generation procedure has been changed.
  • Fixed an error in setting up monitoring in the system.
  • Fixed an error configuring the mysql service after it was stopped in the system.
  • Fixed error when changing the password for the mysql service.
  • Fixed an error in obtaining the mysql service status 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 for 1C-Bitrix: Virtual Machine 7.0. The 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
  • The virtual machine scripts have been fixed to work with Ansible 2.2. The ansible package is now available via the Bitrix repository.
  • The procedure for generating passwords in the machine has been fixed, support for special functions has been added. characters.
  • Added a procedure for automatically creating a password for the mysql service when the machine first starts and when installing via bitrix-env.sh.
  • PHP 7.0 is used by default. Added the ability to roll back the version to PHP 5.6 if necessary. 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 your own rules for iptables/firewalld.
  • Errors in the menu operation in the case of several IP addresses on one network interface have been fixed.
  • The procedure for setting up a web cluster is divided into two steps that can be run separately from each other: data synchronization and setting up the web environment.
  • The default data synchronization service is lsyncd.
  • Errors have been fixed when deleting a machine from a server pool.

Changes in version 5.1.8

The virtual machine scripts have been fixed 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 virtual machine scripts 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 1C-Bitrix: Virtual Machine product.

Changes in version 5.1.4

  • Added removal of pool configuration, for cases when it is necessary to recreate it.
  • Added the ability to remove servers from the pool that are disabled or unavailable for one reason or another.
  • Added the ability to update PHP to version 5.6.
  • Added the ability to set the authorization method when setting up mail.
  • Added the ability to set cron settings or hits for a 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 that is different from the machine name.

Bugs fixed:

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

Change in version 5.1.2

When creating mail for a site, the msmtp profile is registered for cron. This way, the configured mail for the site starts working if the job is transferred to cron.

Changes in version 5.1.1

  1. Changed the behavior of disabling php modules through configuration files. Allows you to avoid 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 a composite cache via nginx, if it is configured on the website
  2. Software Update:
  • php-5.4
  • mysql-5.5
  • nginx - 1.6.2
  • Support for external kernels (ext_kernel) for websites
    For this type of site:
    • no access via web
    • you can use them to create a link
    • all cluster functions supported (mysql, web)
  • The dependence of creating the memcached and sphinx roles on the cluster and searchd modules installed on sites has been removed. If the module is missing on the site, the 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
  • ntlm update (fixed errors in synchronizing calendars and 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 on one of the pool servers is updated, the access settings, as well as the access configuration, change). Wiki article
    • Changed work with sites:
      • added determination of whether the scale and/or cluster module is installed on the site; site operations are allowed for such sites: setting up 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 site will not participate in any of the operations in the cluster, a list of such sites and their errors can be found in paragraph 6, subparagraph 8
    • API for hosters
    Corrections:
    • Working with subinterfaces, which were not defined correctly in the previous version, which did not allow working in OpenVZ/Virtuozzo containers
    • Incorrect determination of what mode the server is operating in (with or without a balancer) led to the following errors:
      • creating a website 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 FQDN when creating a master or adding a new server to the pool, which led to service restart errors

    Changes in version 4.3:

    • the settings of the nginx-push-stream-module module have been changed, the ability to work via websocket and standard ports 80, 443 has been added
    • Configuration files reworked, comments added
    • fixed loss of get parameters in dav
    • nginx-push-stream-module, nginx, apc module updated
    • added sphinx setup and connection wizard
    • Auto-scaling parameters expanded to 16 GB

    Changes in version 4.2:

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

    Changes in version 4.1:

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

    Changes in version 4.0:

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

    Changes in version 3.1:

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

    Changes in version 3.0:

    • operating system CentOS 6.0 i386
    • ext4 file system
    • updated version of nginx 1.0.6, configuration changes
    • updated version of msmtp 1.4.24, changes in the setup wizard
    • replacing xpdf with poppler
    • corrections have been made to the mysql configuration
    • 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 as part of multisite
    • added wizards: creating a master node of the cluster, adding a slave node to the cluster, changing the role of a slave node to master
    • GeoIP databases updated

    Main changes in version 2.0:

    • php-5.3.3 or php-5.2 (version php-5.3.3 lacks the 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 is enough to uncomment the corresponding line in php.ini and restart apache);
    • updated version of nginx 0.7.67, configuration changes;
    • the list of operating systems for installing Fedora 8-14 (i386 only), server CentOS/RHEL/OEL 5 (i386 and x86_64) has been expanded;
    • disabling duplicate compression in product configuration (now only nginx compresses data);
    • Troubleshooting msmtp mail program configuration problems;
    • Auto-update of packages (via yum) is disabled when restarting the server;
    • Minor comments and errors have been fixed.
    Packages tested on Fedora 8,12,14(i386), CentOS/OEL 5(i386/x86_64). Fedora 14 has minor issues related to OS bugs.

    Changes in version 1.6:

    • By default, the Virtual Machine site is now accessible over both HTTP and HTTPS protocols, and the Zend Server control panel is 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 1C-Bitrix: Corporate Portal 9.0, which starts automatically if configured correctly.
    • After updating the product, search in PDF files becomes available.
    • All software packages have been updated, including Zend-Server-CE (very seriously updated), the php-5.2-memcache module has been added to use RAM caching.
    • Changes have been made to the NGINX configuration to process cached PHP pages (HTML caching technology), errors in processing WebDAV requests have been fixed, and scalability has been improved. In the APACHE configuration, errors have been fixed that caused, in particular, errors during the “classic” loading of pictures into the photo gallery (via java-applet). Added processing of document types docx, xlsx, pptx.
    • The bitrixsetup start script has been improved, localizations have been added for English and German.

    Changes in version 1.5

    • all Ubuntu 8.0.4 OS packages have been updated, 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 stops, which allows saving RAM of the Virtual Machine;
    • system improvements regarding the use of RAM: The virtual machine works 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 separate 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 installation of the product;
    • EULA removed.
    Error correction:
    • fixed test SSL certificate;
    • console menu: fixed error in mail configuration, removed menu items for configuring IP - this is available in VMware tools;
    • nginx configuration: fixed WebDAV errors (for proper operation you need to update to 8.0.2), 400 Bad Request when creating a new topic, synchronization with Outlook;
    • Fixed a bug when launching XMPP.
    Applications:
    • additional packages installed: catdoc, memcached, xpdf;
    • reworked and fixed the bitrix_setup script;
    • nginx updated to version 0.7.62 (security bug - Critical vulnerability in the Nginx http server);
    • The script for auto-tuning service parameters has been modified to ensure high performance with RAM values ​​up to 2 GB;
    • changes necessary for the correct operation of the VM have been made to the distribution kits of 1C-Bitrix products.

    Advantages

    Advantages

    “1C-Bitrix: Virtual Machine” is an excellent solution to the problem of high-quality configuration of hosting and dedicated servers. Usually, in order to achieve high project performance, you need to configure the server software, OS, and hardware yourself. In addition, it is important to ensure safety. And in “1C-Bitrix: Virtual Machine” all these settings have already been completed. As a result, you save time and money on server deployment and configuration, on purchasing the necessary equipment, and on ensuring project security.

    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 here are not just configured, but work perfectly.

    After installing the virtual machine:

    • you can use the cluster setup wizard and add 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;
    • indexing of office documents is configured;
    • 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 operating costs.

    Rent

    The product “1C-Bitrix: Virtual Machine” can be rented from hosting providers. You can rent a virtual machine using any virtualization technology: VMware, Parallels Virtuozzo Containers, Amazon EC2 (AMI), Open VZ, Citrix.

    At the beginning of this year, Bitrix released a new, seventh version of their “Web Environment”. The most important thing is that installation on CentOS 7 and php 7 is now officially supported. A short 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 the 1C-Bitrix CMS. It comes in a wide variety - there are ready-made images for various virtualizations (for more details, see the official website) and an installation script for installation on the server. Here we will consider working with the latter.

    What will we get?

    The web environment is positioned as the best solution for the entire line of Bitrix products - both for all editions of “1C-Bitrix: Site Management” and for the Bitrix24 box. Let's see what we are offered to use as a recommended combination.
    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 official support for nginx+php-fpm yet, 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 updated to the latest versions of Bitrix, you probably came across a proposal to run a certain SQL query in the database console for the “Web Messenger” module, which can only be done 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 and, when used correctly, provides significant speedup. 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 – the same tasks as above, only for PDF;
    • munin and nagios – server status monitoring. Not used by default;
    • sphinx - full text search. Currently the best solution in terms of convenience, quality and search speed. Default is not used.

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

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

    Download the installation script - you can see the current download link at the office. website. We must run it as root and further assume that we are in / root . If not, proceed by running:

    If you have SElinux enabled, the first step will ask you 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 the reboot, run the installation script again.

    Launching the installation of “1C-Bitrix: Web Environment”

    The system update process will be launched first to update the versions of 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, we will be asked if we want to set the 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:

    At this point, the installation is complete and a corresponding notification will be issued.
    We run the environment management script (after a reboot and login as root, this script will run automatically):

    # ./menu.sh

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

    We set a password and get to the start menu “1C-Bitrix: Web Environment”. The installation is complete, let's move on to configuration.

    Setting up the Bitrix Web environment

    What's good about Web Environment scripts is that they allow you to configure a web server for 1C-Bitrix without having in-depth knowledge of Linux administration. And for those who understand, reduce the time for routine operations on setting up a server. Theoretically, you don’t need to leave the web environment shell at all; everything should be done using it. In practice, of course, this is not entirely true, but for quickly starting a web server, this is an excellent solution.
    Let's figure out the settings a little and create an environment for the site where we will deploy Bitrix: Site Management (BUS).
    First of all, we need to create a Menengment pool (managed environment). To do this, select menu item 1 (press number 1 and Enter). A wizard will launch and ask you to enter the FQDN address of your site. Enter your domain name without www, http, etc. Because I'm setting up in a local virtual environment, for me it will be mysite.local.

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

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

    Those. You can easily deploy your Bitrix from scratch or from a backup copy.
    Let's torment the web environment menu a little more and see what useful things can be done.

    Mail setup

    This is the first point that needs to be done before installation the CMS itself.
    Let's first go 6. Manage sites in the pool, then 4. Change email settings on site. Then we select the site for which we are setting up; if we have only one (will be designated as default), then simply press Enter. Then:

    1. Enter from address (ex. [email protected]): indicate the address on behalf of which the mailing will take place, it is advisable to indicate an existing one;
    2. Enter server address or DNS (127.0.0.1): leave as indicated and press Enter;
    3. Enter server port (25): leave the same as 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, run “System Check” and make sure that everything is in order:

    I hope you understand that mail sent this way will have very little credibility. Therefore, I recommend setting up 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

    Enable memcached

    In the main menu, go to point 4. Configure memcahed servers. And then 1. Create memcached server . Then enter the host name for which the service will be launched. In our case, we have only one.

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

    Similarly, we will add support for full-text search for Bitrix via sphinx. Select 7. Manage sphinx in the pool, then 1. Create sphinx instance on server
    Here we need to first enter the hostname 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 features. 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 lastly,

    How to disable automatic launch of the Web Environment menu upon login

    Exit the web environment menu to the server console (0. Exit). And in the ~/.bash_profile file we 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 menu at session start