This is a discussion on Syntax of php directives in VirtualHost section. within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello, I use LAMP on my home computer to develop applications, with 3 or 4 virtual hosts. To develop new ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello,
I use LAMP on my home computer to develop applications, with 3 or 4 virtual hosts. To develop new applications in PHP, I set the default error reporting options to E_ALL | E_STRICT. But I alse have old web sites, with old libraries, and I wish put the php error reporting directive differently, for instance E_ALL. I have seen once a directive in apache2.conf, directly addressed to php. So my question is : What is the syntax, in a VirtualHost section, to add php directives. Thanks. André. |
|
|||
|
Hello all,
Finally, I found :-) <Location /projets/tlr2/> php_value error_reporting E_ALL&~E_NOTICE </Location> May be this is useful for anybody. andre wrote: > Hello, > I use LAMP on my home computer to develop applications, with 3 or 4 virtual hosts. > > To develop new applications in PHP, I set the default error reporting options to E_ALL | E_STRICT. > > But I alse have old web sites, with old libraries, and I wish put the php error reporting > directive differently, for instance E_ALL. > > I have seen once a directive in apache2.conf, directly addressed to php. > > So my question is : What is the syntax, in a VirtualHost section, to add php directives. > > Thanks. > André. |