When I run through cli it works, but when I use apache it does nothing, but in logs it writes: Permission denied src/thread.cpp:178