PDA

View Full Version : Error Reporting Per User


StingRay
08-20-2005, 07:28 PM
How do I setup my VPS so all PHP errors are logged in a file in the directory of the offending script?

In php.ini you can specify a file for errors, but that is server wide, not specific to the user and script generating the errors.

elix
08-20-2005, 07:56 PM
IIRC, you can create a .htaccess file that says the exact same thing you would put into php.ini to do this with phpflag in front.

StingRay
08-20-2005, 08:52 PM
True but that's clunky for the client. I've seen other hosts do it, so there must be a way.

Fred
08-21-2005, 04:28 PM
in the httpd.conf probably by virtual host ?