<div dir="ltr"><br><br><div class="gmail_quote">On Sun, Sep 7, 2008 at 6:12 PM, Jason Wilson <span dir="ltr"><<a href="mailto:jwilson@noosaj.com">jwilson@noosaj.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c"><br>
<br>
On Sun, 7 Sep 2008, Ashley Benton wrote:<br>
<br>
> On Sun, Sep 7, 2008 at 5:44 PM, Leonard Chatagnier<br>
> <<a href="mailto:lenc5570@sbcglobal.net">lenc5570@sbcglobal.net</a>>wrote:<br>
><br>
>><br>
>> --- Ashley Benton <<a href="mailto:chuaukantli@gmail.com">chuaukantli@gmail.com</a>> wrote:<br>
>><br>
>>> Hi,<br>
>>> I am trying to install apache2, php5, and my sql and<br>
>>> I messed up somewhere.<br>
>>> Apache was working but stopped when I tried to use<br>
>>> ssl. After hours of<br>
>>> trying to find where I messed up I wanted to remove<br>
>>> apache2 and reinstall<br>
>>> it. My problem is sudo apt-get remove apache2 then<br>
>>> sudo apt-get install<br>
>>> apache2 reinstall apache 2 like it was and doesn't<br>
>>> delete my configuration<br>
>>> files. I tried sudo apt-get purge apache 2 but<br>
>>> apache 2 is still here the<br>
>>> way I configured it. What could I do to completely<br>
>>> uninstall apache2 and<br>
>>> reinstall it with its original configuration files?<br>
>>> By doing ls -l I found some file like that :"books~"<br>
>>> I am guessing that some<br>
>>> files that were saved after a crash but I don't know<br>
>>> how to open them. They<br>
>>> should be in my home directory but are not (or at<br>
>>> least I can't see them)<br>
>>> How can I open them and delete them? I tried<br>
>>> lost+found but it wasn't there<br>
>>> neither.<br>
>>> Your help would be appreciated<br>
>>> Thank you<br>
>>> Meg<br>
>> sudo aptitude purge <pkgname> should do it. I don't<br>
>> know for sure about apt-get but I think it's something<br>
>> like sudo apt-get remove --purge <pkgname>.  Either<br>
>> should remove the conf files but if not for some<br>
>> unknown reason you could do locate apache and remove<br>
>> any related files manually using the rm command or<br>
>> better still use the mv command so you could retrieve<br>
>> them if needed.<br>
>> HTH,<br>
>><br>
>> Leonard Chatagnier<br>
>> <a href="mailto:lenc5570@sbcglobal.net">lenc5570@sbcglobal.net</a><br>
><br>
><br>
> Thank you for your answer. I tried apt-get remove --purge and it told me<br>
> 'Package apache2 is not installed', so not removed' Now I am completely lost<br>
> because ls -l /etc/apache2 list me:<br>
> -apache2.conf, -conf.d, -envars, -httpd.conf, -mods-available,<br>
> -mods-enabled, -ports.conf, -sites-available, -sites-enabled, -ssl<br>
> Why can I see the files and directories with ls -l /etc/apache2 if it is not<br>
> installed? I thought that ls -l would show me only what is installed, am I<br>
> wrong?<br>
> Thanks<br>
> Meg<br>
<br>
</div></div>Obviously you tried the --purge option _after_ you uninstalled it. Am I<br>
not correct? Any time you would like to completely remove software, you<br>
can either use your package manager to completely remove it, or you can<br>
use the --purge option with your apt command. The ls -l command lists<br>
contents in the directory you are currently working in or the directory in<br>
which you specify for ls to look in. ls -l doesn't _show_ you everything,<br>
ls -a does; however, the uninstallation didn't completely remove<br>
everything. Perhaps you could try reinstalling apache, then use the purge<br>
option to completely remove it, then reinstall it, _or_ you could just<br>
sudo rm everything.<br>
<br>
Jason</blockquote><div><br>It is possible that you are right. So I tried sudo apt-get install apache2 then apt-get remove --purge apache2 as well as aptitude purge apache2 (after reinstalling between the two operations) then well as dpkg -P.<br>
Each time sudo /etc/init.d/apache2 restart apache 2 which is not installed is working!<br>Is there a reason why it is working when it should have been removed (Did it installed twice or more times and removed one of them?)<br>
Now it seems that apache 2 is working with my configuration files as I modified  them but I'd like to understand why I can't uninstall it from the command line! Oh I forgot it is working but not installed! How is it possible? <br>
<br>Meg<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="Wj3C7c">ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</div></div></blockquote></div><br></div>