My cronjob not working

#1
Hi.I am trial user at the moment for litespeed.
my cronjob working without problem when apache server active.
but it is not working when i switched to liteserver.

here is my cronjob code:


i enjoyed litespeed but this cronjob problem really hurting me.please help
 

mistwang

LiteSpeed Staff
#2
should be a PHP issue, maybe extra PHP module is required for that script.
compare phpinfo() page from LiteSpeed and Apache, make sure litespeed include all modules except Apache specific.
 
#5
yeah.i saw now.
i could open/enter url from browser when i using apache server.

but iam getting this error after switching to litespeed:

Warning: file_put_contents(ache/iketler.php) [function.file-put-contents]: failed to open stream: Permission denied in /home/nsid/public_html/cheyaz.php on line 7

line 7: file_put_contents("ache/iketler.php","<?php \n return " . var_export($iketler,true).";\n?>");

i changed chmod to 777 but nothing changed. please help
 
Last edited:

NiteWave

Administrator
#7
i could open/enter url from browser when i using apache server.
most likely you haven't done "Build Matching PHP Binary" for litespeed.

please follow or check
http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:apache:ezcpanel
"How to convert your cPanel server to LiteSpeed in 20 minutes"

to see if you can resolve the issue yourself.

Please note step 4: best to set "Port Offset" to non-zero, say 2000 or 5000 etc. before ensuring you've setup litespeed correctly. in this mode, lsws and apache are running in parallel --- apache listen to normal port 80, lsws listen to port 2080 or 5080.
 
#8
i done it but problem continue..

Warning: file_put_contents(ache/iketler.php) [function.file-put-contents]: failed to open stream: Permission denied in /home/nsid/public_html/cheyaz.php on line 7
 

NiteWave

Administrator
#9
location of iketler.php?

/home/nsid/public_html/ache/iketler.php?

then check permission of /home/nsid/public_html/ache:
Code:
ls -ald /home/nsid/public_html/ache
try to change it to 777
 
Top