Congratulations to AcaCandy on her 100,000th post!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen boot bsod computer connection crash css dell driver drivers email error ethernet excel firefox firefox 3 hard drive internet internet explorer itunes laptop linux malware monitor motherboard network networking nvidia outlook outlook 2003 outlook 2007 outlook express partition password printer problem router slow software sound trojan usb video virus vista wifi windows windows xp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
Remove/reinstall apache2


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
weslee's Avatar
Member with 58 posts.
 
Join Date: Apr 2004
30-Oct-2006, 08:52 AM #1
Remove/reinstall apache2
I am running debian.

I tried installing php5-gd and it broke my apache2 configuration.

How can I completely wipe apache2, mysql, and php5 off my system so that I can do a complete reinstall?

In my attempt on all this, I ended up deleting /etc/apache2 hoping for an "apt-get install apache2" to reinstall files to that directory. Things didn't go that way though, and now I have no "/etc/apache2" directory!

Any help/ideas?

Wes
fenderfreek's Avatar
Computer Specs
Senior Member with 201 posts.
 
Join Date: Mar 2006
Location: Raleigh, NC
Experience: Advanced
31-Oct-2006, 08:59 AM #2
Best way to do a clean uninstall is to use
Code:
apt-get purge <package>
That will completely remove the package AND it's configuration files.
weslee's Avatar
Member with 58 posts.
 
Join Date: Apr 2004
31-Oct-2006, 09:15 AM #3
Are you talking about
Code:
dpkg --purge <package>
?

This
Code:
apt-get purge <package>
does not work. There is no "purge" option for "apt-get"

I tried "dpkg --purge <apache2 packages>" and then did an "apt-get install apache2 apache2.2-common apache2-utils" and it did reinstall an apache2 folder in /etc but that folder did not contain an apache2.conf file. In other words, the reinstall only did half its job.
fenderfreek's Avatar
Computer Specs
Senior Member with 201 posts.
 
Join Date: Mar 2006
Location: Raleigh, NC
Experience: Advanced
31-Oct-2006, 10:59 AM #4
You are right. I'm not sure what I was thinking, but when I did some looking, apparently you can also use
Code:
apt-get remove --purge <package>
and it will clean a package completely. As for the half-install, you've got me there. Maybe someone else on here can offer some help with that.
__________________
NCSU CSC Major
Registered Linux user #433004
  • Dell Vostro 1500 with Ubuntu 7.10
  • Intel Q6600 Quad Desktop running XP Pro
If this helped you, please take the time to rate the value of this post: http://rate.affero.net/fenderfreek/

Windows [n.] - A thirty-two bit extension and GUI shell to a sixteen bit patch to an eight bit operating system originally coded for a four bit microprocessor and sold by a two-bit company that can't stand one bit of competition.
weslee's Avatar
Member with 58 posts.
 
Join Date: Apr 2004
31-Oct-2006, 11:39 AM #5
Well.. after doing a COMPLETE dpkg --purge of ALL related apache2 packages, and after reinstalling everything, I did get an apache2.conf file to show up... the problem now, however, is that when the server gets started (runs without errors), my browser just hangs as if waiting for content... the content should simply be a print out of directories in the var/www folder (i haven no index file in there). No idea now why the server hangs... like I said, it starts fine, but won't send data (or something). I'll probably format that hard drive and reinstall linux.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 06:26 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.