can't get php log

Discussion in 'Install/Configuration' started by pkmorrison, Jan 26, 2006.

  1. pkmorrison

    pkmorrison New Member

    just started using lsws, set up vhost, serving simple php ok.
    but trying to debug a php app with mysql connection, cant
    seem to get log from php. i've tried both syslog & file w/o
    can someone point me in right direction?
  2. mistwang

    mistwang LiteSpeed Staff

    You have checked LSWS error log, all STDERR output of PHP will be redirected to LSWS error log.
  3. xing

    xing LiteSpeed Staff

    Please define "debug". Are you using the error_log function? It is hard to tell what you are you tring to do.

    Likely a permissions problem. For php to log to a file, like php.ini entry, you need to make sure the folder is writable by the user used by LSWS/PHP process.
  4. pkmorrison

    pkmorrison New Member

    by debug i mean trouble shoot. trying to setup phpWebSite. the mysql
    connection fails, phpws says unable to connect, i can connect from command
    line with those connection values, but i have no other error information.
    i can find no php output/log at all.
    so i am trying to find a way to make php more verbose in-band or out-of-band
  5. xing

    xing LiteSpeed Staff

    Are you using the php binary included in the litespeed distribution or did you compile you own?

    Set your lsws php.ini as following

    error_reporting  =  E_ALL & ~E_NOTICE
    This would force all errors and warnings to be dumped to the error.log or stderr.log file within lsws install.

    Please check for documentation on how to get error outputs.

Share This Page