D
D
DYLAN2017-05-02 20:54:50
linux
DYLAN, 2017-05-02 20:54:50

How to run a php daemon parallel to a running site?

The problem is the following, I have the Bitrix framework, when I run the php daemon to work with the controller, it blocks the site until it executes itself, which I just did not try to fix this problem, I want to hear competent advice.
If you run the daemon from under the root
php -f /home/bitrix/www/bitrix/modules/test.testmodule/admin/start_furnace.php
then everything works fine, the site is not blocked, and the script works
What I did: I start the daemon
through exec( "/path &")
I tried to run the script as root from under bitrix, for this I wrote in the etc/sudoers file:
bitrix ALL= NOPASSWD: /usr/sbin/hellow.sh
gave him rights and it seemed to be possible to run the script from the framework under the name of the root, but the problem remained the same.
ps
Bitrix technical support sent me, saying that this problem is beyond their jurisdiction, they say, buy a license first, and then we'll talk to you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2017-05-02
@Sanasol

I start the daemon with exec("/path &")
it's not starting a daemon

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question