shadedecho
Programmer
Is there a way to either:
1. have a different php.ini for each virtualhost in apache, or
2. in the virtualhost configuration in apache, manually specify some different php environment/config variables?
What I am trying to do is be able to have EACH virtual host have it's own PHP error log, in their own directory, instead of all php errors going into one master php error log file.
I know I can set "error_log=..." in php.ini, but that sets a global value which applies to all php scripts, and I want to have each virtualhost set their own value for that.
I know each php script in each virtualhost's directory COULD set:
HOWEVER, I do not want to force those virtual hosts to set that, I just want it to default to the correct location for each virtualhost, which I can control when setting up the virtual host in apache, for instance.
Any way to do this?
1. have a different php.ini for each virtualhost in apache, or
2. in the virtualhost configuration in apache, manually specify some different php environment/config variables?
What I am trying to do is be able to have EACH virtual host have it's own PHP error log, in their own directory, instead of all php errors going into one master php error log file.
I know I can set "error_log=..." in php.ini, but that sets a global value which applies to all php scripts, and I want to have each virtualhost set their own value for that.
I know each php script in each virtualhost's directory COULD set:
Code:
ini_set("error_log","/path/to/error.log");
HOWEVER, I do not want to force those virtual hosts to set that, I just want it to default to the correct location for each virtualhost, which I can control when setting up the virtual host in apache, for instance.
Any way to do this?