Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

(Solved!) Effect of removing ‘-f’ from cron command line? 
 
tidbit
Jr. Member
 
Total Posts:  12
Joined:  2008-03-11
 

Long story short, my host doesn’t seem to offer support for the ‘-f’ cron option, which I understand runs the command in the foreground (doesn’t daemonize).

Here’s where my understanding of cron fails me. If I run this (without the -f)…

/usr/local/lsws/fcgi-bin/lsphp5 /home/myaccount/public_html/magento/cron.php

...instead of this (with the -f)…

/usr/local/lsws/fcgi-bin/lsphp5 -/home/myaccount/public_html/magento/cron.php

...what effect, if any, will it have on my site?

Along the same lines, any other suggestions on how I should approach this?

Here’s the Cron Daemon message I get when attempting to use the ‘-f’ option:

Usagephp
      php 
-[b|c|h|i|q|s|v|?] [<file>] [args...]
  Run in LSAPI mode
only '-b''-s' and '-c' are effective
  Run in Command Line Interpreter mode when parameters are specified

  
-<address:port>|<portBind Path for external LSAPI Server mode
  
-<path>|<fileLook for php.ini file in this directory
  
-h    This help
  
-i    PHP information
  
-q    Quiet-mode.  Suppress HTTP Header output.
  -
s    Display colour syntax highlighted source.
  -
v    Version number
  
-?    This help

Thanks in advance.

 
Magento Community Magento Community
Magento Community
Magento Community
 
SimpleHelixcom
Enthusiast
 
Avatar
Total Posts:  906
Joined:  2007-08-31
Huntsville, AL
 

You do not need to use -f as it looks like you might be using a litespeed fast-cgi php lsapi module that we are using.

-f is for regular php-cgi which just tells php what file to use but with litespeed it does it by default with the -f.

Hope it helped.

 
Magento Community Magento Community
Magento Community
Magento Community
 
tidbit
Jr. Member
 
Total Posts:  12
Joined:  2008-03-11
 

That’s exactly what I needed to know. Thanks!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top