I recently installed prefex crm on namecheap hosting, I am facing issue with its cron job. What I got in email is as given below:
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.
Below are the codes I tried but non of them is working and keep showing the above kind of text:
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
wget -q -O- http://yourdomain.com/crm/cron/index
Even I follow their help guideline given on https://help.perfexcrm.com/setup-cron-job/
When I was on my old hosting it was working perfect and their I had been using this command along with root user and in command I wrote as given below:
php /var/www/domain.com/web/crm/index.php cron/index >> /cron/index
This way it as working fine on old host but not on this namecheap.