Можно использовать веб-версию в кроне, если ДОБИРАЮТСЯ (lwp-запрашивают), или завихрение установлено на сервере
ДОБРАТЬСЯ
* * * * * GET http://localhost/cron/sendQueuedEmails.php > /dev/null
завихрение
* * * * * curl -o /dev/null http://localhost/cron/sendQueuedEmails.php
In fact, we found the issue, it was a dependency issue:
mod_wsgi.so
used a specific version of libpython2.6.so.1.0
ldd mod_wsgi.so libpython2.6.so.1.0 => /usr/lib64/libpython2.6.so.1.0 (0x00007f4c6dd87000)
vs. a different libpython2.6.so.1.0
used by the python binary itself.
> ldd python
libpython2.6.so.1.0 => /softntools/opt/Python-2.6/bin/../lib/libpython2.6.so.1.0 (0x00007f14730fc000)
Even though these were the same files names, these files didn't have the same size
> ls -l /softntools/opt/Python-2.6/bin/../lib/libpython2.6.so.1.0
gave 3710590 bytes
> ls -l /usr/lib64/libpython2.6.so.1.0 3:33PM
-rw-r--r-- 1 root root 1594904 May 5 2010 /usr/lib64/libpython2.6.so.1.0
What I did to solve the issue was to recompile mod_wsgi by changing the LD_RUN_PATH variable to point to /softntools/opt/Python-2.6/lib/
and now it works.
Перестройте все с помощью отладочных символов и получите лучшую трассировку. Очевидно, где-то есть ошибка, но без надлежащей обратной трассировки у вас действительно нет надежды найти ее или даже заставить кого-то другого исправить ее за вас (если вам действительно не повезло и не произойдет кто-то, у кого недавно была точно такая же проблема. быть доступным для ответа).