8.2. General requirements
On a computer where the publication is done, a supported web server must be installed and configured. To install the Internet Information Services web server, you may need a distribution package of the operating system used. When installing the web server, you must install support for ISAPI extensions. To install the web server, you need the administrative privileges on the computer.
If you perform publication to operate with an infobase engaged in commercial operation via the Internet, HTTP is not recommended. HTTP does not ensure safe web server connection. It is strongly recommended that you use HTTPS instead. To enable HTTPS on the used web server, see the web server documentation.
Publication can be performed in two ways:
- Using the publication dialog box on the web server if Designer of required bitness can be started on the computer with the web server.
- Using webinst utility.
To perform publication on the web server, you need the administrative rights on the computer:
- To publish on Windows, open Designer by clicking Run as administrator in the application or launcher context menu. If the publication is performed with the webinst utility, the administrator starts either the utility itself or the Windows command line interpreter.
- For Linux, to perform the publication, you need to get the superuser rights (root) using the su command or start the application that performs the publication using the sudo command.
When you try to perform the publication, the software checks for the necessary privileges to perform the operation. If the privileges of the current user are not sufficient to perform the publication:
- When publishing from Designer, the user is asked whether to continue publishing. The dialog box displays the reason for asking this and recommendations on how to obtain the necessary privileges.
- When publishing using the webinst utility, the user gets a diagnostic message, but the publication continues.
Publication is possible only if 1C:Enterprise is located on a computer with a web server. To work with the configuration via web server, the configuration needs to be blank.
Operation via a web server has some specifics concerning both the operation and web server settings:
- When using an infobase in file mode via a web server, operation with the database file is performed by the web server extension. If several client applications work with the publication, then requests from these client applications are executed sequentially, in the order of request arrival to the web server extension. Each working web server process ensures operation of the single web server extension instance.
- Due to specifics of getting background job results when using the infobase in file mode, it is recommended that you configure the web server so that each 1C:Enterprise infobase publication is served by no more than one working web server process.
- When using IIS server:
- For IIS 7.x and later web servers, publishing is not supported if the Directory property (the dir parameter of the webinst utility) points to the %SYSTEMDRIVE%\inetpub\wwwroot directory.
- Publication is always performed for the default website (Default Web Site) and for the default application pool (DefaultAppPool). If operations of different 1C:Enterprise versions must be supported in one IIS instance, create your own application pool for each unique 1C:Enterprise version. In this case, you can perform publication only manually.
- For the application pool used for 1C:Enterprise, the .NET environment support must be disabled. To do this, set the application pool property Versions of the .NET Framework to No managed code.
- For details on IIS setup, see Internet Information .
- When using Apache server:
- Publication is not supported if Designer bitness does match bitness of a web server instance used for publication.
- If operations of different 1C:Enterprise versions must be supported on one computer, create a web server instance for each unique 1C:Enterprise version. In this case, you can perform publication only manually.
- For Linux OS, it is recommended that you the worker multiprocessing module. Other available modules are not recommended.
- For details on Apache setup, see Apache.