Re: VHOST Logging
| From: | Steve Meyers | Date: | Wed, 10 Oct 2001 22:21:51 +0000 |
| Subject: | Re: VHOST Logging | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-67724@lists.php.net to get a copy of this message | ||
If you look at the directives in php.ini for error logging, you should be
able to specify them in the virtualhost section of your httpd.conf. See the
section in the manual about apache configuration directives.
"Mike Rogers" <temp6453@hotmail.com> wrote in message
news:OE267nyeKzGZuNY1SWo00006e56@hotmail.com...
> I presently have errorlog directives within each virtual host, but i find
> the only thing that goes in it is not found and script errors. I want PHP
> errors to not go to the main log, but into the virtualhost's log. Of
course
> apache (shudders at IIS)
> --
> Mike
>
> ----- Original Message -----
> From: "Stig Sæther Bakken" <ssb@alltheweb.com>
> To: "Mike Rogers" <temp6453@hotmail.com>
> Cc: <php-dev@lists.php.net>
> Sent: Sunday, October 07, 2001 4:23 AM
> Subject: Re: [PHP-DEV] VHOST Logging
>
>
> > ["Mike Rogers" <temp6453@hotmail.com>]
> > > I run a server with many users on it. Is there any way to get
> PHP-related
> > > errors to enter each virtualhost's log file rather than one big one...
> this
> > > would allow customers to see their own logs.
> >
> > You didn't say which web server you're using, so I assume Apache. If
> > you have configured PHP errors to go to Apache's error log, you can
> > have one ErrorLog directive inside each VirtualHost section.
> >
> > If your needs are more specific, use SetEnv in the Apache config.
> >
> > - Stig
> >
> > --
> > Stig Sæther Bakken <ssb@alltheweb.com>
> > Fast Search & Transfer ASA, Trondheim, Norway
> >