Syntax of php directives in VirtualHost section.

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-10-2007
andre
 
Posts: n/a
Default Syntax of php directives in VirtualHost section.

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é.
  #2 (permalink)  
Old 07-10-2007
andre
 
Posts: n/a
Default Re: Syntax of php directives in VirtualHost section.

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é.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:44 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0