08-04-2013, 02:29 AM
Join Date: Mar 2009
I need to execute my cron job with lsphp52
I did dual php (5.2.17 and 5.3.x) and works fine with all http://website with additional .htaccess AddType directive.
But running cron job (php -f or -q /my-path/script.php) still execute php as 5.3
I have try /path-to-lsws/fcgi-bin/lsphp-5.2.17 -q but resulting an error :
-h giving me these :
Could not open input file: /my-path/script.php
which one of those usage above or any way methode that will help me to execute my cron job with lsphp52 ?
php -[b|c|n|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
-b <address:port>|<port> Bind Path for external LSAPI Server mode
-c <path>|<file> Look for php.ini file in this directory
-n No php.ini file will be used
-h This help
-i PHP information
-l Syntax check
-q Quiet-mode. Suppress HTTP Header output.
-s Display colour syntax highlighted source.
-v Version number
-? This help