LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Apache won't fully re-install (https://www.linuxquestions.org/questions/slackware-14/apache-wont-fully-re-install-278272/)

Calus 01-15-2005 09:33 PM

Apache won't fully re-install
 
ok..

I installed apache-2.0.52 from source, and all went well, after playing around with apache and getting the hang of it i decided to re-install it (I have never setup more than pidentd before), after realizing how many files and folders apache makes I wrote a script to do it for me:

Code:

#!/usr/bin/python
import commands

file_list = commands.getoutput('/usr/bin/locate apache')
print file_list
file_list = file_list.split()
for file in file_list:
    cmd = "/usr/bin/rm %s" % (file)
    cmd = cmd.replace("'", '')
    output = commands.getoutput(cmd)
    if output[-14:] == 'Is a directory':
        cmd = "/usr/bin/rm -R %s" % (file)
        cmd = cmd.replace("'", '')
        output = commands.getoutput(cmd)
    print output
    continue

Now even after a make distclean it does not install all of the necessary files, most noteably:
/usr/sbin/httpd
/etc/apache
/usr/sbin/apachectl (and the rest of those tools)
But I presume others are missing as well.


All times are GMT -5. The time now is 12:13 AM.