I
I
Ivan Tishchenko2016-07-29 13:26:04
linux
Ivan Tishchenko, 2016-07-29 13:26:04

How to publish infobase 1c under Apache2.4?

After successful publishing, I get an error when connecting.

/opt/1C/v8.3/x86_64/webinst -apache24 -wsdir mlt -dir /var/www/mlt -connstr "Srvr=127.0.0.1;Ref=mlt;" -confPath /etc/httpd/conf/httpd.conf

Mistake:
1C:Enterprise 8 application error:
Connection error
by reason:
server_addr=tcp://192.168.0.48:1541 descr=192.168.0.48:1541:13(0x0000000D): Permission denied; line=1040 file=./src/DataExchangeTcpClientImpl.cpp

netstat-tlpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:1545            0.0.0.0:*               LISTEN      12189/ras           
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      11187/smbd          
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1037/sshd           
tcp        0      0 0.0.0.0:1560            0.0.0.0:*               LISTEN      12122/rphost        
tcp        0      0 0.0.0.0:5432            0.0.0.0:*               LISTEN      12699/postmaster    
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      2327/master         
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      11187/smbd          
tcp        0      0 0.0.0.0:1540            0.0.0.0:*               LISTEN      12071/ragent        
tcp        0      0 0.0.0.0:1541            0.0.0.0:*               LISTEN      12079/rmngr

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Tishchenko, 2016-07-29
@Tihon_V

It was necessary to check /var/log/audit/audit.log and add an exception for httpd in selinux

grep httpd /var/log/audit/audit.log | grep denied
semanage port -a -t http_port_t -p tcp 1541
semanage port -a -t http_port_t -p tcp 1560

G
gagarinstas, 2016-08-22
@gagarinstas

it just helped me

setsebool -P httpd_can_network_connect 1
service httpd restart

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question