Linux – How To Remove/Uninstall PHP in RHEL4

linuxPHPphp5redhatuninstall

i wanna ask how to remove/uninstall php5 from my RHEL4
i've install it, using

# ./configure
# make
# make install

i've tried

#make uninstall

but there's following error, i've tried it in following Folder when installed it

the error is looking like this :

make : *** No Rule to make target 'uninstall'. Stop.

anyone can help me?

Regards

Why

Best Answer

Removing a package built and installed from source is not an easy task. Usually, these packages come with a make file which enables you to build and install them. If you did not find any option like make uninstall (which is most likely), then you need to remove it manually!

If you still need to remove it, you can follow what the make install command does and run the necessary commands to reverse its changes.