View Full Version : litespeed's lsphp5 CLI vs php CLI
12-03-2008, 06:47 PM
it seems like our users who are running php cli scripts via cron to import a huge file (50mb or greater) are finding themselves script hanging or either performing them very slowly.
is this a server configuration issue or is it just the way it is?
any inputs will be greatly appreciated!
12-03-2008, 08:27 PM
cli script has nothing to do with the web server, just like execute a command from command line.
12-03-2008, 10:45 PM
Maybe request body size is too small.
12-05-2008, 11:47 AM
if i call /usr/local/lsws/fcgi-bin/lsphp5 directly via cli, does that still follow the settings set on the LS admin ?
12-06-2008, 05:10 PM
No, it is just a command like any command executed through command line, nothing go through the web server. it will try to load the default php.ini.
12-07-2008, 02:18 PM
thanks for the reply, but does lsphp5 when called via CLI have any kind of max request body limit or something to that aspect?
im trying to run a cron job that is called via lsphp5 but the job tend to take a lot longer than if i were to use apache's php CLI. are there any insight into this?
12-07-2008, 08:38 PM
There is no max request body limit as it does not go through the web server at all.
You need to make sure lsphp5 and apache's php CLI use the same php.ini