litespeed's lsphp5 CLI vs php CLI

furimedia

Well-Known Member
#1
hello

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!
 

mistwang

LiteSpeed Staff
#5
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.
 

furimedia

Well-Known Member
#6
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?
 

mistwang

LiteSpeed Staff
#7
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
 
Top