How To Uninstall the PHP Agent

  • Updated

If you have manually added the extension line to the php.ini, the PHP agent can be uninstalled by removing the extension line for contrast.so from the php.ini file:

extension=/usr/local/lib/contrast/php/contrast.so

The PHP agent will be disabled when the extension line is removed from the php.ini file.

Then using the appropriate command for your environment, remove the installed files:

apt remove contrast-php-agent

or

yum remove contrast-php-agent


If you have manually created a contrast.ini in the .ini file scan directory, remove that contrast.ini file.  The contrast.ini can be found by running:

php -i | grep Scan


If you have installed the agent using the contrast-php-util, use the disable-agent command:

contrast-php-util disable-agent

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request