Connecting Tech Pros Worldwide Forums | Help | Site Map

? Separate PHP Log Files For Apache Virtual Hosts

Alec S.
Guest
 
Posts: n/a
#1: Nov 1 '08
Hi,

I've got Apache set up with some virtual hosts, each one producing it's own log
file. However PHP uses the same log file for everything.

I'm looking for a way to configure Apache and PHP so that the different virtual
hosts use different PHP log files.

For example, I keep third-party PHP apps in available through one virtual host,
and my own apps in another. Therefore, I want one PHP log file for third-party
apps and another for my own since I can only fix the errors in my own.


Thanks a lot.

--
Alec S.
php/news/alec->synetech/cjb/net



SLerman
Guest
 
Posts: n/a
#2: Nov 2 '08

re: ? Separate PHP Log Files For Apache Virtual Hosts


On Nov 1, 5:09*pm, "Alec S." <nos...@127.0.0.1wrote:
Quote:
Hi,
>
I've got Apache set up with some virtual hosts, each one producing it's own log
file. However PHP uses the same log file for everything.
>
I'm looking for a way to configure Apache and PHP so that the different virtual
hosts use different PHP log files.
>
For example, I keep third-party PHP apps in available through one virtualhost,
and my own apps in another. Therefore, I want one PHP log file for third-party
apps and another for my own since I can only fix the errors in my own.
>
Thanks a lot.
>
--
Alec S.
php/news/alec->synetech/cjb/net
Inside the <VirtualHostblock, you can use php_value error_log /path/
to/logfile
Alec S.
Guest
 
Posts: n/a
#3: Nov 2 '08

re: ? Separate PHP Log Files For Apache Virtual Hosts


"SLerman" <smlerman@gmail.comwrote in message
news:23f2c210-d463-4626-a028-7f9ab2c827b6@a29g2000pra.googlegroups.com...
On Nov 1, 5:09 pm, "Alec S." <nos...@127.0.0.1wrote:
Quote:
>
I'm looking for a way to configure Apache and PHP so that the different
virtual
Quote:
hosts use different PHP log files.
Inside the <VirtualHostblock, you can use php_value error_log /path/
to/logfile


It works perfectly.

Thanks!


--
Alec S.
php/news/alec->synetech/cjb/net


Closed Thread