Answer the question
In order to leave comments, you need to log in
How to run php cli script from browser if exec fails?
There is an online store import script written in php cli.
It is necessary that a person could run it not from the command line, but simply by clicking on the link.
exec is enabled, but exec('/usr/bin/php %reference to full path to script% < /dev/null > import.log &', $output); gives no effect.
What could be the problem? The file permissions are correct.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question