PHP Command Line

Discussion in 'General' started by zoom, May 30, 2008.

  1. zoom

    zoom Well-Known Member

    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..
  2. ffeingol

    ffeingol Well-Known Member

    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.

  3. zoom

    zoom Well-Known Member

    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 :)

Share This Page