PHP Command Line

zoom

Well-Known Member
#1
Is it wise to use the version of php compiled using LiteSpeed for scripting?

Currently, I have /usr/bin/php linked to the binary located in LiteSpeed's directory /opt/lsws/lsphp5/bin/php and I have noticed some strange behavior. I've since then downloaded PHP and installed the binary without the '--with-litespeed' switch into /usr/local/php. Running my scripts off this version seem to be okay..
 

ffeingol

Well-Known Member
#2
You can't use the LSWS php for command line. It's built specifically for LSWS and won't work from command line. If you manually build PHP (with the --with-litespeed option) it will also build a cli verson at the same time. Just go into the sapi/cli directory (where you are building php) and the binary will be there.

Frank
 

zoom

Well-Known Member
#3
Thanks Frank,

That's what I was thinking. It explains the strange behaviour with some of my scripts.. Maybe I'll just stick to python :)
 
Top