PHP is set to log its errors to syslog messages by default. You can access these logs through the admin web pages.
If you want to log errors to the client then the /etc/php.ini file is where you need to go.
For quick and nasty debug sessions, you can change the php.ini file directly, but if you want it switched on for a longer time, I'd do something like the following:
To switch client debugging on:
mkdir -p /etc/e-smith/templates-custom/etc/php.ini
cd /etc/e-smith/templates-custom/etc/php.ini
copy /etc/e-smith/templates/etc/php.ini/30* .
/sbin/e-smith/expand-template /etc/php.ini
And when you want to switch client debugging off:
rm /etc/e-smith/templates-custom/etc/php.ini/30*
/sbin/e-smith/expand-template /etc/php.ini
Regards,
Luke