Jump to content

Enable PHP Debugging for IP


franz82

Recommended Posts

I\'m try to use SetEnvIf Apache directive to enable or not PHP display error if the request is send from a particular IP.

 

I try this code:

 

SetEnvIf Remote_Addr "195.223.140.129" php_admin_flag display_errors = On

 

but not work. From Apache\'s logs:

 

[error] an unknown filter was not added: PHP

 

I want to enable this 2 directive:

 

php_value error_reporting 7

php_flag display_errors on

 

if client\'s request is send for a particular IP (Remote_Addr condition in SetEnvIf)

 

Thank you,

fRANz

Link to comment
https://forums.phpfreaks.com/topic/1148-enable-php-debugging-for-ip/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.