Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I compiled my php and installed (i use centos 5.3) and now i want to remove it, how can i do it?

share|improve this question
up vote 0 down vote accepted

normaly if you self compile you can give an option named --prefix=PREFIX to the configure script. If you did something like this,

configure --prefix=/usr/local/php

than everything is install under /usr/local/php

Normally if you do not give any options, Software is installed under /usr/local. There in lib, bin, sbin, etc ... You have do delete everything which belongs to the package by hand.

Next time take care about the --prefix. If you had used it, you only need to remove the basedir given to prefix and eveything is gone.

share|improve this answer

Try sudo make uninstall in the same directory where you did make install :) Some Makefiles do support it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.