Uninstall New Relic For PHP

Keywords: LAMP/MAMP/WAMP - AWS - Technical issue - Other
bnsupport ID: 253614f3-758d-610d-5742-82df8f0ffaff
Description:
I’ve read:
https://docs.bitnami.com/ibm/infrastructure/lamp/troubleshooting/install-app/
https://docs.newrelic.com/docs/agents/php-agent/advanced-installation/uninstalling-php-agent/

When I run:
sudo apt-get purge newrelic-php5

I get:
E: Unable to locate package newrelic-php5

From the Bitnami install documentaiton, It doesn’t look like anything is installing via apt-get, which would kinda make sense why that error is getting kicked out.

Anyways, how do I uninstall it?

Hello @rdorn,

It is as you say, as it wasn’t installed with apt, the apt-get purge command won’t work. To uninstall it, you just need to run again the binary you used to install New Relic and choose the option to uninstall it (2):

$ sudo ./newrelic-install

New Relic PHP Agent Installation (interactive mode)
===================================================
Removing from this PHP : /opt/bitnami/php/bin
      Module directory : /opt/bitnami/php/lib/php/extensions
Removal of New Relic complete.

Regards,
Francisco de Paz

1 Like

Awesome! That did the trick and thank you!

Hello @rdorn,

I’m glad this solved the issue! I’ll be closing this thread then, please do not doubt to open a new one if you encounter any other problems.

Regards,
Francisco de Paz