LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to remove this installation? (https://www.linuxquestions.org/questions/linux-server-73/how-to-remove-this-installation-876853/)

oscargim 04-24-2011 06:50 PM

How to remove this installation?
 
Hi i just installed fastCGI with this guide is quite short and now i want to undo all that changes.. can some one guide me with the steps to do it?

This is the install:


mkdir code

cd code

wget http://www.fastcgi.com/dist/mod_fastcgi-current.tar.gz

tar -zxvf mod_fastcgi-current.tar.gz

cd mod_fastcgi-2.4.6/

cp Makefile.AP2 Makefile

make top_dir=/usr/lib/httpd

make install top_dir=/usr/lib/httpd


vi /etc/httpd/conf.d/mod_fastcgi.conf

(add this lines on it)

User apache
Group apache
LoadModule fastcgi_module modules/mod_fastcgi.so
# FastCGIWrapper on
FastCgiIpcDir /tmp/fcgi_ipc/
AddHandler fastcgi-script .fcgi
FastCGIConfig -autoUpdate -idle-timeout 120 -killInterval 3600 -maxClassProcesses 6 -maxProcesses 15



So far i leave this file empty so the module is not loaded.. bou i like to remove it completely from my system


Thanks

paulsm4 04-25-2011 12:13 AM

1. cd mod_fastcgi-2.4.6/
Make uninstall

2. Restore the backup copy you made of /etc/httpd/conf.d/mod_fastcgi.conf before you edited it (or simply delete it, if you created it from scratch)

3. /etc/init.d/httpd restart

Should be pretty much as simple as that :)

oscargim 04-25-2011 07:11 AM

Quote:

Originally Posted by paulsm4 (Post 4335144)
1. cd mod_fastcgi-2.4.6/
Make uninstall

2. Restore the backup copy you made of /etc/httpd/conf.d/mod_fastcgi.conf before you edited it (or simply delete it, if you created it from scratch)

3. /etc/init.d/httpd restart

Should be pretty much as simple as that :)


Thanks Paul.. when i try that i get this:

[root@Level mod_fastcgi-2.4.6]# make uninstall
Makefile:12: /usr/local/apache2/build/special.mk: No such file or directory
make: *** No rule to make target `/usr/local/apache2/build/special.mk'. Stop.

any idea?

nidhinmd 04-25-2011 08:04 AM

Go to mod_fastcgi-2.4.6 and run "make clean"

oscargim 04-25-2011 01:20 PM

Quote:

Originally Posted by nidhinmd (Post 4335514)
Go to mod_fastcgi-2.4.6 and run "make clean"


i get this:

[root@Level mod_fastcgi-2.4.6]# make clean
Makefile:12: /usr/local/apache2/build/special.mk: No such file or directory
make: *** No rule to make target `/usr/local/apache2/build/special.mk'. Stop.


i tried this


[root@Level mod_fastcgi-2.4.6]# make clean top_dir=/usr/lib/httpd
make[1]: Entering directory `/root/code/mod_fastcgi-2.4.6'
rm -f *.o *.lo *.slo *.obj *.a *.la
rm -rf .libs
make[1]: Leaving directory `/root/code/mod_fastcgi-2.4.6'
rm -f *.o *.lo *.slo *.la

its now removed???

Reuti 04-26-2011 04:25 AM

Although uninstall is a standard GNU target for makefiles, it doesn’t mean that it is really supplied with all sources. The target clean and alike is usually only used to remove compiled object files in the source tree. When there is nothing provided in the makefile: install again in a well known location in your $HOME/local and then get a list of files which must be removed afterwards by hand from the real file system.

This is one of the reasons why I often install software first in my $HOME/local or later on in /opt/... for all users to have the ability to get rid of it again in an easy way.


All times are GMT -5. The time now is 04:09 PM.