PHP passthru execution system command times out?
Oct 17, 2016 am 09:12 AM<code> passthru('cd ' . config("log")["analyse_dir"] . ' && ' . config("log")["python"] .' '. config("log")["analyse_file"] . ' >> ' . config("log")["analyse_log"], $ret); if ($ret == 0) { </code>
This is echoed in brackets.
cd /MyApp/water/water && /usr/bin/python start_analyse.py >> /MyApp/shy/public/../storage/logs/analyse.log
Then the 504 timeout error is always reported after the api call.
This command is a database analysis and storage operation. Although http reports a 504 error, the log can still be entered and successfully entered into the database.
That is to say, the command was executed successfully.
How to solve this timeout error?

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

How To Set Up Visual Studio Code (VS Code) for PHP Development
