Help Docs

Modifying the PHP agent configurations for individual applications

PHP agent configurations (such as the application name, data port, and status port) can be modified separately for each application.

Note

If you want to modify the configurations for all of the applications on the application server, check out this help page.

Linuxshortlink

For Apacheshortlink

Add the following key to the .htaccess file present in your application directory.

php_value <directive> <value>

Example

To disable error tracking, and modify the method tracking threshold use the key below:

php_value zpa.track_errors 0
php_value zpa.method_threshold 5

For Nginxshortlink

Add the following key within the relevant location block or server block in the application's Nginx configuration file.

fastcgi_param PHP_VALUE "<directive>=<value>";

Example

To disable error tracking and modify the method tracking threshold use the key below:

fastcgi_param PHP_VALUE "zpa.track_errors=0";
fastcgi_param PHP_VALUE "zpa.method_threshold=5";

For PHP-FPMshortlink

Add the following key to the .user.ini file inside your application directory. If it does not exist, create the .user.ini file in the application directory.

<directive>=<value>

Example

To disable error tracking and modify method tracking threshold use the key below:

zpa.track_errors=0
zpa.method_threshold=5

For command line interfaceshortlink

Add the following key while executing your PHP script from the terminal.

php -d <directive>=<value> /path/to/your/script

Example

To disable error tracking, and modify method tracking threshold use the key below:

php -d zpa.track_errors=0 -d zpa.method_threshold=5 /path/to/your/script
Note

Please check this table for the list of the other available options.

Windowsshortlink

Add the following configuration to the .user.ini file in the website's root directory.

<directive>=<value>

Example

To disable error tracking, and modify method tracking threshold use the key below:

zpa.track_errors=0
zpa.method_threshold=5
Note

Please check this table for the list of the other available options.

Was this document helpful?

Would you like to help us improve our documents? Tell us what you think we could do better.


We're sorry to hear that you're not satisfied with the document. We'd love to learn what we could do to improve the experience.


Thanks for taking the time to share your feedback. We'll use your feedback to improve our online help resources.

Shortlink has been copied!