我最近在 namecheap 主机上安装了 prefex crm,我面临着它的 cron 作业的问题。我在电子邮件中收到的内容如下:
Error in argument 1, char 2: option not found u
Usage: php-cgi [-q] [-h] [-s] [-v] [-i] [-f <file>]
php-cgi <file> [args...]
-a Run interactively
-b <address:port>|<port> Bind Path for external FASTCGI Server mode
-C Do not chdir to the script's directory
-c <path>|<file> Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-f <file> Parse <file>. Implies `-q'
-h This help
-i PHP information
-l Syntax check only (lint)
-m Show compiled in modules
-q Quiet-mode. Suppress HTTP Header output.
-s Display colour syntax highlighted source.
-v Version number
-w Display source with stripped comments and whitespace.
-z <file> Load Zend extension <file>.
-T <count> Measure execution time of script repeated <count> times.
如果有人帮助我,我将不胜感激。
以下是我尝试过的代码,但没有一个有效,并继续显示上述类型的文本:
php /home/username/public_html/installation_folder/index.php cron/index >> /dev/null
/usr/bin/php /home/username/public_html/installation_folder/index.php cron/index >> /dev/null
php /home/username/public_html/installation_folder/index.php cron/index
/usr/bin/php /home/username/public_html/installation_folder/index.php cron/index
/usr/local/bin/php -f /home/username/public_html/installation_folder/index.php cron index
我什至遵循他们在 https://help.perfexcrm.com/setup-cron-job/
上给出的帮助指南当我在我的旧主机上时,它运行完美,他们我一直在使用这个命令和 root 用户,在命令中我写如下:
php /var/www/domain.com/web/crm/index.php cron/index >> /cron/index
这样它在旧主机上工作正常但在这个 namecheap 上不行。需要紧急解决方案。