0

I'm using swoole/HTTP server, and I set it on daemon:1 to make it work on the background but there is a problem.

When I try to make a directory in this mode, PHP can't do that, and there is no swoole error log.

Sur
  • 191
  • 2
  • 3
  • 14
  • It's probably a permissions problem. Make sure the username the daemon uses has permission to create the directory. Also confirm that it's creating the directory in the location you expect. – Barmar Dec 22 '20 at 18:46
  • @Barmar location is correct and directory and php user is root can you specify how can i set permission for daemon?thanks. – Amirmohammad Farhang Dec 22 '20 at 18:58
  • root should not be prohibited from making directories anywhere. Enable `error_reporting(E_ALL);` so that warning messages get printed. – Barmar Dec 22 '20 at 19:58
  • @Barmar problem is in daeom mode i can not see errors because its not running in any page or even terminal, and there is no swoole error either. – Amirmohammad Farhang Dec 23 '20 at 06:00
  • You can configure a log file in `php.ini` and warning messages will go there. – Barmar Dec 23 '20 at 15:13

0 Answers0