can't get php log

#1
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
success.
can someone point me in right direction?
 

xing

LiteSpeed Staff
#3
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
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
 

xing

LiteSpeed Staff
#5
Are you using the php binary included in the litespeed distribution or did you compile you own?

Set your lsws php.ini as following

Code:
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 php.net for documentation on how to get error outputs.
 
Top