PDA

View Full Version : PHP Command Line


zoom
05-30-2008, 07:49 AM
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
05-30-2008, 09:00 AM
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
05-30-2008, 09:11 AM
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 :-)